public class GraphRow extends Object implements RowState
DataGraphMapping,
GraphStatefullColumnKeyFactory| Modifier and Type | Field and Description |
|---|---|
protected GraphStatefullColumnKeyFactory |
columnKeyFactory |
protected DataGraphMapping |
graphConfig |
static String |
ROOT_TYPE_DELIM |
protected commonj.sdo.DataObject |
rootDataObject |
protected byte[] |
rowKey |
protected SequenceGenerator |
sequenceMapping |
| Constructor and Description |
|---|
GraphRow(byte[] rowKey,
commonj.sdo.DataObject rootDataObject,
StoreMappingContext mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataObject(commonj.sdo.DataObject dataObject)
Adds the given data object as associated with the row operation.
|
void |
addDataObject(commonj.sdo.DataObject dataObject,
Long sequence,
org.plasma.sdo.PlasmaType type) |
boolean |
contains(commonj.sdo.DataObject dataObject)
Returns true if this row operation is associated with the given data
object.
|
boolean |
contains(commonj.sdo.DataObject dataObject,
Long sequence,
org.plasma.sdo.PlasmaType type) |
boolean |
contains(Long sequence,
org.plasma.sdo.PlasmaType type)
Returns true if this row operation is associated with the given sequence
for the given base type.
|
boolean |
contains(UUID uuid)
Returns true if this row operation is associated with the given data object
UUID .
|
GraphStatefullColumnKeyFactory |
getColumnKeyFactory()
Returns the column key factory for this row context
|
DataGraphMapping |
getDataGraph() |
commonj.sdo.DataObject |
getDataObject(Long sequence,
org.plasma.sdo.PlasmaType type)
Returns the data object associated with the given sequence for the given
base type.
|
commonj.sdo.DataObject |
getDataObject(UUID uuid)
Returns the data object associated with this row operation based on the
given data object UUID .
|
static int |
getHashCode(Long sequence,
org.plasma.sdo.PlasmaType type) |
protected int |
getHashCode(org.plasma.sdo.PlasmaDataObject dataObject) |
protected int |
getHashCode(org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaProperty property) |
protected int |
getHashCode(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty property) |
protected int |
getHashCode(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty property,
Long sequence) |
protected int |
getHashCode(UUID uuid) |
commonj.sdo.DataObject |
getRootDataObject()
Returns the root data object associated with the row operation.
|
org.plasma.sdo.PlasmaType |
getRootType()
Returns the root type associated with the row operation.
|
byte[] |
getRowKey()
Returns the composite row key bytes for this row context
|
SequenceGenerator |
getSequenceMapping()
Returns the sequence mapping for this row context
|
protected byte[] rowKey
protected SequenceGenerator sequenceMapping
protected DataGraphMapping graphConfig
protected GraphStatefullColumnKeyFactory columnKeyFactory
protected commonj.sdo.DataObject rootDataObject
public static final String ROOT_TYPE_DELIM
public GraphRow(byte[] rowKey,
commonj.sdo.DataObject rootDataObject,
StoreMappingContext mappingContext)
public byte[] getRowKey()
RowStatepublic DataGraphMapping getDataGraph()
getDataGraph in interface RowStatepublic SequenceGenerator getSequenceMapping() throws IOException
RowStategetSequenceMapping in interface RowStateIOExceptionpublic GraphStatefullColumnKeyFactory getColumnKeyFactory() throws IOException
RowStategetColumnKeyFactory in interface RowStateIOExceptionpublic commonj.sdo.DataObject getRootDataObject()
getRootDataObject in interface RowStatepublic org.plasma.sdo.PlasmaType getRootType()
getRootType in interface RowStatepublic void addDataObject(commonj.sdo.DataObject dataObject)
addDataObject in interface RowStatedataObject - the root data objectIllegalArgumentException - if the given data object is already mappedpublic boolean contains(commonj.sdo.DataObject dataObject)
public boolean contains(UUID uuid)
public commonj.sdo.DataObject getDataObject(UUID uuid)
getDataObject in interface RowStatepublic boolean contains(Long sequence, org.plasma.sdo.PlasmaType type)
RowStatepublic commonj.sdo.DataObject getDataObject(Long sequence, org.plasma.sdo.PlasmaType type)
RowStategetDataObject in interface RowStatesequence - the sequencetype - the typepublic void addDataObject(commonj.sdo.DataObject dataObject,
Long sequence,
org.plasma.sdo.PlasmaType type)
addDataObject in interface RowStatepublic boolean contains(commonj.sdo.DataObject dataObject,
Long sequence,
org.plasma.sdo.PlasmaType type)
protected int getHashCode(UUID uuid)
protected int getHashCode(org.plasma.sdo.PlasmaDataObject dataObject)
protected int getHashCode(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty property,
Long sequence)
protected int getHashCode(org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaProperty property)
protected int getHashCode(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty property)
public static int getHashCode(Long sequence, org.plasma.sdo.PlasmaType type)
Copyright © 2024. All Rights Reserved.