Class ViewerBinaryTypeHandlerGeneric
java.lang.Object
one.microstream.storage.restadapter.ViewerBinaryTypeHandlerGeneric
- All Implemented Interfaces:
PersistenceDataTypeHolder<Binary>,PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeHandler<Binary,ObjectDescription>,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
public class ViewerBinaryTypeHandlerGeneric extends Object implements PersistenceTypeHandler<Binary,ObjectDescription>
-
Nested Class Summary
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.DefaultNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.IdentityNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<D,T> -
Constructor Summary
Constructors Constructor Description ViewerBinaryTypeHandlerGeneric(PersistenceTypeDefinition persistenceTypeDef) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
hasPersistedVariableLength, runtimeTypeName, toRuntimeTypeIdentifierMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifierMethods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initializeState, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, membersInDeclaredOrder, settingMembers, storingMembers, validateEntityType
-
Constructor Details
-
Method Details
-
getPersitenceTypeDefinition
-
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
-
hasPersistedReferences
public boolean hasPersistedReferences()- Specified by:
hasPersistedReferencesin interfacePersistenceTypeDefinition
-
membersPersistedLengthMinimum
public long membersPersistedLengthMinimum()- Specified by:
membersPersistedLengthMinimumin interfacePersistenceTypeDefinition
-
membersPersistedLengthMaximum
public long membersPersistedLengthMaximum()- Specified by:
membersPersistedLengthMaximumin interfacePersistenceTypeDefinition
-
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
-
type
- Specified by:
typein interfacePersistenceTypeDefinition- Specified by:
typein interfacePersistenceTypeHandler<Binary,ObjectDescription>- Specified by:
typein interfacePersistenceTypeLink
-
allMembers
- Specified by:
allMembersin interfacePersistenceTypeDefinition- Specified by:
allMembersin interfacePersistenceTypeDescription- Specified by:
allMembersin interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
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,ObjectDescription>
-
iterateInstanceReferences
- Specified by:
iterateInstanceReferencesin interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
iterateLoadableReferences
- Specified by:
iterateLoadableReferencesin interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
store
public void store(Binary data, ObjectDescription instance, long objectId, PersistenceStoreHandler<Binary> handler)- Specified by:
storein interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
create
- Specified by:
createin interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
updateState
- Specified by:
updateStatein interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
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,ObjectDescription>
-
initialize
- Specified by:
initializein interfacePersistenceTypeHandler<Binary,ObjectDescription>
-
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,ObjectDescription>
-
dataType
- Specified by:
dataTypein interfacePersistenceDataTypeHolder<Binary>- Specified by:
dataTypein interfacePersistenceTypeHandler<Binary,ObjectDescription>
-