Class SqlRepositoryBuilder


  • public class SqlRepositoryBuilder
    extends org.javers.core.AbstractContainerBuilder
    • Constructor Detail

      • SqlRepositoryBuilder

        public SqlRepositoryBuilder()
    • Method Detail

      • withSchema

        public SqlRepositoryBuilder withSchema​(java.lang.String schemaName)
        This function sets a schema to be used for creation and updating tables. When passing a schema name make sure that the schema has been created in the database before running JaVers. If schemaName is null or empty, the default schema is used instead.
        Since:
        2.4
      • withGlobalIdCacheDisabled

        public SqlRepositoryBuilder withGlobalIdCacheDisabled​(boolean globalIdCacheDisabled)
        Since 2.7.2, JaversTransactionalDecorator evicts the cache on transaction rollback, so there are no known reasons to disabling it.
      • withSchemaManagementEnabled

        public SqlRepositoryBuilder withSchemaManagementEnabled​(boolean schemaManagementEnabled)
      • withGlobalIdTableName

        public SqlRepositoryBuilder withGlobalIdTableName​(java.lang.String globalIdTableName)
      • withCommitTableName

        public SqlRepositoryBuilder withCommitTableName​(java.lang.String commitTableName)
      • withSnapshotTableName

        public SqlRepositoryBuilder withSnapshotTableName​(java.lang.String snapshotTableName)
      • withCommitPropertyTableName

        public SqlRepositoryBuilder withCommitPropertyTableName​(java.lang.String commitPropertyTableName)
      • getContainerComponent

        protected <T> T getContainerComponent​(java.lang.Class<T> ofClass)
        For testing only
        Overrides:
        getContainerComponent in class org.javers.core.AbstractContainerBuilder