public abstract class DefaultAssembler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
charset |
protected DataGraphMapping |
graph |
protected Map<org.plasma.sdo.PlasmaType,GraphColumnKeyFactory> |
keyFactories |
protected org.plasma.sdo.PlasmaDataObject |
root |
protected TableReader |
rootTableReader |
protected org.plasma.sdo.PlasmaType |
rootType |
protected org.plasma.query.collector.Selection |
selection |
protected Timestamp |
snapshotDate |
| Constructor and Description |
|---|
DefaultAssembler(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.collector.Selection selection,
TableReader rootTableReader,
Timestamp snapshotDate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assembleData(org.plasma.sdo.PlasmaDataObject target,
long targetSequence,
Set<commonj.sdo.Property> props,
RowReader rowReader) |
protected void |
assembleUUID(org.plasma.sdo.PlasmaDataObject target,
long targetSequence,
EdgeReader edgeReader,
RowReader rowReader) |
protected org.plasma.sdo.PlasmaDataObject |
createChild(long targetSequence,
EdgeOperation collection,
commonj.sdo.DataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
RowReader rowReader,
DataGraphMapping graphConfig) |
protected org.plasma.sdo.PlasmaDataObject |
createChild(org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty prop,
UUID uuid,
org.plasma.sdo.PlasmaType subType)
Creates contained child data object with the same type as the given
containment property or of a specific given sub-type as determined by
querying the entity state.
|
protected org.plasma.sdo.PlasmaDataObject |
createChild(UUID uuid,
org.plasma.sdo.PlasmaType childType,
long targetSequence,
commonj.sdo.DataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty) |
protected org.plasma.sdo.PlasmaDataObject |
createRoot(GraphColumnKeyFactory keyFactory,
CellValues resultRow) |
protected CellValues |
fetchGraph(byte[] rowKey,
TableReader tableReader,
org.plasma.sdo.PlasmaType type)
Returns the selection graph as a single result.
|
protected org.plasma.sdo.PlasmaType |
fetchRootType(TableReader childTableReader,
GraphColumnKeyFactory keyFactory,
org.plasma.sdo.PlasmaType subType,
CellValues childResult) |
protected UUID |
fetchRootUUID(TableReader childTableReader,
GraphColumnKeyFactory keyFactory,
org.plasma.sdo.PlasmaType subType,
CellValues childResult) |
protected org.plasma.sdo.PlasmaType |
fetchType(org.plasma.sdo.PlasmaType type,
long targetSequence,
EdgeReader edgeReader,
RowReader rowReader) |
protected UUID |
fetchUUID(org.plasma.sdo.PlasmaType type,
long targetSequence,
EdgeReader edgeReader,
RowReader rowReader) |
protected byte[] |
findMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
long sequence,
EntityMetaKey keyField,
TableMapping tableConfig,
RowReader rowReader) |
protected byte[] |
findMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty property,
long sequence,
EntityMetaKey keyField,
TableMapping tableConfig,
RowReader rowReader) |
protected org.plasma.sdo.PlasmaType |
findRootType(TableReader childTableReader,
GraphColumnKeyFactory keyFactory,
org.plasma.sdo.PlasmaType subType,
CellValues childResult) |
protected UUID |
findRootUUID(TableReader childTableReader,
GraphColumnKeyFactory keyFactory,
org.plasma.sdo.PlasmaType subType,
CellValues childResult) |
protected byte[] |
getDataColumnValue(org.plasma.sdo.PlasmaDataObject target,
org.plasma.sdo.PlasmaProperty prop,
TableMapping tableConfig,
RowReader rowReader) |
protected byte[] |
getDataColumnValue(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty prop,
long typeSequenceNum,
TableMapping tableConfig,
RowReader rowReader)
Returns a value for the given property from the given row reader by
generating a column qualifier based on column key model configurations
settings, graph state information and other factors.
|
org.plasma.sdo.PlasmaDataGraph |
getDataGraph()
Returns the assembled data graph.
|
protected GraphColumnKeyFactory |
getKeyFactory(org.plasma.sdo.PlasmaType type) |
protected byte[] |
getMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
EntityMetaKey keyField,
TableMapping tableConfig,
CellValues result,
RowReader rowReader) |
protected byte[] |
getMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
long sequence,
EntityMetaKey keyField,
TableMapping tableConfig,
RowReader rowReader) |
protected Set<commonj.sdo.Property> |
getProperties(org.plasma.sdo.PlasmaDataObject target,
org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
int level) |
protected Set<commonj.sdo.Property> |
getProperties(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
int level) |
protected void |
link(org.plasma.sdo.PlasmaDataObject target,
org.plasma.sdo.PlasmaDataObject source,
commonj.sdo.Property sourceProperty)
Associates the source data object with the target as a non-containment
reference.
|
protected org.plasma.sdo.PlasmaType rootType
protected Map<org.plasma.sdo.PlasmaType,GraphColumnKeyFactory> keyFactories
protected org.plasma.sdo.PlasmaDataObject root
protected TableReader rootTableReader
protected DataGraphMapping graph
protected Charset charset
protected org.plasma.query.collector.Selection selection
protected Timestamp snapshotDate
public DefaultAssembler(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.collector.Selection selection,
TableReader rootTableReader,
Timestamp snapshotDate)
rootType - the SDO root type for the result data graphselection - the selection properties for the graph to assemble.snapshotDate - the query snapshot date which is populated into every data object
in the result data graph.public org.plasma.sdo.PlasmaDataGraph getDataGraph()
protected GraphColumnKeyFactory getKeyFactory(org.plasma.sdo.PlasmaType type)
protected org.plasma.sdo.PlasmaDataObject createRoot(GraphColumnKeyFactory keyFactory, CellValues resultRow)
protected org.plasma.sdo.PlasmaDataObject createChild(org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty prop,
UUID uuid,
org.plasma.sdo.PlasmaType subType)
throws IOException
source - the container data objectprop - the containment propertyuuid - the uuid for the new childsubType - the specific (sub) type for the new child which may differ from
the type for the containment propertyIOExceptionprotected org.plasma.sdo.PlasmaDataObject createChild(long targetSequence,
EdgeOperation collection,
commonj.sdo.DataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
RowReader rowReader,
DataGraphMapping graphConfig)
throws IOException
IOExceptionprotected org.plasma.sdo.PlasmaDataObject createChild(UUID uuid, org.plasma.sdo.PlasmaType childType, long targetSequence, commonj.sdo.DataObject source, org.plasma.sdo.PlasmaProperty sourceProperty) throws IOException
IOExceptionprotected void assembleUUID(org.plasma.sdo.PlasmaDataObject target,
long targetSequence,
EdgeReader edgeReader,
RowReader rowReader)
throws IOException
IOExceptionprotected UUID fetchUUID(org.plasma.sdo.PlasmaType type, long targetSequence, EdgeReader edgeReader, RowReader rowReader) throws IOException
IOExceptionprotected UUID findRootUUID(TableReader childTableReader, GraphColumnKeyFactory keyFactory, org.plasma.sdo.PlasmaType subType, CellValues childResult)
protected UUID fetchRootUUID(TableReader childTableReader, GraphColumnKeyFactory keyFactory, org.plasma.sdo.PlasmaType subType, CellValues childResult)
protected org.plasma.sdo.PlasmaType fetchRootType(TableReader childTableReader, GraphColumnKeyFactory keyFactory, org.plasma.sdo.PlasmaType subType, CellValues childResult) throws IOException
IOExceptionprotected org.plasma.sdo.PlasmaType findRootType(TableReader childTableReader, GraphColumnKeyFactory keyFactory, org.plasma.sdo.PlasmaType subType, CellValues childResult) throws IOException
IOExceptionprotected org.plasma.sdo.PlasmaType fetchType(org.plasma.sdo.PlasmaType type,
long targetSequence,
EdgeReader edgeReader,
RowReader rowReader)
throws IOException
IOExceptionprotected void assembleData(org.plasma.sdo.PlasmaDataObject target,
long targetSequence,
Set<commonj.sdo.Property> props,
RowReader rowReader)
throws IOException
IOExceptionprotected byte[] getMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
long sequence,
EntityMetaKey keyField,
TableMapping tableConfig,
RowReader rowReader)
throws IOException
IOExceptionprotected byte[] getMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
EntityMetaKey keyField,
TableMapping tableConfig,
CellValues result,
RowReader rowReader)
throws IOException
IOExceptionprotected byte[] findMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty property,
long sequence,
EntityMetaKey keyField,
TableMapping tableConfig,
RowReader rowReader)
throws IOException
IOExceptionprotected byte[] findMetaDataColumnValue(org.plasma.sdo.PlasmaType type,
long sequence,
EntityMetaKey keyField,
TableMapping tableConfig,
RowReader rowReader)
throws IOException
IOExceptionprotected byte[] getDataColumnValue(org.plasma.sdo.PlasmaType type,
org.plasma.sdo.PlasmaProperty prop,
long typeSequenceNum,
TableMapping tableConfig,
RowReader rowReader)
throws IOException
target - the data objectprop - the propertytypeSequenceNum - the graph row specific sequence number for the given type for a
data objecttableConfig - the table configurationrowReader - the row readerIOException - if a remote or network exception occurs.protected byte[] getDataColumnValue(org.plasma.sdo.PlasmaDataObject target,
org.plasma.sdo.PlasmaProperty prop,
TableMapping tableConfig,
RowReader rowReader)
throws IOException
IOExceptionprotected Set<commonj.sdo.Property> getProperties(org.plasma.sdo.PlasmaDataObject target, org.plasma.sdo.PlasmaDataObject source, org.plasma.sdo.PlasmaProperty sourceProperty, int level)
protected Set<commonj.sdo.Property> getProperties(org.plasma.sdo.PlasmaType type, org.plasma.sdo.PlasmaDataObject source, org.plasma.sdo.PlasmaProperty sourceProperty, int level)
protected void link(org.plasma.sdo.PlasmaDataObject target,
org.plasma.sdo.PlasmaDataObject source,
commonj.sdo.Property sourceProperty)
target - the data object targetsource - the data object sourcesourceProperty - the reference propertyIllegalStateException - if the target data object does not have a containerprotected CellValues fetchGraph(byte[] rowKey, TableReader tableReader, org.plasma.sdo.PlasmaType type) throws IOException
rowKey - the row keytableReader - the table readerdataObject - theIOException - if a remote or network exception occurs.GraphFetchColumnFilterAssemblerCopyright © 2021. All Rights Reserved.