public class LegacyJavaAppserver extends java.lang.Object implements LegacyJavaAppserverApi
This will be extended as more features of Java Open Client are required.
Modifier and Type | Field and Description |
---|---|
private boolean |
defaultTrackChanges
Flag indicating if the change logging is tracked by default, for all tables created.
|
private static java.util.Map<java.lang.Integer,java.lang.Class<?>> |
legacyTypes
Mapping of an integer type to the
BaseDataType type. |
private boolean |
normalizedExtent
Flag indicating if the extent fields are normalized or denormalized (expanded).
|
private static java.util.Map<java.lang.Integer,java.lang.String> |
paramModes
Map of integer modes to their string representation in FWD.
|
private static java.util.Map<java.lang.Class<?>,java.lang.Integer> |
types2Legacy
Mapping of a
BaseDataType type to its numeric type. |
INPUT, INPUT_OUTPUT, OUTPUT, TYPE_BLOB, TYPE_CHARACTER, TYPE_CLOB, TYPE_DATASET, TYPE_DATASET_HANDLE, TYPE_DATE, TYPE_DATETIME, TYPE_DATETIMETZ, TYPE_DECIMAL, TYPE_HANDLE, TYPE_INT64, TYPE_INTEGER, TYPE_LOGICAL, TYPE_LONGCHAR, TYPE_MEMPTR, TYPE_RAW, TYPE_RECID, TYPE_ROWID, TYPE_TABLE_HANDLE, TYPE_UNKNOWN
Constructor and Description |
---|
LegacyJavaAppserver()
Implicit contstructor, initialize a Java-style legacy client (with
normalizedExtent set to
true ). |
LegacyJavaAppserver(boolean normalizedExtent)
Initialize this client, by specifying the extent mode: normalized (for Java-style) or denormalized
(for .NET-style).
|
Modifier and Type | Method and Description |
---|---|
void |
addDataObject(commonj.sdo.DataGraph graph,
commonj.sdo.DataObject row)
Add the specified row to the graph.
|
void |
addDataObject(commonj.sdo.DataObject tableMetaData,
commonj.sdo.DataObject row)
Add the specified row to the graph.
|
void |
addRelation(commonj.sdo.DataObject metaData,
java.lang.String name,
java.lang.String parentBuffer,
java.lang.String childBuffer,
java.lang.String whereString,
boolean active,
boolean parentId,
java.lang.String pairs,
boolean fkeyHidden,
boolean recursive,
boolean nested,
boolean reposition)
Add a relation to the graph's metadata.
|
void |
addTableMetaData(commonj.sdo.DataObject metaData,
commonj.sdo.DataObject table)
Add the specified table metadata to the graph.
|
void |
beginLogging(java.lang.Object changeSummary)
Begin the logging for changes in this object.
|
commonj.sdo.DataGraph |
createDataGraph()
Create a new graph to hold a dataset.
|
commonj.sdo.DataGraph |
createDataGraph(java.lang.Object metadata)
Create a new metadata object to hold the table details.
|
commonj.sdo.DataObject |
createDataObject(commonj.sdo.DataGraph graph,
java.lang.String table)
Create a new row for the specified table.
|
commonj.sdo.DataObject |
createDataObject(commonj.sdo.DataObject tableMetaData)
Create a new row for the specified table.
|
private DsTableDefinition |
createDsTable(java.util.List<commonj.sdo.DataObject> rows,
java.util.List<commonj.sdo.DataObject> fields,
boolean input,
boolean output)
Create a table definition part of a dataset parameter.
|
commonj.sdo.DataObject |
createGraphMetaData(java.lang.String name)
Create a metadata object with the specified name.
|
java.lang.Object |
createMemptr(byte[] value)
Create a memptr corresponding instance.
|
commonj.sdo.DataObject |
createObjectMetaData(java.lang.String name,
int numFields,
boolean b4img,
int numIndexes,
java.lang.String indexes,
java.lang.String xmlns,
java.lang.String xmlPrefix)
Deprecated.
|
commonj.sdo.DataObject |
createObjectMetaData(java.lang.String name,
int numFields,
boolean b4img,
int numIndexes,
java.lang.String indexes,
java.lang.String xmlns,
java.lang.String xmlPrefix,
java.lang.String xmlNodeName,
java.lang.String errorString)
Create an object with a table metadata.
|
private void |
createOutputTable(commonj.sdo.DataGraph graph,
DsTableDefinition dst,
boolean reuseMetadata,
boolean beforeTable)
Create and populate a table from the results received from the request.
|
private void |
createOutputTable(commonj.sdo.DataGraph graph,
TableWrapper wrapper,
boolean reuseMetadata,
boolean beforeTable)
Create and populate a table from the results received from the request.
|
void |
endLogging(java.lang.Object changeSummary)
End the logging for changes in this object.
|
private java.lang.Object |
fromJavaType(java.lang.Object value,
int type,
int extent)
Convert the given value to a
BaseDataType compatible instance. |
java.lang.String |
getArgumentModes(LegacyJavaAppserverParameter[] paramArray)
Get a string representation of the argument's modes.
|
java.lang.Object[] |
getArguments(LegacyJavaAppserverParameter[] paramArray)
Resolve the arguments from the given parameter array.
|
byte[] |
getBytes(java.lang.Object outputParameter)
Get the bytes from the given output parameter, which is a
MemoryBuffer . |
java.util.List<commonj.sdo.DataObject> |
getChangedDataObjects(java.lang.Object changeSummary)
Get all the changed objects in this change summary.
|
commonj.sdo.DataGraph |
getChanges(java.lang.Object changeSummary)
Get the changes in this change summary, as a graph.
|
java.lang.Object |
getChangeSummary(commonj.sdo.DataGraph graph)
Get the change summary object for this graph.
|
java.util.List<commonj.sdo.DataObject> |
getChildRows(commonj.sdo.DataObject row,
java.lang.String relation)
Get the child rows for this record.
|
AppServerHelper |
getConnection(BootstrapConfig config,
java.lang.String account,
java.lang.String appServerName,
boolean sessionFree,
java.lang.String user,
java.lang.String pwd,
java.lang.String serverInfo)
Create a new FWd connection with the specified configuration.
|
java.lang.String |
getDataGraphName(commonj.sdo.DataObject metadata)
Get the graph name from the specified metadata, of type
graphmetadata . |
java.util.List<commonj.sdo.DataObject> |
getDataObjects(commonj.sdo.DataGraph graph,
int idx)
Get all the records for the table on the specified index, in the graph metadata.
|
java.util.List<commonj.sdo.DataObject> |
getDataObjects(commonj.sdo.DataGraph graph,
java.lang.String table)
Get all the records for the table with the specified name, in this graph.
|
java.util.List<commonj.sdo.DataObject> |
getDataObjects(commonj.sdo.DataObject tableMeta)
Get all the records for the specified table.
|
int |
getFieldCount(commonj.sdo.DataObject row)
Get the number of fields for a given row.
|
java.lang.String |
getFieldName(commonj.sdo.DataObject row,
int i)
Get the name of the field on the given index in the metadata.
|
int |
getFieldType(commonj.sdo.DataObject row,
int i)
Get the type of the field on the given index in the metadata.
|
java.lang.String |
getGraphName(commonj.sdo.DataObject tableMetadata)
Get the data graph name for the given table metadata.
|
java.util.GregorianCalendar |
getGregorianCalendar(commonj.sdo.DataObject row,
int idx)
Get the row's property on the given index as a
GregorianCalendar . |
java.util.GregorianCalendar |
getGregorianCalendar(commonj.sdo.DataObject row,
java.lang.String name)
Get the row's property as a
GregorianCalendar . |
LegacyJavaAppserverParameter |
getJavaParameter(int mode,
int type,
java.lang.Object value,
java.lang.Object metadata)
Configure a
LegacyJavaAppserverParameter with the given details. |
commonj.sdo.DataObject |
getMetaData(commonj.sdo.DataGraph graph)
Get the metadata object for this graph, from the
metadata property of the root
object. |
int |
getNumTables(commonj.sdo.DataGraph graph)
Get the number of tables for a graph.
|
int |
getNumTables(commonj.sdo.DataObject metaData)
Get the number of tables for a graph metadata.
|
java.lang.Object |
getOutputParameter(LegacyJavaAppserverParameter param)
Determine the output parameter value.
|
java.lang.Object |
getOutputParameter(LegacyJavaAppserverParameter[] paramArray,
int i)
Determine the output parameter value on the given index.
|
int |
getTableFieldType(commonj.sdo.DataObject tableMetadata,
java.lang.String fieldName)
Get the field type.
|
java.util.List<commonj.sdo.DataObject> |
getTableMetaData(commonj.sdo.DataGraph graph)
Get the metadata list for all tables.
|
commonj.sdo.DataObject |
getTableMetaData(commonj.sdo.DataGraph graph,
java.lang.String table)
Get the metadata for the specified table.
|
commonj.sdo.DataObject |
getTableMetaData(commonj.sdo.DataObject metaData,
int i)
Get the metadata for the table registered on the given index in the graph.
|
java.lang.String |
getTableName(commonj.sdo.DataObject value)
Get the table name for a given row or table metadata.
|
java.lang.String[] |
getTableNames(commonj.sdo.DataGraph graph)
Get all table names from the given graph.
|
boolean |
isCreated(java.lang.Object changeSummary,
commonj.sdo.DataObject object)
Check if the given object is newly created.
|
boolean |
isDeleted(java.lang.Object changeSummary,
commonj.sdo.DataObject object)
Check if the given object has been deleted.
|
boolean |
isMemptr(java.lang.Object outputParameter)
Check if the given parameter is a memptr.
|
boolean |
isTableField(commonj.sdo.DataObject tableMetadata,
java.lang.String fieldName)
Check if this table has a field defined with that name.
|
void |
postProcessArguments(java.lang.Object paramArray,
java.lang.Object[] args)
Postprocess these arguments - this includes copying state back to the
LegacyJavaAppserverParameter instance, for OUTPUT parameters. |
java.util.List<commonj.sdo.DataObject> |
selectRows(commonj.sdo.DataObject tableMetadata,
java.lang.String[] fields,
java.lang.Object[] values)
Retrieve all rows which have an exact match for the specified fields.
|
void |
setDefaultTrackChanges(boolean trackChanges)
Set the
defaultTrackChanges flag. |
void |
setFieldMetaData(commonj.sdo.DataObject metaData,
int idx,
java.lang.String name,
int extent,
int type,
int order,
int xmlMapping)
Add a new new field with the specified configuration.
|
void |
setGregorianCalendar(commonj.sdo.DataObject row,
int idx,
java.util.GregorianCalendar date)
Set the field's property on the given index from the
GregorianCalendar instance. |
private java.lang.Object |
toJavaValue(java.lang.Object arg,
int type,
boolean field,
int extent)
Convert a
BaseDataType instance to a Java value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blob, character, clob, dataset, datasetHandle, date, datetime, datetimetz, decimal, handle, input, inputOutput, int64, integer, logical, longchar, memptr, output, raw, recid, rowid, tableHandle, unknown
private static final java.util.Map<java.lang.Integer,java.lang.Class<?>> legacyTypes
BaseDataType
type.private static final java.util.Map<java.lang.Class<?>,java.lang.Integer> types2Legacy
BaseDataType
type to its numeric type.private static final java.util.Map<java.lang.Integer,java.lang.String> paramModes
private boolean defaultTrackChanges
private boolean normalizedExtent
public LegacyJavaAppserver()
normalizedExtent
set to
true
).public LegacyJavaAppserver(boolean normalizedExtent)
normalizedExtent
- The extent mode.public void setDefaultTrackChanges(boolean trackChanges)
defaultTrackChanges
flag.trackChanges
- true
if all tables need to beginLogging(java.lang.Object)
.public java.util.List<commonj.sdo.DataObject> getDataObjects(commonj.sdo.DataGraph graph, int idx)
getDataObjects
in interface LegacyJavaAppserverApi
graph
- The graph.idx
- The table index.public java.util.List<commonj.sdo.DataObject> getDataObjects(commonj.sdo.DataGraph graph, java.lang.String table)
getDataObjects
in interface LegacyJavaAppserverApi
graph
- The graph.table
- The table name.public java.util.List<commonj.sdo.DataObject> getDataObjects(commonj.sdo.DataObject tableMeta)
getDataObjects
in interface LegacyJavaAppserverApi
tableMeta
- The table metadata.public java.util.List<commonj.sdo.DataObject> getChildRows(commonj.sdo.DataObject row, java.lang.String relation)
getChildRows
in interface LegacyJavaAppserverApi
row
- The row.relation
- The child relation.public java.util.GregorianCalendar getGregorianCalendar(commonj.sdo.DataObject row, int idx)
GregorianCalendar
.getGregorianCalendar
in interface LegacyJavaAppserverApi
row
- The row.idx
- The property index.public void setGregorianCalendar(commonj.sdo.DataObject row, int idx, java.util.GregorianCalendar date)
GregorianCalendar
instance.setGregorianCalendar
in interface LegacyJavaAppserverApi
row
- The row.idx
- The property index.date
- The property's value.public java.util.GregorianCalendar getGregorianCalendar(commonj.sdo.DataObject row, java.lang.String name)
GregorianCalendar
.getGregorianCalendar
in interface LegacyJavaAppserverApi
row
- The row.name
- The property name.public commonj.sdo.DataGraph createDataGraph()
graph
node.createDataGraph
in interface LegacyJavaAppserverApi
public commonj.sdo.DataGraph createDataGraph(java.lang.Object metadata)
createDataGraph
in interface LegacyJavaAppserverApi
metadata
- The root graph node.public commonj.sdo.DataObject createDataObject(commonj.sdo.DataGraph graph, java.lang.String table)
addDataObject(commonj.sdo.DataGraph, commonj.sdo.DataObject)
to add it.createDataObject
in interface LegacyJavaAppserverApi
graph
- The graph.table
- The table name.public commonj.sdo.DataObject createDataObject(commonj.sdo.DataObject tableMetaData)
addDataObject(DataObject, DataObject)
to add it.createDataObject
in interface LegacyJavaAppserverApi
tableMetaData
- The table metadata.public void addDataObject(commonj.sdo.DataGraph graph, commonj.sdo.DataObject row)
addDataObject
in interface LegacyJavaAppserverApi
graph
- The field'srow
- The row to add to the table.public void addDataObject(commonj.sdo.DataObject tableMetaData, commonj.sdo.DataObject row)
addDataObject
in interface LegacyJavaAppserverApi
tableMetaData
- The table metadata.row
- The row to add to the table.public java.lang.String getTableName(commonj.sdo.DataObject value)
getTableName
in interface LegacyJavaAppserverApi
value
- The table row or table metadata.public java.lang.String getGraphName(commonj.sdo.DataObject tableMetadata)
getGraphName
in interface LegacyJavaAppserverApi
tableMetadata
- The table metadata.null
if the table is not part of a graph.public int getFieldCount(commonj.sdo.DataObject row)
getFieldCount
in interface LegacyJavaAppserverApi
row
- The table row.public java.lang.String getFieldName(commonj.sdo.DataObject row, int i)
getFieldName
in interface LegacyJavaAppserverApi
row
- The table row. Must be attached to a table.i
- The field index.public int getFieldType(commonj.sdo.DataObject row, int i)
getFieldType
in interface LegacyJavaAppserverApi
row
- The table row. Must be attached to a table.i
- The field index.public boolean isTableField(commonj.sdo.DataObject tableMetadata, java.lang.String fieldName)
isTableField
in interface LegacyJavaAppserverApi
tableMetadata
- The table metadata.fieldName
- The field name.true
if there is a field defined with this name.public int getTableFieldType(commonj.sdo.DataObject tableMetadata, java.lang.String fieldName)
getTableFieldType
in interface LegacyJavaAppserverApi
tableMetadata
- The table metadata.fieldName
- The field name.public java.lang.String[] getTableNames(commonj.sdo.DataGraph graph)
getTableNames
in interface LegacyJavaAppserverApi
graph
- The graph.public int getNumTables(commonj.sdo.DataGraph graph)
getNumTables
in interface LegacyJavaAppserverApi
graph
- The graph.public int getNumTables(commonj.sdo.DataObject metaData)
getNumTables
in interface LegacyJavaAppserverApi
metaData
- The graph metadata.public commonj.sdo.DataObject getMetaData(commonj.sdo.DataGraph graph)
metadata
property of the root
object.getMetaData
in interface LegacyJavaAppserverApi
graph
- The graph.public commonj.sdo.DataObject getTableMetaData(commonj.sdo.DataObject metaData, int i)
getTableMetaData
in interface LegacyJavaAppserverApi
metaData
- The graph metadata.i
- The table index.public commonj.sdo.DataObject getTableMetaData(commonj.sdo.DataGraph graph, java.lang.String table)
getTableMetaData
in interface LegacyJavaAppserverApi
graph
- The graph.table
- The table name.null
if the table is not part of this graph.public java.util.List<commonj.sdo.DataObject> getTableMetaData(commonj.sdo.DataGraph graph)
getTableMetaData
in interface LegacyJavaAppserverApi
graph
- The graph.@Deprecated public commonj.sdo.DataObject createObjectMetaData(java.lang.String name, int numFields, boolean b4img, int numIndexes, java.lang.String indexes, java.lang.String xmlns, java.lang.String xmlPrefix)
tablemetadata
type and is not
attached to the graph.createObjectMetaData
in interface LegacyJavaAppserverApi
name
- The table's name.numFields
- The number of fields.b4img
- Flag indicating if the table has a BEFORE-IMAGE.numIndexes
- The number of indexes.indexes
- The index specification (TODO: not validated/implemented at this time).xmlns
- The XML namespace (TODO: not validated/implemented at this time).xmlPrefix
- The XML prefix (TODO: not validated/implemented at this time).public commonj.sdo.DataObject createObjectMetaData(java.lang.String name, int numFields, boolean b4img, int numIndexes, java.lang.String indexes, java.lang.String xmlns, java.lang.String xmlPrefix, java.lang.String xmlNodeName, java.lang.String errorString)
tablemetadata
type and is not
attached to the graph.createObjectMetaData
in interface LegacyJavaAppserverApi
name
- The table's name.numFields
- The number of fields.b4img
- Flag indicating if the table has a BEFORE-IMAGE.numIndexes
- The number of indexes.indexes
- The index specification (TODO: not validated/implemented at this time).xmlns
- The XML namespace (TODO: not validated/implemented at this time).xmlPrefix
- The XML prefix (TODO: not validated/implemented at this time).xmlNodeName
- The XML node name (TODO: not validated/implemented at this time).errorString
- The table's ERROR-STRING attribute (TODO: not validated/implemented at this time).public void setFieldMetaData(commonj.sdo.DataObject metaData, int idx, java.lang.String name, int extent, int type, int order, int xmlMapping)
setFieldMetaData
in interface LegacyJavaAppserverApi
metaData
- The table metadata, of type tablemetadata
. The field will be added
to the fields
property.idx
- The field's index in the metadata.name
- The field's name.extent
- The field's extent.type
- The legacy type (numeric value based on LegacyJavaAppserver
constants.order
- The field's order.xmlMapping
- The field's mapping.public commonj.sdo.DataObject createGraphMetaData(java.lang.String name)
createGraphMetaData
in interface LegacyJavaAppserverApi
name
- The graph name.createDataGraph(Object)
.public void addTableMetaData(commonj.sdo.DataObject metaData, commonj.sdo.DataObject table)
addTableMetaData
in interface LegacyJavaAppserverApi
metaData
- The graph metadata.table
- The table metadata.public java.lang.String getDataGraphName(commonj.sdo.DataObject metadata)
graphmetadata
.getDataGraphName
in interface LegacyJavaAppserverApi
metadata
- The metadata.public LegacyJavaAppserverParameter getJavaParameter(int mode, int type, java.lang.Object value, java.lang.Object metadata)
LegacyJavaAppserverParameter
with the given details.getJavaParameter
in interface LegacyJavaAppserverApi
mode
- The parameter mode.type
- The parameter type.value
- The parameter value.metadata
- The parameter metadata (in case of DataSet).public java.lang.Object getOutputParameter(LegacyJavaAppserverParameter param)
getOutputParameter
in interface LegacyJavaAppserverApi
param
- The parameter as received from the remote side.public java.lang.Object getOutputParameter(LegacyJavaAppserverParameter[] paramArray, int i)
getOutputParameter
in interface LegacyJavaAppserverApi
paramArray
- The parameter array.i
- The parameter's index.public java.lang.String getArgumentModes(LegacyJavaAppserverParameter[] paramArray)
getArgumentModes
in interface LegacyJavaAppserverApi
paramArray
- The parameter array.public java.lang.Object[] getArguments(LegacyJavaAppserverParameter[] paramArray)
getArguments
in interface LegacyJavaAppserverApi
paramArray
- The parameter array.public java.lang.Object createMemptr(byte[] value)
createMemptr
in interface LegacyJavaAppserverApi
value
- The bytes.MemoryBuffer
.public boolean isMemptr(java.lang.Object outputParameter)
isMemptr
in interface LegacyJavaAppserverApi
outputParameter
- The parameter.true
if the value is a MemoryBuffer
.public byte[] getBytes(java.lang.Object outputParameter)
MemoryBuffer
.getBytes
in interface LegacyJavaAppserverApi
outputParameter
- The output parameter.public AppServerHelper getConnection(BootstrapConfig config, java.lang.String account, java.lang.String appServerName, boolean sessionFree, java.lang.String user, java.lang.String pwd, java.lang.String serverInfo) throws NumberedException
getConnection
in interface LegacyJavaAppserverApi
config
- The configuration for the FWD server connection.account
- The FWD account to authenticate on the remote side.appServerName
- The name of the appserver to which the connection will be established.sessionFree
- true
to indicate a session-free operating mode, false
to indicate a session-managed operating mode.user
- The username passed to the appserver's connect procedure.pwd
- The password passed to the appserver's connect procedure.serverInfo
- The info passed to the appserver's connect procedure.NumberedException
- If there are connection problems.public void postProcessArguments(java.lang.Object paramArray, java.lang.Object[] args)
LegacyJavaAppserverParameter
instance, for OUTPUT parameters.postProcessArguments
in interface LegacyJavaAppserverApi
paramArray
- The parameter array.args
- The returned arguments.public commonj.sdo.DataGraph getChanges(java.lang.Object changeSummary)
getChanges
in interface LegacyJavaAppserverApi
changeSummary
- The change summary.public void endLogging(java.lang.Object changeSummary)
endLogging
in interface LegacyJavaAppserverApi
changeSummary
- The change summary.public void beginLogging(java.lang.Object changeSummary)
beginLogging
in interface LegacyJavaAppserverApi
changeSummary
- The change summary.public java.lang.Object getChangeSummary(commonj.sdo.DataGraph graph)
getChangeSummary
in interface LegacyJavaAppserverApi
graph
- The graph.public boolean isDeleted(java.lang.Object changeSummary, commonj.sdo.DataObject object)
isDeleted
in interface LegacyJavaAppserverApi
changeSummary
- The change summary.object
- The object.public boolean isCreated(java.lang.Object changeSummary, commonj.sdo.DataObject object)
isCreated
in interface LegacyJavaAppserverApi
changeSummary
- The change summary.object
- The object.public java.util.List<commonj.sdo.DataObject> getChangedDataObjects(java.lang.Object changeSummary)
getChangedDataObjects
in interface LegacyJavaAppserverApi
changeSummary
- The change summary.public java.util.List<commonj.sdo.DataObject> selectRows(commonj.sdo.DataObject tableMetadata, java.lang.String[] fields, java.lang.Object[] values)
selectRows
in interface LegacyJavaAppserverApi
tableMetadata
- The table metadata.fields
- The field list.values
- The values to be matched.public void addRelation(commonj.sdo.DataObject metaData, java.lang.String name, java.lang.String parentBuffer, java.lang.String childBuffer, java.lang.String whereString, boolean active, boolean parentId, java.lang.String pairs, boolean fkeyHidden, boolean recursive, boolean nested, boolean reposition)
addRelation
in interface LegacyJavaAppserverApi
metaData
- The graph metadata.name
- The relation name.parentBuffer
- The parent buffer.childBuffer
- The child buffer.whereString
- The where string.active
- Flag indicating if this relation is active.parentId
- Flag indicating if parent-id is used.pairs
- The field pairs, in parent, child
format.fkeyHidden
- Flag indicating if fkey-hidden is used.recursive
- Flag indicating if recursive is used.nested
- Flag indicating if nested is used.reposition
- Flag indicating if reposition is used.private void createOutputTable(commonj.sdo.DataGraph graph, TableWrapper wrapper, boolean reuseMetadata, boolean beforeTable)
If defaultTrackChanges
is set, then logging is enabled for all rows.
graph
- The graph where to add the table.wrapper
- The table data.reuseMetadata
- Flag indicating if the table already exists in the graph.beforeTable
- Flag indicating if this is a before table.private void createOutputTable(commonj.sdo.DataGraph graph, DsTableDefinition dst, boolean reuseMetadata, boolean beforeTable)
If defaultTrackChanges
is set, then logging is enabled for all rows.
graph
- The graph where to add the table.dst
- The table data.reuseMetadata
- Flag indicating if the table already exists in the graph.beforeTable
- Flag indicating if this is a before table.private java.lang.Object fromJavaType(java.lang.Object value, int type, int extent)
BaseDataType
compatible instance.value
- The Java value.type
- The value's type.extent
- The extent value.private java.lang.Object toJavaValue(java.lang.Object arg, int type, boolean field, int extent)
BaseDataType
instance to a Java value.arg
- The value.type
- The value's type.field
- Flag indicating that this call is for a field value.extent
- The extent value.private DsTableDefinition createDsTable(java.util.List<commonj.sdo.DataObject> rows, java.util.List<commonj.sdo.DataObject> fields, boolean input, boolean output)
rows
- The table rows.fields
- The table fields.input
- Flag indicating if this parameter is in input or input-output mode.output
- Flag indicating if this parameter is in output or input-output mode.DsTableDefinition
instance with the specified metadata and records.