borland Packages  Class Hierarchy  dx.sql.dataset Package 

SQLResolver class (abstract)

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

About the SQLResolver class

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.


SQLResolver properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

SQLResolver methods

Methods implemented in this class

Methods implemented in com.borland.dx.dataset.Resolver

Methods implemented in java.lang.Object

SQLResolver event listeners


SQLResolver properties

database

 public abstract Database getDatabase()
 public abstract void setDatabase(Database database)
Specifies the Database that is the target of the data changes.

SQLResolver methods

closeStatements(com.borland.dx.dataset.StorageDataSet)

  public abstract void closeStatements(StorageDataSet dataSet)
Closes any open statements cached by a Resolver.

deleteRow(com.borland.dx.dataset.DataSet)

  public abstract void deleteRow(DataSet dataSet)
Instructs the Resolver to delete the current row in the DataSet from the Database.

fetchResolverListener()

  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.

insertRow(com.borland.dx.dataset.DataSet)

  public abstract void insertRow(DataSet dataSet)
Instructs the Resolver to insert the current row of the DataSet into the Database.

resolveData(com.borland.dx.dataset.DataSet)

  public void resolveData(DataSet dataSet)
Calls the saveChanges() method on the current Database.

Overrides: com.borland.dx.dataset.Resolver.resolveData(com.borland.dx.dataset.DataSet)

updateRow(com.borland.dx.dataset.DataSet, com.borland.dx.dataset.ReadWriteRow)

  public abstract void updateRow(DataSet dataSet, ReadWriteRow oldRow)
Instructs the Resolver to update the current row of the DataSet in the Database.

SQLResolver event listeners

This class is a source for the following event sets.

resolver

 public synchronized void addResolverListener(ResolverListener listener)
 public synchronized void removeResolverListener(ResolverListener listener)