Package org.ff4j.springjdbc.store
Class PropertyStoreSpringJdbc
java.lang.Object
org.ff4j.property.store.AbstractPropertyStore
org.ff4j.springjdbc.store.PropertyStoreSpringJdbc
- All Implemented Interfaces:
org.ff4j.property.store.PropertyStore
@Repository
public class PropertyStoreSpringJdbc
extends org.ff4j.property.store.AbstractPropertyStore
Implementation of
PropertyStore with SpringJDBC.- Author:
- Cedrick Lunven (@clunven)
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<T> voidcreateProperty(org.ff4j.property.Property<T> ap) voidvoiddeleteProperty(String name) booleanexistProperty(String name) org.springframework.jdbc.core.JdbcTemplateGetter accessor for attribute 'jdbcTemplate'.org.ff4j.store.JdbcQueryBuilderorg.ff4j.property.Property<?>readProperty(String name) voidsetDataSource(DataSource dataSource) voidsetQueryBuilder(org.ff4j.store.JdbcQueryBuilder queryBuilder) voidupdateProperty(String name, String newValue) <T> voidupdateProperty(org.ff4j.property.Property<T> prop) Methods inherited from class org.ff4j.property.store.AbstractPropertyStore
assertPropertyExist, assertPropertyNotExist, assertPropertyNotNull, importProperties, importPropertiesFromXmlFile, isEmpty, readProperty, toJson
-
Constructor Details
-
PropertyStoreSpringJdbc
public PropertyStoreSpringJdbc()Default constructor. -
PropertyStoreSpringJdbc
Default constructor.
-
-
Method Details
-
existProperty
-
createProperty
public <T> void createProperty(org.ff4j.property.Property<T> ap) -
readProperty
-
updateProperty
- Specified by:
updatePropertyin interfaceorg.ff4j.property.store.PropertyStore- Overrides:
updatePropertyin classorg.ff4j.property.store.AbstractPropertyStore
-
updateProperty
public <T> void updateProperty(org.ff4j.property.Property<T> prop) - Specified by:
updatePropertyin interfaceorg.ff4j.property.store.PropertyStore- Overrides:
updatePropertyin classorg.ff4j.property.store.AbstractPropertyStore
-
deleteProperty
-
readAllProperties
-
listPropertyNames
-
clear
public void clear() -
setDataSource
- Parameters:
dataSource- the dataSource to set
-
getJdbcTemplate
public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()Getter accessor for attribute 'jdbcTemplate'.- Returns:
- current value of 'jdbcTemplate'
-
getQueryBuilder
public org.ff4j.store.JdbcQueryBuilder getQueryBuilder()- Returns:
- the queryBuilder
-
setQueryBuilder
public void setQueryBuilder(org.ff4j.store.JdbcQueryBuilder queryBuilder) - Parameters:
queryBuilder- the queryBuilder to set
-
createSchema
@Transactional public void createSchema()- Specified by:
createSchemain interfaceorg.ff4j.property.store.PropertyStore- Overrides:
createSchemain classorg.ff4j.property.store.AbstractPropertyStore
-