Class AbstractBinaryHandlerReflective<T>
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceTypeHandler.Abstract<Binary,T>
-
- one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract<T>
-
- one.microstream.persistence.binary.internal.AbstractBinaryHandlerReflective<T>
-
- All Implemented Interfaces:
BinaryTypeHandler<T>,PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeHandler<Binary,T>,PersistenceTypeHandlerGeneric<Binary,T>,PersistenceTypeHandlerReflective<Binary,T>,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
- Direct Known Subclasses:
BinaryHandlerGenericEnum,BinaryHandlerGenericType
public abstract class AbstractBinaryHandlerReflective<T> extends BinaryTypeHandler.Abstract<T> implements PersistenceTypeHandlerReflective<Binary,T>
-
-
Nested Class Summary
-
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.PersistenceTypeDefinition
PersistenceTypeDefinition.Default
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<M,T>
-
-
Constructor Summary
Constructors Constructor Description AbstractBinaryHandlerReflective()
-
Method Summary
-
Methods inherited from class one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract
declaredField, declaredField
-
Methods inherited from class one.microstream.persistence.types.PersistenceTypeHandler.Abstract
declaredField, declaredFields, initialize, toString, type, typeId, typeName, validateAndImmure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeName
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
toTypeIdentifier
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, type
-
-
-
-
Method Detail
-
instanceFields
public XGettingEnum<Field> instanceFields()
- Specified by:
instanceFieldsin interfacePersistenceTypeHandlerReflective<Binary,T>
-
instancePrimitiveFields
public XGettingEnum<Field> instancePrimitiveFields()
- Specified by:
instancePrimitiveFieldsin interfacePersistenceTypeHandlerReflective<Binary,T>
-
instanceReferenceFields
public XGettingEnum<Field> instanceReferenceFields()
- Specified by:
instanceReferenceFieldsin interfacePersistenceTypeHandlerReflective<Binary,T>
-
isPrimitiveType
public final boolean isPrimitiveType()
- Specified by:
isPrimitiveTypein interfacePersistenceTypeDefinition
-
allMembers
public XGettingEnum<? extends PersistenceTypeDefinitionMember> allMembers()
- Specified by:
allMembersin interfacePersistenceTypeDefinition- Specified by:
allMembersin interfacePersistenceTypeDescription- Specified by:
allMembersin interfacePersistenceTypeHandler<Binary,T>
-
instanceMembers
public XGettingEnum<? extends PersistenceTypeDefinitionMemberFieldReflective> 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>- Specified by:
instanceMembersin interfacePersistenceTypeHandlerReflective<Binary,T>
-
storingMembers
public XGettingEnum<? extends PersistenceTypeDefinitionMemberFieldReflective> storingMembers()
- Specified by:
storingMembersin interfacePersistenceTypeHandler<Binary,T>- Specified by:
storingMembersin interfacePersistenceTypeHandlerReflective<Binary,T>
-
settingMembers
public XGettingEnum<? extends PersistenceTypeDefinitionMemberFieldReflective> settingMembers()
- Specified by:
settingMembersin interfacePersistenceTypeHandler<Binary,T>- Specified by:
settingMembersin interfacePersistenceTypeHandlerReflective<Binary,T>
-
membersInDeclaredOrder
public XGettingEnum<? extends PersistenceTypeDefinitionMember> membersInDeclaredOrder()
- Specified by:
membersInDeclaredOrderin interfacePersistenceTypeHandler<Binary,T>
-
hasInstanceReferences
public final boolean hasInstanceReferences()
- Specified by:
hasInstanceReferencesin interfacePersistenceTypeHandler<Binary,T>
-
hasPersistedReferences
public final boolean hasPersistedReferences()
- Specified by:
hasPersistedReferencesin interfacePersistenceTypeDefinition
-
membersPersistedLengthMinimum
public final long membersPersistedLengthMinimum()
- Specified by:
membersPersistedLengthMinimumin interfacePersistenceTypeDefinition
-
membersPersistedLengthMaximum
public final long membersPersistedLengthMaximum()
- Specified by:
membersPersistedLengthMaximumin interfacePersistenceTypeDefinition
-
hasPersistedVariableLength
public final 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
-
hasVaryingPersistedLengthInstances
public final 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
-
store
public void store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
- Specified by:
storein interfacePersistenceTypeHandler<Binary,T>
-
create
public abstract T create(Binary bytes, PersistenceObjectIdResolver idResolver)
- Specified by:
createin interfacePersistenceTypeHandler<Binary,T>
-
update
public void update(Binary bytes, T instance, PersistenceObjectIdResolver idResolver)
- Specified by:
updatein interfacePersistenceTypeHandler<Binary,T>
-
complete
public final void complete(Binary medium, T instance, PersistenceObjectIdResolver idResolver)
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>
-
iterateInstanceReferences
public void iterateInstanceReferences(T instance, PersistenceFunction iterator)
- Specified by:
iterateInstanceReferencesin interfacePersistenceTypeHandler<Binary,T>
-
iterateLoadableReferences
public void iterateLoadableReferences(Binary bytes, PersistenceObjectIdAcceptor iterator)
- Specified by:
iterateLoadableReferencesin interfacePersistenceTypeHandler<Binary,T>
-
iterateMemberTypes
public <C extends Consumer<? super Class<?>>> C iterateMemberTypes(C logic)
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>
-
-