com.sleepycat.je.dbi
Class CursorImpl.LockStanding

java.lang.Object
  extended by 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.


Constructor Summary
CursorImpl.LockStanding()
           
 
Method Summary
 LockResult getLockResult()
           
static WriteLockInfo prepareForInsert()
          Creates WriteLockInfo that is appropriate for a newly inserted slot.
 WriteLockInfo prepareForUpdate()
          Creates WriteLockInfo that is appropriate for an update or delete operation, after lockLN has been called.
 boolean recordExists()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorImpl.LockStanding

public CursorImpl.LockStanding()
Method Detail

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.