public class DataSetContainer extends MassiveContainer
As transport, any instance of this class will be wrapped in a DatasetWrapper
instance
internally by P2J.
Modifier and Type | Field and Description |
---|---|
private handle |
oDSHandle
The handle which will store the DATASET after the called method returns.
|
private java.util.List<DsRelationDefinition> |
relationDefinitions
The definitions for all relations between the tables in the dataset.
|
private java.util.List<DsTableDefinition> |
tableDefinitions
The definitions for all tables in the dataset.
|
append, input, output, structureName
Constructor and Description |
---|
DataSetContainer()
Default c'tor, explicitly added to allow instances of this class to be created on
deserialization.
|
DataSetContainer(boolean input,
boolean output,
boolean append)
Create a new instance of this
DataSet container. |
DataSetContainer(DataSet ds,
boolean input,
boolean output,
boolean append)
Create a new instance of this
DataSet container. |
DataSetContainer(DataSet ds,
boolean input,
boolean output,
boolean append,
boolean copyRows)
Create a new instance of this
DataSet container. |
DataSetContainer(handle dsHandle,
boolean input,
boolean output,
boolean append)
Constructor used for passing a DATASET-HANDLE parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
clearRows()
Delete row data.
|
int |
getRelationCount()
Obtain the number of inter-table relations in the
DataSet . |
java.util.List<DsRelationDefinition> |
getRelationDefinitions()
Gets the list of relations definitions of this
DataSet definition. |
int |
getTableCount()
Obtain the number of tables in the
DataSet . |
java.util.List<DsTableDefinition> |
getTableDefinitions()
Gets the list of table definitions of this
DataSet definition. |
private void |
init(DataSet ds,
boolean copyRows)
Initialize the internal structure of this object using the
DataSet provided. |
void |
setRelationDefinitions(java.util.List<DsRelationDefinition> relationDefinitions)
Sets a new list of relations definitions of this
DataSet definition. |
void |
setTableDefinitions(java.util.List<DsTableDefinition> tableDefinitions)
Sets a new list of table definitions of this
DataSet definition. |
java.lang.String |
toString()
Get a string representation of this dataset.
|
getStructureName, isAppend, isInput, isOutput, setStructureName
private handle oDSHandle
private java.util.List<DsTableDefinition> tableDefinitions
private java.util.List<DsRelationDefinition> relationDefinitions
public DataSetContainer()
public DataSetContainer(boolean input, boolean output, boolean append)
DataSet
container.input
- Flag indicating this table is sent in INPUT or INPUT-OUTPUT mode.output
- Flag indicating this table is sent in OUTPUT or INPUT-OUTPUT mode.append
- Flag indicating this table is sent in APPEND mode.public DataSetContainer(DataSet ds, boolean input, boolean output, boolean append)
DataSet
container.ds
- The DataSet
to be serialized.input
- Flag indicating this table is sent in INPUT or INPUT-OUTPUT mode.output
- Flag indicating this table is sent in OUTPUT or INPUT-OUTPUT mode.append
- Flag indicating this table is sent in APPEND mode.public DataSetContainer(DataSet ds, boolean input, boolean output, boolean append, boolean copyRows)
DataSet
container.ds
- The DataSet
to be serialized.input
- Flag indicating this table is sent in INPUT or INPUT-OUTPUT mode.output
- Flag indicating this table is sent in OUTPUT or INPUT-OUTPUT mode.append
- Flag indicating this table is sent in APPEND mode.copyRows
- true
> to transfer rows in INPUT direction. false
> to transfer only
table definitions.public DataSetContainer(handle dsHandle, boolean input, boolean output, boolean append)
dsHandle
- The handle which will store the DATASET after the called method returns.input
- Flag indicating this table is sent in INPUT or INPUT-OUTPUT mode.output
- Flag indicating this table is sent in OUTPUT or INPUT-OUTPUT mode.append
- Flag indicating this table is sent in APPEND mode.public int getTableCount()
DataSet
.DataSet
.public java.util.List<DsTableDefinition> getTableDefinitions()
DataSet
definition.DataSet
definition.public int getRelationCount()
DataSet
. The count of all
relations is returned, whether thery are ACTIVE
or not.DataSet
.public java.util.List<DsRelationDefinition> getRelationDefinitions()
DataSet
definition. All relations are
returned, regardless they are active or not.DataSet
definition.public void setTableDefinitions(java.util.List<DsTableDefinition> tableDefinitions)
DataSet
definition.tableDefinitions
- the (new) list of table definitions of this DataSet
definition.public void setRelationDefinitions(java.util.List<DsRelationDefinition> relationDefinitions)
DataSet
definition.relationDefinitions
- the (new) list of relations definitions of this DataSet
definition.private void init(DataSet ds, boolean copyRows)
DataSet
provided.ds
- The DataSet
used for initialization of internal data.copyRows
- true
> to transfer rows in INPUT direction. false
> to transfer only
table definitions.public void clearRows()
public java.lang.String toString()
toString
in class java.lang.Object