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 long
getLength()
long
getObjectId()
Get the microstream object id for this objectPersistenceTypeDefinition
getPersistenceTypeDefinition()
Object
getPrimitiveInstance()
Get the assigned primitive value instance or null if it is not availableObjectDescription[]
getReferences()
Object[]
getValues()
Long[]
getVariableLength()
boolean
hasPrimitiveObjectInstance()
Check if an primitive value instance is assigned to this objectvoid
resolveReferences(long fixedOffset, long fixedLength, long variableOffset, long variableLength, EmbeddedStorageRestAdapter storageRestAdapter)
void
setLength(long variableSize)
void
setObjectId(long objectId)
void
setPersistenceTypeDefinition(PersistenceTypeDefinition persistenceTypeDefinition)
void
setPrimitiveInstance(Object primitiveInstance)
void
setReferences(ObjectDescription[] references)
void
setValues(Object[] values)
void
setVariableLength(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)
-