borland Packages Class Hierarchy dx.dataset Package
java.lang.Object +----com.borland.dx.dataset.DataFile +----com.borland.dx.dataset.TextDataFile
Properties Methods
Implements Designable, Serializable
This class collects the basic behavior of all file-based data sources: loading data from and writing data to a file. These operations are often referred to as importing
and exporting
.
Extend this base class when creating new classes to define a custom file format that you want to import data from, or export data to.
The TextDataFile
component extends this class. It provides the ability to read data from a text file into the TableDataSet
component, and to save data stored in any StorageDataSet
class object to a text file. Its properties specify how the data is organized in the text file.
public abstract boolean isLoadOnOpen()If true, the
StorageDataSet
will automatically load from the DataFile
when the StorageDataSet
is opened.
public abstract void load(DataSet dataSet)Loads data into the
DataSet
. Implementations of this method do not need to synchronize on
the dataSet
parameter if the asynchronous StorageDataSet
methods of
startLoading()
, loadRow()
, and endLoading()
are called.
public abstract void loadMetaData(DataSet dataSet)Implementor should load information and determine the columns of the
DataFile
.
public abstract void save(DataSet dataSet)Saves the data in the
DataSet
.