public abstract void setDataSourceLock (int datasource_lock) throws SyncProviderException

Sets a lock on the underlying data source at the level indicated by datasource_lock. This should cause the SyncProvider to adjust its behavior by increasing or decreasing the level of optimism it provides for a successful synchronization.

Parameters:
datasource_lock    one of the following constants indicating the severity level of data source lock required:
           SyncProvider.DATASOURCE_NO_LOCK,
           SyncProvider.DATASOURCE_ROW_LOCK,
           SyncProvider.DATASOURCE_TABLE_LOCK,
           SyncProvider.DATASOURCE_DB_LOCK,
 

Exceptions:
SyncProviderException    if an unsupported data source locking level is set.

See also:
getDataSourceLock