Package one.microstream.storage.types
Interface StorageEntityTypeHandler
-
- All Superinterfaces:
PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
- All Known Implementing Classes:
StorageEntityTypeHandler.Default
public interface StorageEntityTypeHandler extends PersistenceTypeDefinition
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageEntityTypeHandler.Default-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity
-
-
Method Summary
Modifier and Type Method Description default booleanhasPersistedVariableLength()Provides information if two instances of the handled type can have different length in persisted form.booleanisValidEntityGuaranteedType(long length, long objectId)voiditerateReferences(long entityCacheAddress, PersistenceObjectIdAcceptor acceptor)longmaximumLength()longminimumLength()longsimpleReferenceCount()voidvalidateEntity(long length, long typeId, long objectId)voidvalidateEntityGuaranteedType(long length, long objectId)-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
allMembers, hasPersistedReferences, hasVaryingPersistedLengthInstances, instanceMembers, isPrimitiveType, membersPersistedLengthMaximum, membersPersistedLengthMinimum, runtimeTypeName, toRuntimeTypeIdentifier, type, typeId, typeName
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier
-
-
-
-
Method Detail
-
simpleReferenceCount
long simpleReferenceCount()
-
iterateReferences
void iterateReferences(long entityCacheAddress, PersistenceObjectIdAcceptor acceptor)
-
validateEntity
void validateEntity(long length, long typeId, long objectId)
-
isValidEntityGuaranteedType
boolean isValidEntityGuaranteedType(long length, long objectId)
-
validateEntityGuaranteedType
void validateEntityGuaranteedType(long length, long objectId)
-
minimumLength
long minimumLength()
-
maximumLength
long maximumLength()
-
hasPersistedVariableLength
default boolean hasPersistedVariableLength()
Description copied from interface:PersistenceTypeDefinitionProvides information if two instances of the handled type can have different length in persisted form.Examples for variable length types:
- arrays
-
java.lang.String -
java.util.ArrayList -
java.math.BigDecimal
Examples for fixed length types:
- primitive value wrapper types
-
java.lang.Object -
java.util.Date - typical entity types (without unshared inlined variable length component instances)
- Specified by:
hasPersistedVariableLengthin interfacePersistenceTypeDefinition
-
-