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)
      • getContainerComponent

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