public class JdbcEnvironmentRepository extends Object implements EnvironmentRepository, org.springframework.core.Ordered
EnvironmentRepository that picks up data from a relational database. The
database should have a table called "PROPERTIES" with columns "APPLICATION", "PROFILE",
"LABEL" (with the usual Environment meaning), plus "KEY" and "VALUE" for the
key and value pairs in Properties style. Property values behave in the same way
as they would if they came from Spring Boot properties files named
{application}-{profile}.properties, including all the encryption and
decryption, which will be applied as post-processing steps (i.e. not in this repository
directly).| Constructor and Description |
|---|
JdbcEnvironmentRepository(org.springframework.jdbc.core.JdbcTemplate jdbc,
JdbcEnvironmentProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
Environment |
findOne(String application,
String profile,
String label) |
int |
getOrder() |
String |
getSql() |
void |
setOrder(int order) |
void |
setSql(String sql) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindOnepublic JdbcEnvironmentRepository(org.springframework.jdbc.core.JdbcTemplate jdbc,
JdbcEnvironmentProperties properties)
public String getSql()
public void setSql(String sql)
public Environment findOne(String application, String profile, String label)
findOne in interface EnvironmentRepositorypublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.