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>
- Type Parameters:
T
- the handled type
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
AbstractBinaryHandlerAbstractStringBuilder
,AbstractBinaryHandlerCustomCollection
,AbstractBinaryHandlerCustomEnum
,AbstractBinaryHandlerCustomNonReferential
,AbstractBinaryHandlerCustomValue
,AbstractBinaryHandlerNativeArray
,AbstractBinaryHandlerStateless
,BinaryHandlerEntityLayerVersioning
,BinaryHandlerLazyDefault
,BinaryHandlerPersistenceRootsDefault
,BinaryHandlerRootReferenceDefault
,BinaryHandlerSubstituterDefault
,BinaryLegacyTypeHandler.AbstractCustom
,CustomBinaryHandler
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.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D>
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<D,T>
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBinaryHandlerCustom(Class<T> type)
protected
AbstractBinaryHandlerCustom(Class<T> type, String typeName, XGettingSequence<? extends PersistenceTypeDefinitionMember> members)
protected
AbstractBinaryHandlerCustom(Class<T> type, XGettingSequence<? extends PersistenceTypeDefinitionMember> members)
-
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, deriveTypeName, initialize, internalInitialize, toString, type, typeId, typeName, validateAndImmure, validateInstance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
dataType
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
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, initializeState, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, iterateLoadableReferences, membersInDeclaredOrder, settingMembers, storingMembers, type, updateState, validateEntityType
-
Constructor Details
-
AbstractBinaryHandlerCustom
-
AbstractBinaryHandlerCustom
protected AbstractBinaryHandlerCustom(Class<T> type, XGettingSequence<? extends PersistenceTypeDefinitionMember> members) -
AbstractBinaryHandlerCustom
protected AbstractBinaryHandlerCustom(Class<T> type, String typeName, XGettingSequence<? extends PersistenceTypeDefinitionMember> members)
-
-
Method Details
-
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
-
bytes
-
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) -
getInstanceFieldOfType
protected static final Field getInstanceFieldOfType(Class<?> declaringType, Class<?> fieldType) throws NoSuchFieldRuntimeException- Throws:
NoSuchFieldRuntimeException
-
calculcateBinaryLengths
protected void calculcateBinaryLengths() -
isPrimitiveType
public boolean isPrimitiveType() -
allMembers
-
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. -
ensureInitializeInstanceMembers
protected final void ensureInitializeInstanceMembers() -
initializeInstanceMembers
-
membersPersistedLengthMinimum
public long membersPersistedLengthMinimum() -
membersPersistedLengthMaximum
public long membersPersistedLengthMaximum() -
store
public abstract void store(Binary data, T instance, long objectId, PersistenceStoreHandler<Binary> handler) -
iterateInstanceReferences
-
create
-
complete
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.- Parameters:
data
- the data targetinstance
- the source instancehandler
- the appropriate handler
-
iterateMemberTypes
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.- Type Parameters:
C
- the logic type- Parameters:
logic
- the iteration logic- Returns:
- the given logic
-