borland Packages Class Hierarchy dx.sql.dataset Package
java.lang.Object +----com.borland.dx.dataset.Resolver +----com.borland.dx.sql.dataset.SQLResolver +----com.borland.dx.sql.dataset.ProcedureResolver +----com.borland.dx.sql.dataset.QueryResolver
Properties Methods Event Listeners
Implements Designable, Serializable
This class allows for alternate implementations of the actual behavior required to save changes made to a QueryDataSet
for example, to its database data source.
The SQLResolutionManager
requires a Resolver
that extends this class. The saveChanges()
method of a QueryDataSet
and ProcedureDataSet
instantiate a SQLResolutionManager
. The Resolver
of a QueryDataSet
should therefore be an instance of a class that extends SQLResolver
, such as the QueryResolver
.
public abstract Database getDatabase() public abstract void setDatabase(Database database)Specifies the
Database
that is the target of the data changes.
public abstract void closeStatements(StorageDataSet dataSet)Closes any open statements cached by a
Resolver
.
public abstract void deleteRow(DataSet dataSet)Instructs the
Resolver
to delete the current row in the DataSet
from the Database
.
public ResolverListener fetchResolverListener()A
Resolver
can optionally have a resolverListener
property. This method allows the ResolutionManager
to get the listener. It then issues events before and after each change to the Database
.
public abstract void insertRow(DataSet dataSet)Instructs the
Resolver
to insert the current row of the DataSet
into the Database
.
public void resolveData(DataSet dataSet)Calls the
saveChanges()
method on the current Database
.
public abstract void updateRow(DataSet dataSet, ReadWriteRow oldRow)Instructs the
Resolver
to update the current row of the DataSet
in the Database
.
public synchronized void addResolverListener(ResolverListener listener) public synchronized void removeResolverListener(ResolverListener listener)