public static final class PersistenceTypeManager.Default extends Object implements PersistenceTypeManager
PersistenceTypeManager.Default| Modifier and Type | Method and Description |
|---|---|
protected long |
createNewTypeId() |
long |
currentTypeId() |
Class<?> |
ensureType(long typeId) |
long |
ensureTypeId(Class<?> type) |
protected long |
internalEnsureTypeId(Class<?> type) |
void |
iteratePerIds(BiConsumer<Long,? super Class<?>> consumer) |
<T> Class<T> |
lookupType(long tid) |
long |
lookupTypeId(Class<?> type) |
boolean |
registerType(long tid,
Class<?> type) |
boolean |
registerTypes(Iterable<? extends PersistenceTypeLink> types) |
void |
updateCurrentHighestTypeId(long highestTypeId) |
boolean |
validateTypeMapping(long typeId,
Class<?> type) |
boolean |
validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitNewNewprotected long createNewTypeId()
protected long internalEnsureTypeId(Class<?> type)
public long lookupTypeId(Class<?> type)
lookupTypeId in interface PersistenceTypeIdLookuplookupTypeId in interface PersistenceTypeLookuppublic <T> Class<T> lookupType(long tid)
lookupType in interface PersistenceTypeLookuppublic boolean validateTypeMapping(long typeId,
Class<?> type)
throws PersistenceExceptionConsistency
validateTypeMapping in interface PersistenceTypeLookupPersistenceExceptionConsistencypublic boolean validateTypeMappings(Iterable<? extends PersistenceTypeLink> mappings) throws PersistenceExceptionConsistency
validateTypeMappings in interface PersistenceTypeLookupPersistenceExceptionConsistencypublic boolean registerTypes(Iterable<? extends PersistenceTypeLink> types) throws PersistenceExceptionConsistency
registerTypes in interface PersistenceTypeRegistryPersistenceExceptionConsistencypublic boolean registerType(long tid,
Class<?> type)
registerType in interface PersistenceTypeRegistrypublic long ensureTypeId(Class<?> type)
ensureTypeId in interface PersistenceTypeManagerpublic final long currentTypeId()
currentTypeId in interface PersistenceTypeManagerpublic void updateCurrentHighestTypeId(long highestTypeId)
updateCurrentHighestTypeId in interface PersistenceTypeManagerpublic Class<?> ensureType(long typeId)
ensureType in interface PersistenceTypeManagerpublic void iteratePerIds(BiConsumer<Long,? super Class<?>> consumer)
iteratePerIds in interface PersistenceTypeRegistryCopyright © 2022 MicroStream Software. All rights reserved.