Package org.javers.repository.sql
Class SqlRepositoryBuilder
java.lang.Object
org.javers.core.AbstractContainerBuilder
org.javers.repository.sql.SqlRepositoryBuilder
public class SqlRepositoryBuilder
extends org.javers.core.AbstractContainerBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()protected <T> TgetContainerComponent(Class<T> ofClass) For testing onlystatic SqlRepositoryBuilderwithCdoSnapshotStateCodec(CdoSnapshotStateCodec cdoSnapshotStateCodec) withCommitPropertyTableName(String commitPropertyTableName) withCommitTableName(String commitTableName) withConnectionProvider(ConnectionProvider connectionProvider) withDialect(DialectName dialect) withGlobalIdCacheDisabled(boolean globalIdCacheDisabled) Since 2.7.2, JaversTransactionalDecorator evicts the cache on transaction rollback, so there are no known reasons to disabling it.withGlobalIdTableName(String globalIdTableName) withSchema(String schemaName) This function sets a schema to be used for creation and updating tables.withSchemaManagementEnabled(boolean schemaManagementEnabled) withSnapshotTableName(String snapshotTableName) Methods inherited from class org.javers.core.AbstractContainerBuilder
addComponent, addModule, addModule, bindComponent, bootContainer, getComponents, getContainer, removeComponent
-
Constructor Details
-
SqlRepositoryBuilder
public SqlRepositoryBuilder()
-
-
Method Details
-
sqlRepository
-
withDialect
-
withConnectionProvider
-
withCdoSnapshotStateCodec
-
withSchema
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
Since 2.7.2, JaversTransactionalDecorator evicts the cache on transaction rollback, so there are no known reasons to disabling it. -
withSchemaManagementEnabled
-
withGlobalIdTableName
-
withCommitTableName
-
withSnapshotTableName
-
withCommitPropertyTableName
-
build
-
getContainerComponent
For testing only- Overrides:
getContainerComponentin classorg.javers.core.AbstractContainerBuilder
-