public interface DistributedWriter extends DistributedGraphOperation
Acts as a container for one or more TableWriter elements
encapsulating a set of component table write operations for federation across
multiple tables, or a single table in the most simple (degenerate) case.
GraphTableWriter,
GraphTable| Modifier and Type | Method and Description |
|---|---|
void |
addTableWriter(TableWriter writer)
Adds the given table writer to the container
|
RowWriter |
createRowWriter(commonj.sdo.DataObject dataObject)
Creates and returns a new row writer associated with the given data object.
|
RowWriter |
findRowWriter(commonj.sdo.DataObject dataObject)
Returns the row writer associated with the given data object or null if no
row writer is associated.
|
TableWriter |
getRootTableWriter()
Returns the table writer associated with the data graph root.
|
RowWriter |
getRowWriter(commonj.sdo.DataObject dataObject)
Returns the row writer associated with the given data object
|
TableWriter |
getTableWriter(String tableName)
Returns the table writer for the given configured table name.
|
int |
getTableWriterCount()
Returns the count of table writers for this container.
|
List<TableWriter> |
getTableWriters()
Returns all table writers for the this container
|
List<commonj.sdo.Type> |
getTypes(TableWriter operation)
Returns a list of types associated with the given table operation.
|
void |
setRootTableWriter(TableWriter writer)
Sets the table writer associated with the data graph root.
|
close, getConnection, getMappingContext, hasSingleRootTypeTableWriter getTableWriter(String tableName)
tableName - the name of the configured table.void addTableWriter(TableWriter writer)
writer - the table writer.int getTableWriterCount()
List<TableWriter> getTableWriters()
TableWriter getRootTableWriter()
void setRootTableWriter(TableWriter writer)
writer - the table writerRowWriter findRowWriter(commonj.sdo.DataObject dataObject)
dataObject - the data objectRowWriter getRowWriter(commonj.sdo.DataObject dataObject)
dataObject - the data objectIllegalArgumentException - if the given data object is not associated with any row writer.RowWriter createRowWriter(commonj.sdo.DataObject dataObject) throws IOException
dataObject - the data objectIllegalArgumentException - if the given data object is already associated with a row writer.IOExceptionList<commonj.sdo.Type> getTypes(TableWriter operation)
reader - the table operationCopyright © 2021. All Rights Reserved.