borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

DataSetData class

java.lang.Object
   +----borland.jbcl.dataset.DataSetData

About the DataSetData class

Properties  Methods  

Implements LoadCancel, Serializable

Use the DataSetData class when developing 3-tier database applications. It provides the capability of extracting data from a DataSet. This class is serializable, and may be used to stream the data to an output stream, or to simply be passed as an argument to a Remote Method Invocation (RMI) method. The DataSetData class also contains methods to load the data back into another DataSet.

For a custom provider and resolver example that uses the static methods of this class, see the sample project Providers.jpr located in the samples\borland\samples\tutorial\dataset\providers directory of your JBuilder installation.


DataSetData properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

DataSetData methods

Methods implemented in this class

Methods implemented in java.lang.Object


DataSetData methods

extractDataSet(borland.jbcl.dataset.DataSet)

  public static DataSetData extractDataSet(borland.jbcl.dataset.DataSet dataSet)
Populates the DataSetData with data and non-transient data members that specify metadata information and status bits for each row. The metadata information includes the column count, row count, column names, data types, rowId, and whether each Column is hidden. The status bits are used internally.

The data is organized in arrays of Column data. For example, if a data column is of type Variant.INTEGER, an int array is used for the values of that Column.

Any columns that don't already exist in the DataSet are added.

Note: Physical types and properties such as sqlType, precision and scale are not contained in the DataSetData. These properties are not needed for editing purposes and should be extracted from the DBMS directly if needed.

extractDataSetChanges(borland.jbcl.dataset.DataSet)

  public static DataSetData extractDataSetChanges(borland.jbcl.dataset.DataSet dataSet)
Extracts the changes to the DataSet that can then be sent to the server.

loadDataSet(borland.jbcl.dataset.DataSet)

  public void loadDataSet(borland.jbcl.dataset.DataSet dataSet)