Class JDBCStateRepository.Builder

    • Constructor Detail

      • Builder

        public Builder​(DataSource dataSource)
        Creates a new builder for creating a JDBCStateRepository.
        Parameters:
        dataSource - the DataSource Togglz should use to obtain JDBC connections
    • Method Detail

      • tableName

        public JDBCStateRepository.Builder tableName​(String tableName)
        Sets the table name to use for the Togglz feature state table. The default name is TOGGLZ.
        Parameters:
        tableName - The database table name
      • noCommit

        public JDBCStateRepository.Builder noCommit​(boolean noCommit)
        Can be used to suppress to commit after modifying data in the repository. Can be useful if Togglz uses managed connections provided by a JEE container. The default is false.
        Parameters:
        noCommit - true to suppress commits
      • createTable

        public JDBCStateRepository.Builder createTable​(boolean createTable)
        If set to true, the table will be automatically created if it is missing. The default is true.
        Parameters:
        createTable - true if the table should be created automatically