Home

xl2.odb
Class LockNotGrantedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--xl2.util.NestedException
                          |
                          +--xl2.odb.XL2Exception
                                |
                                +--xl2.odb.LockNotGrantedException
All Implemented Interfaces:
java.io.Serializable

public class LockNotGrantedException
extends XL2Exception

Indicates a lock could not be granted on an object. The reasons could be:

See Also:
XL2Transaction.lock(Object,int), Serialized Form

Field Summary
static java.lang.String ABORTED
          The in-memory instance in question was write locked in a transaction which was aborted.
static java.lang.String READ_LOCKED
          A write lock was requested on an object which was already read locked.
static java.lang.String READONLY_TRANSACTION
          A write lock was requested in a read-only transaction.
static java.lang.String TRANSACTION_REQUIRED
          A lock was requested on an object but the calling thread was not joined to a XL2Transaction and there was no global XL2Transaction.
static java.lang.String WRITE_LOCKED
          A lock was requested on an object which was already write locked.
 
Constructor Summary
LockNotGrantedException(java.lang.Object object, java.lang.String reason)
           
 
Method Summary
 java.lang.Object getObject()
           
 java.lang.String getReason()
          See the constants above.
 
Methods inherited from class xl2.util.NestedException
getException, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ABORTED

public static java.lang.String ABORTED
The in-memory instance in question was write locked in a transaction which was aborted. It's state can not be quaranteed equal to it's last committed state.

READ_LOCKED

public static java.lang.String READ_LOCKED
A write lock was requested on an object which was already read locked.

READONLY_TRANSACTION

public static java.lang.String READONLY_TRANSACTION
A write lock was requested in a read-only transaction.

TRANSACTION_REQUIRED

public static java.lang.String TRANSACTION_REQUIRED
A lock was requested on an object but the calling thread was not joined to a XL2Transaction and there was no global XL2Transaction.

WRITE_LOCKED

public static java.lang.String WRITE_LOCKED
A lock was requested on an object which was already write locked.
Constructor Detail

LockNotGrantedException

public LockNotGrantedException(java.lang.Object object,
                               java.lang.String reason)
Method Detail

getObject

public java.lang.Object getObject()

getReason

public java.lang.String getReason()
See the constants above.

Home