|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.odmg.locking.LockEntry
a persistent entry for locks. All locks that are hold from transaction on objects are represented by a LockENtry and made persistent to the database.
Field Summary | |
static int |
LOCK_READ
marks a Read Lock. |
static int |
LOCK_WRITE
marks a Write Lock. |
Constructor Summary | |
LockEntry()
default constructor |
|
LockEntry(java.lang.String oidString,
java.lang.String transactionId)
build a LockEntry from an OID and a Transaction ID |
|
LockEntry(java.lang.String oidString,
java.lang.String transactionId,
long timestamp,
int isolationLevel,
int lockType)
Multiargument constructor for fast loading of LockEntries by OJB. |
Method Summary | |
int |
getIsolationLevel()
returns the isolation level of this lock |
int |
getLockType()
returns the locktype of this lock. |
java.lang.String |
getOidString()
returns the OID STring of the locked object. |
long |
getTimestamp()
returns the timestamp of the acqusition of the lock. |
java.lang.String |
getTransactionId()
returns the GUID string of the locking transaction. |
boolean |
isOwnedBy(TransactionImpl tx)
returns true if this lock is owned by transaction tx, else false. |
void |
setLockType(int locktype)
sets the locktype of this lockentry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int LOCK_READ
public static int LOCK_WRITE
Constructor Detail |
public LockEntry(java.lang.String oidString, java.lang.String transactionId, long timestamp, int isolationLevel, int lockType)
public LockEntry(java.lang.String oidString, java.lang.String transactionId)
public LockEntry()
Method Detail |
public java.lang.String getOidString()
public java.lang.String getTransactionId()
public long getTimestamp()
public int getIsolationLevel()
public int getLockType()
public void setLockType(int locktype)
locktype
- LOCK_READ for read, LOCK_WRITE for write lock.public boolean isOwnedBy(TransactionImpl tx)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |