borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

TableDataSet component

java.lang.Object
   +----borland.jbcl.dataset.ReadRow
           +----borland.jbcl.dataset.ReadWriteRow
                   +----borland.jbcl.dataset.DataSet
                           +----borland.jbcl.dataset.StorageDataSet
                                   +----borland.jbcl.dataset.TableDataSet

About the TableDataSet component

Constructors  Properties  Methods  Event Listeners

Implements AccessListener, ColumnDesigner, MasterNavigateListener, StatusListener, Serializable, EventListener

The TableDataSet is a simple DataSet that may or may not have a formal provider but has no formal resolver of its data. Its properties allow it to import file-based data. Use this component to create a StorageDataSet from sources other than SQL databases, for example, by importing data stored in a text file, from data computations, or to simply work with database data off-line.

You attach this component to any UI control in the same way that other subclasses of StorageDataSet connect to a UI control. Similarly, setting its sort property affects the sort order of the data in this component, and its rowFilterListener filters as it would any other StorageDataSet. It thereby mimics single-user SQL server functionality although no database connection is involved.

With file-based data sources, the providing phase occurs in a single fetch. Similarly, if a TableDataSet is the detail of a master-detail relationship, setting its fetchAsNeeded property has no effect as all detail records are read from a single fetch operation when file-based data sources are involved.

The resolving phase is the most simple of all resolvers: the data saved to the file overwrites the existing data. To save the data in any StorageDataSet to a text file, set the TextDataFile component's fileName property to the export file prior to calling the StorageDataSet component's save() method.


TableDataSet constructors

TableDataSet properties

*Read-only properties **Write-only properties

Properties implemented in borland.jbcl.dataset.DataSet

Properties implemented in borland.jbcl.dataset.ReadRow

Properties implemented in borland.jbcl.dataset.ReadWriteRow

Properties implemented in borland.jbcl.dataset.StorageDataSet

Properties implemented in java.lang.Object

TableDataSet methods

Methods implemented in borland.jbcl.dataset.DataSet

Methods implemented in borland.jbcl.dataset.ReadWriteRow

Methods implemented in borland.jbcl.dataset.StorageDataSet

Methods implemented in java.lang.Object

TableDataSet event listeners


TableDataSet constructors

TableDataSet()

  public TableDataSet()
Instantiates a TableDataSet class object with default properties.

TableDataSet event listeners

This component is a source for the following event sets. For information on the JBCL event sets, see Events in JBCL.

access

 public final void addAccessListener(borland.jbcl.dataset.AccessListener listener)
 public final void removeAccessListener(borland.jbcl.dataset.AccessListener listener)

calcAggFields

 public synchronized void addCalcAggFieldsListener(borland.jbcl.dataset.CalcAggFieldsListener listener)
 public synchronized void removeCalcAggFieldsListener(borland.jbcl.dataset.CalcAggFieldsListener listener)

calcFields

 public synchronized void addCalcFieldsListener(borland.jbcl.dataset.CalcFieldsListener listener)
 public synchronized void removeCalcFieldsListener(borland.jbcl.dataset.CalcFieldsListener listener)

dataChange

 public final void addDataChangeListener(borland.jbcl.dataset.DataChangeListener listener)
 public final void removeDataChangeListener(borland.jbcl.dataset.DataChangeListener listener)

edit

 public void addEditListener(borland.jbcl.dataset.EditListener listener)
 public synchronized void removeEditListener(borland.jbcl.dataset.EditListener listener)

load

 public final synchronized void addLoadListener(borland.jbcl.dataset.LoadListener listener)
 public final synchronized void removeLoadListener(borland.jbcl.dataset.LoadListener listener)

masterNavigate

 public final void addMasterNavigateListener(borland.jbcl.dataset.MasterNavigateListener listener)
 public final void removeMasterNavigateListener(borland.jbcl.dataset.MasterNavigateListener listener)

navigation

 public final void addNavigationListener(borland.jbcl.dataset.NavigationListener listener)
 public final void removeNavigationListener(borland.jbcl.dataset.NavigationListener listener)

open

 public final void addOpenListener(borland.jbcl.dataset.OpenListener listener)
 public final void removeOpenListener(borland.jbcl.dataset.OpenListener listener)

rowFilter

 public final void addRowFilterListener(borland.jbcl.dataset.RowFilterListener listener)
 public final void removeRowFilterListener(borland.jbcl.dataset.RowFilterListener listener)

status

 public final void addStatusListener(borland.jbcl.dataset.StatusListener listener)
 public final void removeStatusListener(borland.jbcl.dataset.StatusListener listener)