borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.dataset 

SQLResolver interface

borland.jbcl.dataset.Resolver
   +----borland.jbcl.dataset.SQLResolver

About the SQLResolver interface

Methods  

Implemented by QueryResolver

This interface 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 implements this interface. The saveChanges() method of a QueryDataSet and ProcedureDataSet instantiate a SQLResolutionManager. The Resolver of a QueryDataSet should therefore be an instance of a SQLResolver such as the QueryResolver.


SQLResolver methods

Methods defined in this interface


SQLResolver methods

deleteRow(borland.jbcl.dataset.DataSet)

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

init(borland.jbcl.dataset.Database)

  public void init(borland.jbcl.dataset.Database database)
Initializes a Resolver with the specified database.

insertRow(borland.jbcl.dataset.DataSet)

  public void insertRow(borland.jbcl.dataset.DataSet dataSet)
Instructs the Resolver to insert the current row of the DataSet into the database.

updateRow(borland.jbcl.dataset.DataSet, borland.jbcl.dataset.ReadWriteRow)

  public void updateRow(borland.jbcl.dataset.DataSet dataSet, borland.jbcl.dataset.ReadWriteRow oldRow)
Instructs the Resolver to update the current row of the DataSet in the database.