Class GlobalIdRepository
- java.lang.Object
-
- org.javers.repository.sql.schema.SchemaNameAware
-
- org.javers.repository.sql.repositories.GlobalIdRepository
-
public class GlobalIdRepository extends SchemaNameAware
-
-
Constructor Summary
Constructors Constructor Description GlobalIdRepository(TableNameProvider tableNameProvider, SqlRepositoryConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevictCache()java.util.Optional<java.lang.Long>findGlobalIdPk(org.javers.core.metamodel.object.GlobalId globalId, Session session)cachedintgetGlobalIdPkCacheSize()longgetOrInsertId(org.javers.core.metamodel.object.GlobalId globalId, Session session)voidsetJsonConverter(org.javers.core.json.JsonConverter JSONConverter)-
Methods inherited from class org.javers.repository.sql.schema.SchemaNameAware
getCommitPkSeqName, getCommitPropertyTableName, getCommitPropertyTableNameWithSchema, getCommitTableName, getCommitTableNameWithSchema, getGlobalIdPkSeqName, getGlobalIdTableName, getGlobalIdTableNameWithSchema, getSchemaName, getSnapshotTableName, getSnapshotTableNameWithSchema, getSnapshotTablePkSeqName
-
-
-
-
Constructor Detail
-
GlobalIdRepository
public GlobalIdRepository(TableNameProvider tableNameProvider, SqlRepositoryConfiguration configuration)
-
-
Method Detail
-
getOrInsertId
public long getOrInsertId(org.javers.core.metamodel.object.GlobalId globalId, Session session)
-
evictCache
public void evictCache()
-
getGlobalIdPkCacheSize
public int getGlobalIdPkCacheSize()
-
findGlobalIdPk
public java.util.Optional<java.lang.Long> findGlobalIdPk(org.javers.core.metamodel.object.GlobalId globalId, Session session)cached
-
setJsonConverter
public void setJsonConverter(org.javers.core.json.JsonConverter JSONConverter)
-
-