Class AbstractBinaryHandlerCustom<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.AbstractBinaryHandlerCustom<T>
-
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
AbstractBinaryHandlerAbstractStringBuilder
,AbstractBinaryHandlerCustomCollection
,AbstractBinaryHandlerCustomEnum
,AbstractBinaryHandlerCustomValue
,AbstractBinaryHandlerNativeArray
,AbstractBinaryHandlerStateless
,BinaryHandlerLazy
,BinaryHandlerPersistenceRootsDefault
,BinaryHandlerSubstituterDefault
,BinaryLegacyTypeHandler.AbstractCustom
public abstract class AbstractBinaryHandlerCustom<T> extends BinaryTypeHandler.Abstract<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 AbstractBinaryHandlerCustom()
-
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
hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, 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, hasInstanceReferences, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, iterateLoadableReferences, membersInDeclaredOrder, settingMembers, storingMembers, type
-
-
-
-
Method Detail
-
defineValueType
public static final XImmutableSequence<PersistenceTypeDefinitionMemberFieldGeneric> defineValueType(Class<?> valueType)
-
CustomField
public static final PersistenceTypeDefinitionMemberFieldGenericSimple CustomField(Class<?> type, String name)
-
CustomField
public static final PersistenceTypeDefinitionMemberFieldGenericSimple CustomField(Class<?> type, String qualifier, String name)
-
chars
public static final PersistenceTypeDefinitionMemberFieldGeneric chars(String name)
-
bytes
public static final PersistenceTypeDefinitionMemberFieldGeneric bytes(String name)
-
CustomFields
public static final XImmutableSequence<PersistenceTypeDefinitionMemberFieldGeneric> CustomFields(PersistenceTypeDefinitionMemberFieldGeneric... customFields)
-
Complex
public static final PersistenceTypeDefinitionMemberFieldGenericComplex Complex(String name, PersistenceTypeDescriptionMemberFieldGeneric... customFields)
-
SizedArrayFields
public static final XGettingSequence<? extends PersistenceTypeDefinitionMemberFieldGeneric> SizedArrayFields(PersistenceTypeDefinitionMemberFieldGeneric... preHeaderFields)
-
SimpleArrayFields
public static final XGettingSequence<? extends PersistenceTypeDefinitionMemberFieldGeneric> SimpleArrayFields(PersistenceTypeDefinitionMemberFieldGeneric... preHeaderFields)
-
keyValuesFields
public static final XGettingSequence<? extends PersistenceTypeDefinitionMemberFieldGeneric> keyValuesFields(PersistenceTypeDefinitionMemberFieldGeneric... preHeaderFields)
-
isPrimitiveType
public boolean isPrimitiveType()
-
allMembers
public XGettingEnum<? extends PersistenceTypeDefinitionMember> allMembers()
-
instanceMembers
public XGettingEnum<? extends PersistenceTypeDefinitionMember> instanceMembers()
Description copied from interface:PersistenceTypeDefinition
Enum (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.
-
membersPersistedLengthMinimum
public long membersPersistedLengthMinimum()
-
membersPersistedLengthMaximum
public long membersPersistedLengthMaximum()
-
store
public abstract void store(Binary bytes, T instance, long objectId, PersistenceStoreHandler handler)
-
iterateInstanceReferences
public void iterateInstanceReferences(T instance, PersistenceFunction iterator)
-
create
public abstract T create(Binary bytes, PersistenceObjectIdResolver idResolver)
-
update
public void update(Binary bytes, T instance, PersistenceObjectIdResolver idResolver)
-
complete
public void complete(Binary bytes, T instance, PersistenceObjectIdResolver idResolver)
Description copied from interface:PersistenceTypeHandler
Completes 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.
-
iterateMemberTypes
public <C extends Consumer<? super Class<?>>> C iterateMemberTypes(C logic)
Description copied from interface:PersistenceTypeHandler
Iterates the types of persistent members (e.g. non-transientField
s). The same type may occur more than once. The order in which the types are provided is undefined, i.e. depending on the implementation.
-
-