borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

DataFile class (abstract)

java.lang.Object
   +----borland.jbcl.dataset.DataFile
           +----borland.jbcl.dataset.TextDataFile

About the DataFile class

Properties  Methods  

Implements 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 JBCL 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.


DataFile properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

DataFile methods

Methods implemented in this class

Methods implemented in java.lang.Object


DataFile properties

loadOnOpen

 public abstract boolean isLoadOnOpen()
If true, the StorageDataSet will automatically load from the DataFile when the StorageDataSet is opened.

DataFile methods

load(borland.jbcl.dataset.DataSet)

  public abstract void load(borland.jbcl.dataset.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.

loadMetaData(borland.jbcl.dataset.DataSet)

  public abstract void loadMetaData(borland.jbcl.dataset.DataSet dataSet)
Implementor should load information and determine the columns of the DataFile.

save(borland.jbcl.dataset.DataSet)

  public abstract void save(borland.jbcl.dataset.DataSet dataSet)
Saves the data in the DataSet.