com.sleepycat.je.dbi
Class CursorImpl.LockStanding
java.lang.Object
com.sleepycat.je.dbi.CursorImpl.LockStanding
- Enclosing class:
- CursorImpl
public static class CursorImpl.LockStanding
- extends Object
Holds the result of a lockLN operation. A lock may not actually be
held (getLockResult may return null) if an uncontended lock is allowed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CursorImpl.LockStanding
public CursorImpl.LockStanding()
recordExists
public boolean recordExists()
getLockResult
public LockResult getLockResult()
prepareForUpdate
public WriteLockInfo prepareForUpdate()
- Creates WriteLockInfo that is appropriate for an update or delete
operation, after lockLN has been called. The return value is meant
to be passed to an LN logging method and copied into the
WriteLockInfo for the new LSN. If the lock is not already held by
this locker, a WriteLockInfo is created with the old LSN as the
abortLsn.
prepareForInsert
public static WriteLockInfo prepareForInsert()
- Creates WriteLockInfo that is appropriate for a newly inserted slot.
The return value is meant to be passed to an LN logging method and
copied into the WriteLockInfo for the new LSN. This method is
static because lockLN is never called prior to logging an LN for a
newly inserted slot.
Copyright (c) 2004-2012 Oracle. All rights reserved.