Class ObjectDescription
java.lang.Object
one.microstream.storage.restadapter.ObjectDescription
public class ObjectDescription extends Object
This class encapsulates the type definition and all field values retrieved
for an object received from the ViewerPersistenceManager.
-
Constructor Summary
Constructors Constructor Description ObjectDescription() -
Method Summary
Modifier and Type Method Description longgetLength()longgetObjectId()Get the microstream object id for this objectPersistenceTypeDefinitiongetPersistenceTypeDefinition()ObjectgetPrimitiveInstance()Get the assigned primitive value instance or null if it is not availableObjectDescription[]getReferences()Object[]getValues()Long[]getVariableLength()booleanhasPrimitiveObjectInstance()Check if an primitive value instance is assigned to this objectvoidresolveReferences(long fixedOffset, long fixedLength, long variableOffset, long variableLength, EmbeddedStorageRestAdapter storageRestAdapter)voidsetLength(long variableSize)voidsetObjectId(long objectId)voidsetPersistenceTypeDefinition(PersistenceTypeDefinition persistenceTypeDefinition)voidsetPrimitiveInstance(Object primitiveInstance)voidsetReferences(ObjectDescription[] references)voidsetValues(Object[] values)voidsetVariableLength(Long[] objects)
-
Constructor Details
-
ObjectDescription
public ObjectDescription()
-
-
Method Details
-
getObjectId
public long getObjectId()Get the microstream object id for this object- Returns:
- object id as long
-
setObjectId
public void setObjectId(long objectId) -
getValues
-
setValues
-
getLength
public long getLength() -
setLength
public void setLength(long variableSize) -
setVariableLength
-
getVariableLength
-
getReferences
-
setReferences
-
getPrimitiveInstance
Get the assigned primitive value instance or null if it is not available- Returns:
- Object
-
setPrimitiveInstance
-
getPersistenceTypeDefinition
-
setPersistenceTypeDefinition
-
hasPrimitiveObjectInstance
public boolean hasPrimitiveObjectInstance()Check if an primitive value instance is assigned to this object- Returns:
- true if the object has a primitive value instance
-
resolveReferences
public void resolveReferences(long fixedOffset, long fixedLength, long variableOffset, long variableLength, EmbeddedStorageRestAdapter storageRestAdapter)
-