API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sql.rowset.spi. SyncProvider View Source
Author(s)
Jonathan Bruce
Since
Version
Serial
Hierarchy
 Object
      SyncProvider
Implements
Subclasses
Description
publicabstract abstract class SyncProvider
  The synchronization mechanism that provides reader/writer capabilities for disconnected RowSet objects.
Constructors
public SyncProvider ()
Creates a default SyncProvider object.
Methods
Hide/Show inherited methods
publicabstract int getDataSourceLock () throws SyncProviderException
  Returns the current data source lock severity level active in this SyncProvider implementation.
publicabstract int getProviderGrade ()
  Returns a constant indicating the grade of synchronization a RowSet object can expect from this SyncProvider object.
publicabstract String getProviderID ()
  Returns the unique identifier for this SyncProvider object.
publicabstract RowSetReader getRowSetReader ()
  Returns a javax.sql.RowSetReader object, which can be used to populate a RowSet object with data.
publicabstract RowSetWriter getRowSetWriter ()
  Returns a javax.sql.RowSetWriter object, which can be used to write a RowSet object's data back to the underlying data source.
publicabstract String getVendor ()
  Returns the vendor name of this SyncProvider instance
publicabstract String getVersion ()
  Returns the release version of this SyncProvider instance.
publicabstract void setDataSourceLock (int datasource_lock) throws SyncProviderException
  Sets a lock on the underlying data source at the level indicated by datasource_lock.
publicabstract int supportsUpdatableView ()
  Returns whether this SyncProvider implementation can perform synchronization between a RowSet object and the SQL VIEW in the data source from which the RowSet object got its data.
Fields
Hide/Show inherited fields
publicstatic int DATASOURCE_DB_LOCK
Indicates that a lock is placed on the entire data source that is the source of data for the RowSet object that is using this SyncProvider object.
publicstatic int DATASOURCE_NO_LOCK
  Indicates that no locks remain on the originating data source.
publicstatic int DATASOURCE_ROW_LOCK
Indicates that a lock is placed on the rows that are touched by the original SQL statement used to populate the RowSet object that is using this SyncProvider object.
publicstatic int DATASOURCE_TABLE_LOCK
Indicates that a lock is placed on all tables that are touched by the original SQL statement used to populate the RowSet object that is using this SyncProvider object.
publicstatic int GRADE_CHECK_ALL_AT_COMMIT
  Indicates a high level optimistic synchronization grade with respect to the originating data source.
publicstatic int GRADE_CHECK_MODIFIED_AT_COMMIT
  Indicates a low level optimistic synchronization grade with respect to the originating data source.
publicstatic int GRADE_LOCK_WHEN_LOADED
  Indicates the most pessimistic synchronization grade with respect to the originating data source.
publicstatic int GRADE_LOCK_WHEN_MODIFIED
  Indicates a pessimistic synchronization grade with respect to the originating data source.
publicstatic int GRADE_NONE
  Indicates that no synchronization with the originating data source is provided.
publicstatic int NONUPDATABLE_VIEW_SYNC
Indicates that a SyncProvider implementation does not support synchronization between a RowSet object and the SQL VIEW used to populate it.
publicstatic int UPDATABLE_VIEW_SYNC
Indicates that a SyncProvider implementation supports synchronization between a RowSet object and the SQL VIEW used to populate it.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar