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 class
StorageEntityTypeHandler.Default
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity
-
Method Summary
Modifier and Type Method Description default boolean
hasPersistedVariableLength()
Provides information if two instances of the handled type can have different length in persisted form.boolean
isValidEntityGuaranteedType(long length, long objectId)
void
iterateReferences(long entityCacheAddress, PersistenceObjectIdAcceptor acceptor)
long
maximumLength()
long
minimumLength()
long
simpleReferenceCount()
void
validateEntity(long length, long typeId, long objectId)
void
validateEntityGuaranteedType(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 Details
-
simpleReferenceCount
long simpleReferenceCount() -
iterateReferences
-
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:PersistenceTypeDefinition
Provides 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:
hasPersistedVariableLength
in interfacePersistenceTypeDefinition
-