borland Packages  Class Hierarchy  dx.sql.dataset Package 

SQLResolutionManager component

java.lang.Object
   +----com.borland.dx.sql.dataset.ResolutionManager
           +----com.borland.dx.sql.dataset.SQLResolutionManager

About the SQLResolutionManager component

Constructors  Properties  Methods  

Implements DefaultResolver, TransactionSupport

The SQLResolutionManager component performs most of the work for the resolution process. The algorithms for transaction management and the change resolution reside in this object. An instance of this class is instantiated with an implementation of the DefaultResolver and TransactionSupport interfaces.

If a null TransactionSupport object is passed in, the SQLResolutionManager takes no action for transaction processing (as is applicable to non-transaction-processing data sources). This object manages the resolution process as follows:

The resolution process is broken into two different algorithms. For stand-alone DataSet components, all rows in the following categories are processed in this order to preserve the integrity of the data:

For one-to-many DataSet relationships, all rows in the following categories are processed in this order:

Since changes are not in sequential order, changing link fields in a one-to-many relationship can cause data loss. Therefore, this action is disallowed by default.


SQLResolutionManager constructors

SQLResolutionManager properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.borland.dx.sql.dataset.ResolutionManager

Properties implemented in java.lang.Object

SQLResolutionManager methods

Methods implemented in this class

Methods implemented in com.borland.dx.sql.dataset.ResolutionManager

Methods implemented in java.lang.Object


SQLResolutionManager constructors

SQLResolutionManager()

  public SQLResolutionManager()
Constructs a SQLResolutionManager object.

SQLResolutionManager properties

database

 public Database getDatabase()
 public void setDatabase(Database database)
Specifies the Database object that this component is associated with.

doTransactions

 public boolean isDoTransactions()
 public void setDoTransactions(boolean doTransactions)
Specifies whether transactions are supported or not.

transactionSupport

 public void setTransactionSupport(TransactionSupport transactionSupport)
Write-only property that overwrites the superclass setter to make this class the default TransactionSupport object.

SQLResolutionManager methods

initError(int, com.borland.dx.dataset.DataSet, com.borland.dx.dataset.DataSet, resolveError)

  protected final void initError(int code, DataSet dataSet, DataSet view, ResolveError resolveError)
Adds extra error context information to resolveError object.

Parameters:

code
One of UPDATE_FAILED, INSERT_FAILED, or DELETE_FAILED, as specified in the ResolutionException variables.
dataSet
The base DataSet passed into the ResolutionManager.
view
Positioned at the row that caused the error.
ResolveError
Can be used to record additional error information. See ResolveError for more information.

Overrides: com.borland.dx.sql.dataset.ResolutionManager.initError(int, com.borland.dx.dataset.DataSet, com.borland.dx.dataset.DataSet, resolveError)