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 boolean |
hasError
The
ERROR attribute of the dataset. |
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.
|
private boolean |
valid
Flag indicating if this container holds a valid dataset.
|
private java.lang.String |
xmlNodeName
The XML-NODE-NAME attribute for this dataset.
|
private java.lang.String |
xmlns
The XML namespace for this dataset.
|
private java.lang.String |
xmlPrefix
The XML prefix for this 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. |
java.lang.String |
getXmlNodeName()
Get the XML node name of the DATASET.
|
boolean |
hasError()
Get the ERROR attribute of the DATASET.
|
private void |
init(DataSet ds,
boolean copyRows)
Initialize the internal structure of this object using the
DataSet provided. |
boolean |
isValid()
Get the
valid flag. |
java.lang.String |
namespacePrefix()
Get the XML prefix of the DATASET.
|
void |
namespacePrefix(java.lang.String xmlPrefix)
Set the XML prefix of the DATASET.
|
java.lang.String |
namespaceURI()
Get the XML namespace of the DATASET.
|
void |
namespaceUri(java.lang.String xmlns)
Set the XML namespace of the DATASET.
|
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. |
void |
setValid(boolean valid)
Set the
valid flag. |
void |
setXmlNodeName(java.lang.String xmlNodeName)
Set the XML node name of the DATASET.
|
java.lang.String |
toString()
Get a string representation of this dataset.
|
getStructureName, isAppend, isInput, isOutput, setStructureNameprivate handle oDSHandle
private java.util.List<DsTableDefinition> tableDefinitions
private java.util.List<DsRelationDefinition> relationDefinitions
private java.lang.String xmlns
private java.lang.String xmlPrefix
private java.lang.String xmlNodeName
private boolean hasError
ERROR attribute of the dataset.private boolean valid
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 void setValid(boolean valid)
valid flag.valid - true if this container is for a valid dataset.public boolean isValid()
valid flag.true if this container is for a valid dataset.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 java.lang.String namespaceURI()
public void namespaceUri(java.lang.String xmlns)
xmlns - The XML namespace.public java.lang.String namespacePrefix()
public void namespacePrefix(java.lang.String xmlPrefix)
xmlPrefix - The XML prefix.public java.lang.String getXmlNodeName()
public void setXmlNodeName(java.lang.String xmlNodeName)
xmlNodeName - The XML node name.public boolean hasError()
public void clearRows()
public java.lang.String toString()
toString in class java.lang.Object