API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sql.rowset.spi. SyncResolver View Source
Author(s)
Jonathan Bruce
Since
Version
Serial
Hierarchy
 Wrapper
      ResultSet
          RowSet
              SyncResolver
Subinterfaces
Description
public interface SyncResolver
  Defines a framework that allows applications to use a manual decision tree to decide what should be done when a synchronization conflict occurs.
See also:   
Methods
Hide/Show inherited methods
public Object getConflictValue (int index) throws SQLException
  Retrieves the value in the designated column in the current row of this SyncResolver object, which is the value in the data source that caused a conflict.
public Object getConflictValue (String columnName) throws SQLException
  Retrieves the value in the designated column in the current row of this SyncResolver object, which is the value in the data source that caused a conflict.
public int getStatus ()
  Retrieves the conflict status of the current row of this SyncResolver, which indicates the operation the RowSet object was attempting when the conflict occurred.
public boolean nextConflict () throws SQLException
  Moves the cursor down from its current position to the next row that contains a conflict value.
public boolean previousConflict () throws SQLException
  Moves the cursor up from its current position to the previous conflict row in this SyncResolver object.
public void setResolvedValue (int index, Object obj) throws SQLException
  Sets obj as the value in column index in the current row of the RowSet object that is being synchronized.
public void setResolvedValue (String columnName, Object obj) throws SQLException
  Sets obj as the value in column columnName in the current row of the RowSet object that is being synchronized.
Fields
Hide/Show inherited fields
publicfinalstatic int CLOSE_CURSORS_AT_COMMIT = "2" [Inherited From RowSet]
  The constant indicating that open ResultSet objects with this holdability will be closed when the current transaction is commited.
publicfinalstatic int CONCUR_READ_ONLY = "1007" [Inherited From RowSet]
  The constant indicating the concurrency mode for a ResultSet object that may NOT be updated.
publicfinalstatic int CONCUR_UPDATABLE = "1008" [Inherited From RowSet]
  The constant indicating the concurrency mode for a ResultSet object that may be updated.
publicfinalstatic int DELETE_ROW_CONFLICT = "1"
  Indicates that a conflict occurred while the RowSet object was attempting to delete a row in the data source.
publicfinalstatic int FETCH_FORWARD = "1000" [Inherited From RowSet]
  The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last.
publicfinalstatic int FETCH_REVERSE = "1001" [Inherited From RowSet]
  The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first.
publicfinalstatic int FETCH_UNKNOWN = "1002" [Inherited From RowSet]
  The constant indicating that the order in which rows in a result set will be processed is unknown.
publicfinalstatic int HOLD_CURSORS_OVER_COMMIT = "1" [Inherited From RowSet]
  The constant indicating that open ResultSet objects with this holdability will remain open when the current transaction is commited.
publicfinalstatic int INSERT_ROW_CONFLICT = "2"
  Indicates that a conflict occurred while the RowSet object was attempting to insert a row into the data source.
publicfinalstatic int NO_ROW_CONFLICT = "3"
  Indicates that no conflict occured while the RowSet object was attempting to update, delete or insert a row in the data source.
publicfinalstatic int TYPE_FORWARD_ONLY = "1003" [Inherited From RowSet]
  The constant indicating the type for a ResultSet object whose cursor may move only forward.
publicfinalstatic int TYPE_SCROLL_INSENSITIVE = "1004" [Inherited From RowSet]
  The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes to the data that underlies the ResultSet.
publicfinalstatic int TYPE_SCROLL_SENSITIVE = "1005" [Inherited From RowSet]
  The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes to the data that underlies the ResultSet.
publicfinalstatic int UPDATE_ROW_CONFLICT = "0"
  Indicates that a conflict occurred while the RowSet object was attempting to update a row in the data source.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar