src/share/classes/javax/sql/rowset/spi/SyncProvider.java

Print this page




 276      * @throws SyncProviderException if an unsupported data source locking level
 277      *           is set.
 278      * @see #getDataSourceLock
 279      */
 280     public abstract void setDataSourceLock(int datasource_lock)
 281         throws SyncProviderException;
 282 
 283     /**
 284      * Returns the current data source lock severity level active in this
 285      * <code>SyncProvider</code> implementation.
 286      *
 287      * @return a constant indicating the current level of data source lock
 288      *        active in this <code>SyncProvider</code> object;
 289      *         one of the following:
 290      * <pre>
 291      *           SyncProvider.DATASOURCE_NO_LOCK,
 292      *           SyncProvider.DATASOURCE_ROW_LOCK,
 293      *           SyncProvider.DATASOURCE_TABLE_LOCK,
 294      *           SyncProvider.DATASOURCE_DB_LOCK
 295      * </pre>
 296      * @throws SyncProviderExceptiom if an error occurs determining the data
 297      *        source locking level.
 298      * @see #setDataSourceLock
 299 
 300      */
 301     public abstract int getDataSourceLock()
 302         throws SyncProviderException;
 303 
 304     /**
 305      * Returns whether this <code>SyncProvider</code> implementation
 306      * can perform synchronization between a <code>RowSet</code> object
 307      * and the SQL <code>VIEW</code> in the data source from which
 308      * the <code>RowSet</code> object got its data.
 309      *
 310      * @return an <code>int</code> saying whether this <code>SyncProvider</code>
 311      *         object supports updating an SQL <code>VIEW</code>; one of the
 312      *         following:
 313      *            SyncProvider.UPDATABLE_VIEW_SYNC,
 314      *            SyncProvider.NONUPDATABLE_VIEW_SYNC
 315      */
 316     public abstract int supportsUpdatableView();




 276      * @throws SyncProviderException if an unsupported data source locking level
 277      *           is set.
 278      * @see #getDataSourceLock
 279      */
 280     public abstract void setDataSourceLock(int datasource_lock)
 281         throws SyncProviderException;
 282 
 283     /**
 284      * Returns the current data source lock severity level active in this
 285      * <code>SyncProvider</code> implementation.
 286      *
 287      * @return a constant indicating the current level of data source lock
 288      *        active in this <code>SyncProvider</code> object;
 289      *         one of the following:
 290      * <pre>
 291      *           SyncProvider.DATASOURCE_NO_LOCK,
 292      *           SyncProvider.DATASOURCE_ROW_LOCK,
 293      *           SyncProvider.DATASOURCE_TABLE_LOCK,
 294      *           SyncProvider.DATASOURCE_DB_LOCK
 295      * </pre>
 296      * @throws SyncProviderException if an error occurs determining the data
 297      *        source locking level.
 298      * @see #setDataSourceLock
 299 
 300      */
 301     public abstract int getDataSourceLock()
 302         throws SyncProviderException;
 303 
 304     /**
 305      * Returns whether this <code>SyncProvider</code> implementation
 306      * can perform synchronization between a <code>RowSet</code> object
 307      * and the SQL <code>VIEW</code> in the data source from which
 308      * the <code>RowSet</code> object got its data.
 309      *
 310      * @return an <code>int</code> saying whether this <code>SyncProvider</code>
 311      *         object supports updating an SQL <code>VIEW</code>; one of the
 312      *         following:
 313      *            SyncProvider.UPDATABLE_VIEW_SYNC,
 314      *            SyncProvider.NONUPDATABLE_VIEW_SYNC
 315      */
 316     public abstract int supportsUpdatableView();