(I(Berkeley DB: DbLockTab.id[P

DbLockTab.id





import com.sleepycat.db.*;

public int id() throws DbException;





Description



The DbLockTab.id methodKreturns a locker ID, which is guaranteed to be unique in the specified locktable.

MThe Berkeley DB access methods generate a unique locker ID for each file thatPis opened with locking. During Berkeley DB access method operation, this lockerFID will be used for all lock calls unless a transaction identifier wasJspecified for the call, in which case the transaction ID specified is usedas the locker ID.

The DbLockTab.idHmethod throws an exception that encapsulates an errno on failure.



Errors

TIf a fatal error occurs in Berkeley DB, the DbLockTab.id method may fail and throw a}DbRunRecoveryException, at which point all subsequent database%calls will also fail in the same way.

The DbLockTab.id&method may fail and throw an exceptionKfor any of the errors specified for the following Berkeley DB and C library functions: abort(3), fcntl(3), fprintf(3),and getpid(3).



Class

;DbLockTab



See Also

BDbLockTab.close,DDbLockTab.detect,>DbLockTab.get, DbLockTab.id,@DbLockTab.open,?DbLockTab.statCDbLockTab.unlinkand>DbLockTab.vec.
ÿÿ