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 Details

    • PropertyStoreSpringJdbc

      public PropertyStoreSpringJdbc()
      Default constructor.
    • PropertyStoreSpringJdbc

      public PropertyStoreSpringJdbc(DataSource ds)
      Default constructor.
  • Method Details

    • existProperty

      public boolean existProperty(String name)
    • createProperty

      public <T> void createProperty(org.ff4j.property.Property<T> ap)
    • readProperty

      public org.ff4j.property.Property<?> readProperty(String name)
    • updateProperty

      public void updateProperty(String name, String newValue)
      Specified by:
      updateProperty in interface org.ff4j.property.store.PropertyStore
      Overrides:
      updateProperty in class org.ff4j.property.store.AbstractPropertyStore
    • updateProperty

      public <T> void updateProperty(org.ff4j.property.Property<T> prop)
      Specified by:
      updateProperty in interface org.ff4j.property.store.PropertyStore
      Overrides:
      updateProperty in class org.ff4j.property.store.AbstractPropertyStore
    • deleteProperty

      public void deleteProperty(String name)
    • readAllProperties

      public Map<String,org.ff4j.property.Property<?>> readAllProperties()
    • listPropertyNames

      public Set<String> listPropertyNames()
    • clear

      public void clear()
    • setDataSource

      public void setDataSource(DataSource dataSource)
      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:
      createSchema in interface org.ff4j.property.store.PropertyStore
      Overrides:
      createSchema in class org.ff4j.property.store.AbstractPropertyStore