public abstract class WriterSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StoreMappingContext |
mappingContext |
protected Map<commonj.sdo.DataObject,RowWriter> |
rowWriterMap |
| Modifier | Constructor and Description |
|---|---|
protected |
WriterSupport(StoreMappingContext mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
protected RowWriter |
addRowWriter(commonj.sdo.DataObject dataObject,
TableWriter tableWriter)
Creates adds and returns a new row writer for the given (row root) data
object.
|
protected RowWriter |
createRowWriter(TableWriter tableWriter,
commonj.sdo.DataObject target)
Creates and returns a new row writer for the given (row root) data object.
|
protected RowWriter |
createRowWriter(TableWriter tableWriter,
commonj.sdo.DataObject dataObject,
byte[] rowKey)
Creates and returns a new row writer for the given (row root) data object.
|
protected RowWriter |
findContainerRowWriter(commonj.sdo.DataObject target)
Finds and return the row writer associated with the given target data
object
|
protected List<commonj.sdo.DataObject> |
getContainerAncestry(commonj.sdo.DataObject target)
Traverses the container links for the given data object returning the
ancestry as an ordered list.
|
protected RowWriter |
getContainerRowWriter(commonj.sdo.DataObject target)
Finds and return the row writer associated with the container for the given
target data object
|
protected StoreMappingContext mappingContext
protected WriterSupport(StoreMappingContext mappingContext)
protected RowWriter getContainerRowWriter(commonj.sdo.DataObject target)
target - the target data objectOperationException - if no row writer foundprotected RowWriter findContainerRowWriter(commonj.sdo.DataObject target)
target - the target data objectprotected List<commonj.sdo.DataObject> getContainerAncestry(commonj.sdo.DataObject target)
target - protected RowWriter createRowWriter(TableWriter tableWriter, commonj.sdo.DataObject target) throws IOException
tableWriter - the table writertarget - the target (row root) data objectIOExceptionprotected RowWriter createRowWriter(TableWriter tableWriter, commonj.sdo.DataObject dataObject, byte[] rowKey) throws IOException
tableWriter - the table contextdataObject - the (row root) data objectrowKey - the existing row keyIOExceptionprotected RowWriter addRowWriter(commonj.sdo.DataObject dataObject, TableWriter tableWriter) throws IOException
dataObject - the target (row root) data objecttableWriter - the table contextIOExceptionCopyright © 2021. All Rights Reserved.