borland Packages Class Hierarchy dx.dataset Package
java.lang.Object +----com.borland.dx.dataset.Resolver +----com.borland.dx.sql.dataset.SQLResolver
Properties Methods
Implements Designable, Serializable
The Resolver
class is a base class for Resolver
objects such as SQLResolver
. A
Resolver
should be able to update a snapshot of a data source with changes from another snapshot of a
database. The changes might be performed on a row by row basis, as SQLResolver
does, or in a batch mode.
For an example of a custom resolver that extends this class, see the ResolverBean
class in the
sample project Providers.jpr, the ntier sample application, or the datasetdata sample application (which contains an RMIResolver
). These samples are located in the
samples folder of your JBuilder installation. (These samples only run with JBuilder Enterprise.)
The HTML files in these projects, "Customizing the default resolver logic" in the Database Application Developer's Guide, and "Creating a distributed database application" contain valuable information on creating a custom resolver.
public void checkIfBusy(StorageDataSet dataSet)Some implementations of
resolveData(..)
may optionally provide the data asynchronously. A StorageDataSet
has to block action such as editing and providing until the asynchronous provide is done. This method allows an implementation to give an appropriate error message by raising a DataSetException
. The default action is to do nothing, i.e. no asynchronous providing.
public void close(StorageDataSet dataSet)Some implementations of
Resolver
cache information during the resolve. This method allows
an implementation to release these resources and references for better garbage collection.
public abstract void resolveData(DataSet dataSet)Resolves the modified data in a
DataSet
back to the data source. The destination of the data, and the method of saving the data is up to the implementation of this abstract method.