borland Packages  Class Hierarchy  dx.dataset Package 

ResolverListener interface

java.util.EventListener
   +----com.borland.dx.dataset.ResolverListener

About the ResolverListener interface

Methods  

Implemented by ResolverAdapter

This interface is used as a notification before and after a StorageDataSet is resolved. This interface includes

This listener is added to instances of the QueryResolver class. The QueryResolver is hooked to the StorageDataSet by setting the resolver property of the StorageDataSet.


ResolverListener methods

Methods defined in this interface


ResolverListener methods

deletedRow(com.borland.dx.dataset.ReadWriteRow)

  public void deletedRow(ReadWriteRow row)

This method is called when the deletion of a row from the data set has been resolved on the server.

Parameters:

row
The row that has been deleted.

deleteError(com.borland.dx.dataset.DataSet, com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.DataSetException, com.borland.jb.util.ErrorResponse)

  public void deleteError(DataSet dataSet, ReadWriteRow row, DataSetException ex, ErrorResponse response)

This method is called when an exception is thrown during resolution of a deletion from the DataSet.

Parameters:

dataSet
The original DataSet passed in to be resolved. This can be used to position any controls bound to it if user interaction is needed.
row
The row with the problem, positioned at the row that caused the error. This can be modified to correct the problem and retry the operation.
ex
The exception that caused the error. Note that this may be a chained exception.
response
Specify a response of ABORT, IGNORE, or RETRY for this error. These constants are defined in util.ErrorResponse. Note that an ABORT response causes all insert, update, and delete operations in the same transaction to be rolled back.

See also: com.borland.dx.dataset.DataSetException

deletingRow(com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.ResolverResponse)

  public void deletingRow(ReadWriteRow row, ResolverResponse response)

This method is called just before the deletion of a row from the data set is resolved on the server.

Parameters:

row
The row that is to be deleted.
response
Specify a response of ABORT, IGNORE, or RETRY for this error. These constants are defined in util.ErrorResponse. Note that an ABORT response causes all insert, update, and delete operations in the same transaction to be rolled back.

insertedRow(com.borland.dx.dataset.ReadWriteRow)

  public void insertedRow(ReadWriteRow row)

This method is called when the insertion of a row into the data set has been resolved on the server.

Parameters:

row
The row that has been inserted and resolved.

insertError(com.borland.dx.dataset.DataSet, com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.DataSetException, com.borland.jb.util.ErrorResponse)

  public void insertError(DataSet dataSet, ReadWriteRow row, DataSetException ex, ErrorResponse response)

This method is called when an exception is thrown during resolution of an insertion into the DataSet.

Parameters:

dataSet
The original DataSet passed in to be resolved, positioned at the row that caused the error. This can be used to position any controls bound to it if user interaction is needed.
row
The row with the problem. This can be modified to correct the problem and retry the operation.
ex
The exception that caused the error. Note that this may be a chained exception.
response
Specify a response of ABORT, IGNORE, or RETRY for this error. These constants are defined in util.ErrorResponse. Note that an ABORT response causes all insert, update, and delete operations in the same transaction to be rolled back.

See also: com.borland.dx.dataset.DataSetException

insertingRow(com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.ResolverResponse)

  public void insertingRow(ReadWriteRow row, ResolverResponse response)

This method is called when just before the insertion of a row into the data set is resolved to the server.

Parameters:

row
The row that is about to be resolved.
response
Specify a response of ABORT, IGNORE, or RETRY for this error. These constants are defined in util.ErrorResponse.

updatedRow(com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.ReadRow)

  public void updatedRow(ReadWriteRow row, ReadRow oldRow)

This method is called when modifications to a row in the data set have been resolved on the server.

Parameters:

row
The row that has been modified.
oldRow
The original row.

updateError(com.borland.dx.dataset.DataSet, com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.ReadRow, com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.DataSetException, com.borland.jb.util.ErrorResponse)

  public void updateError(DataSet dataSet, ReadWriteRow row, ReadRow oldRow, ReadWriteRow updRow, DataSetException ex, ErrorResponse response)

This method is called when an exception is thrown during resolution of modifications to a row in the DataSet.

Parameters:

dataSet
The original DataSet passed in to be resolved, positioned at the row that caused the error. This can be used to position any controls bound to it if user interaction is needed.
row
The row with the problem. This can be modified to correct the problem and retry the operation.
oldRow
The original row.
updRow
The row to use for the next update query if a retry response is chosen. This defaults to the original row (as fetched from the data source before any changes were made). Pass this to the DataSet.refetchRow() method, which refetches updates made to this row by other users since the time the DataSet was originally provided. This is useful in dealing with the situation where another user has modified the same row. It allows your application to do a three-way merge of oldRow, updRow, and row.
ex
The exception that caused the error. Note that this may be a chained exception.
response
Specify a response of ABORT, IGNORE, or RETRY for this error. These values are defined in util.ErrorResponse. Note that an ABORT response causes all insert, update, and delete operations in the same transaction to be rolled back.

See also: com.borland.dx.dataset.DataSetException

updatingRow(com.borland.dx.dataset.ReadWriteRow, com.borland.dx.dataset.ReadRow, com.borland.dx.dataset.ResolverResponse)

  public void updatingRow(ReadWriteRow row, ReadRow oldRow, ResolverResponse response)

This method is called just before modifications to a row in the data set are resolved on the server.

Parameters:

row
The row that has been modified.
oldRow
The original row.
response
Specify a response of ABORT, IGNORE, or RETRY for this error. These constants are defined in util.ErrorResponse.