Package one.microstream.entity
Class BinaryHandlerEntityLoading.Default<T>
java.lang.Object
one.microstream.entity.BinaryHandlerEntityLoading.Default<T>
- All Implemented Interfaces:
BinaryHandlerEntityLoading<T>,BinaryTypeHandler<T>,PersistenceDataTypeHolder<Binary>,PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeHandler<Binary,T>,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
- Enclosing interface:
- BinaryHandlerEntityLoading<T>
public static class BinaryHandlerEntityLoading.Default<T> extends Object implements BinaryHandlerEntityLoading<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.entity.BinaryHandlerEntityLoading
BinaryHandlerEntityLoading.Default<T>Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
BinaryTypeHandler.Abstract<T>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity -
Constructor Summary
Constructors Constructor Description Default() -
Method Summary
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacePersistenceTypeHandler<Binary,T>
-
dataType
- Specified by:
dataTypein interfaceBinaryTypeHandler<T>- Specified by:
dataTypein interfacePersistenceDataTypeHolder<T>- Specified by:
dataTypein interfacePersistenceTypeHandler<Binary,T>
-
typeId
public long typeId()Description copied from interface:PersistenceTypeDefinitionThe biuniquely associated id value identifying a type description.- Specified by:
typeIdin interfacePersistenceTypeDefinition- Specified by:
typeIdin interfacePersistenceTypeIdentity- Specified by:
typeIdin interfacePersistenceTypeIdOwner- Specified by:
typeIdin interfacePersistenceTypeLink
-
typeName
Description copied from interface:PersistenceTypeDefinitionThe name of the type as defined in the type dictionary. This name may never change for a given typeId, even if the runtimePersistenceTypeDefinition.runtimeTypeName()did to reflect a design-level type renaming.- Specified by:
typeNamein interfacePersistenceTypeDefinition- Specified by:
typeNamein interfacePersistenceTypeDescription- Specified by:
typeNamein interfacePersistenceTypeIdentity
-
instanceReferenceMembers
- Specified by:
instanceReferenceMembersin interfacePersistenceTypeDescription
-
runtimeTypeName
Description copied from interface:PersistenceTypeDefinitionThe name of the corresponding runtime type. If not implemented otherwise (e.g. to cache the name), this method simply callsClass.getName()of a non-nullPersistenceTypeDefinition.type()reference.- Specified by:
runtimeTypeNamein interfacePersistenceTypeDefinition
-
type
- Specified by:
typein interfacePersistenceTypeDefinition- Specified by:
typein interfacePersistenceTypeHandler<Binary,T>- Specified by:
typein interfacePersistenceTypeLink
-
isValidEntityType
- Specified by:
isValidEntityTypein interfacePersistenceTypeHandler<Binary,T>
-
instancePrimitiveMembers
- Specified by:
instancePrimitiveMembersin interfacePersistenceTypeDescription
-
validateEntityType
- Specified by:
validateEntityTypein interfacePersistenceTypeHandler<Binary,T>
-
allMembers
- Specified by:
allMembersin interfacePersistenceTypeDefinition- Specified by:
allMembersin interfacePersistenceTypeDescription- Specified by:
allMembersin interfacePersistenceTypeHandler<Binary,T>
-
instanceMembers
Description copied from interface:PersistenceTypeDefinitionEnum (unique elements with order), usingPersistenceTypeDescriptionMember.identityHashEqualator(). Contains all persistent members (similar, but not identical to fields) in persistent order, which can differ from the declaration order.- Specified by:
instanceMembersin interfacePersistenceTypeDefinition- Specified by:
instanceMembersin interfacePersistenceTypeDescription- Specified by:
instanceMembersin interfacePersistenceTypeHandler<Binary,T>
-
iterateInstanceReferences
- Specified by:
iterateInstanceReferencesin interfacePersistenceTypeHandler<Binary,T>
-
iterateLoadableReferences
- Specified by:
iterateLoadableReferencesin interfacePersistenceTypeHandler<Binary,T>
-
create
- Specified by:
createin interfacePersistenceTypeHandler<Binary,T>
-
hasPersistedReferences
public boolean hasPersistedReferences()- Specified by:
hasPersistedReferencesin interfacePersistenceTypeDefinition
-
membersPersistedLengthMinimum
public long membersPersistedLengthMinimum()- Specified by:
membersPersistedLengthMinimumin interfacePersistenceTypeDefinition
-
toTypeIdentifier
- Specified by:
toTypeIdentifierin interfacePersistenceTypeDescription
-
initializeState
- Specified by:
initializeStatein interfacePersistenceTypeHandler<Binary,T>
-
membersPersistedLengthMaximum
public long membersPersistedLengthMaximum()- Specified by:
membersPersistedLengthMaximumin interfacePersistenceTypeDefinition
-
hasPersistedVariableLength
public 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
-
updateState
- Specified by:
updateStatein interfacePersistenceTypeHandler<Binary,T>
-
complete
Description copied from interface:PersistenceTypeHandlerCompletes an initially built instance after all loaded instances have been built. E.g. can be used to cause a hash collection to hash all its initially collected entries after their instances have been built.- Specified by:
completein interfacePersistenceTypeHandler<Binary,T>
-
isPrimitiveType
public boolean isPrimitiveType()- Specified by:
isPrimitiveTypein interfacePersistenceTypeDefinition
-
hasVaryingPersistedLengthInstances
public boolean hasVaryingPersistedLengthInstances()Description copied from interface:PersistenceTypeDefinitionProvides information if one particular instance can have variing binary length from one store to another.Examples for variable length instances:
- variable size collection instances
- variable size pesudo collection instances like
java.util.StringBuilder - instances of custom defined types similar to collections
Examples for fixed length instances:
- arrays
- all immutable type instances (like
java.lang.String) - all fixed length types (see
PersistenceTypeDefinition.hasVaryingPersistedLengthInstances()
- Specified by:
hasVaryingPersistedLengthInstancesin interfacePersistenceTypeDefinition
-
iterateMemberTypes
Description copied from interface:PersistenceTypeHandlerIterates the types of persistent members (e.g. non-transientFields). The same type may occur more than once. The order in which the types are provided is undefined, i.e. depending on the implementation.- Specified by:
iterateMemberTypesin interfacePersistenceTypeHandler<Binary,T>
-
toRuntimeTypeIdentifier
- Specified by:
toRuntimeTypeIdentifierin interfacePersistenceTypeDefinition
-
membersInDeclaredOrder
- Specified by:
membersInDeclaredOrderin interfacePersistenceTypeHandler<Binary,T>
-
storingMembers
- Specified by:
storingMembersin interfacePersistenceTypeHandler<Binary,T>
-
settingMembers
- Specified by:
settingMembersin interfacePersistenceTypeHandler<Binary,T>
-
guaranteeSpecificInstanceViablity
Description copied from interface:PersistenceTypeHandlerGuarantees that thePersistenceTypeHandlerimplementation is actually viably usable to handle instances. That is the natural purpose of type handlers, but there are exceptions, like type handlers created for abstract types or unpersistable types just to have a metadata representation that links a type and a type id.See occurances of
PersistenceExceptionTypeNotPersistable.- Specified by:
guaranteeSpecificInstanceViablityin interfacePersistenceTypeHandler<Binary,T>- Throws:
PersistenceExceptionTypeNotPersistable- See Also:
PersistenceExceptionTypeNotPersistable
-
isSpecificInstanceViable
public boolean isSpecificInstanceViable()- Specified by:
isSpecificInstanceViablein interfacePersistenceTypeHandler<Binary,T>
-
guaranteeSubTypeInstanceViablity
- Specified by:
guaranteeSubTypeInstanceViablityin interfacePersistenceTypeHandler<Binary,T>- Throws:
PersistenceExceptionTypeNotPersistable
-
isSubTypeInstanceViable
public boolean isSubTypeInstanceViable()- Specified by:
isSubTypeInstanceViablein interfacePersistenceTypeHandler<Binary,T>
-
collectEnumConstants
- Specified by:
collectEnumConstantsin interfacePersistenceTypeHandler<Binary,T>
-
getPersistedEnumOrdinal
- Specified by:
getPersistedEnumOrdinalin interfacePersistenceTypeHandler<Binary,T>
-
createStoringEntityHandler
- Specified by:
createStoringEntityHandlerin interfaceBinaryHandlerEntityLoading<T>
-