| java.lang.Object org.apache.ojb.odmg.locking.LockEntry
LockEntry | public class LockEntry implements Serializable(Code) | | 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.
author: Thomas Mahler |
Constructor Summary | |
public | LockEntry(String oidString, String transactionId, long timestamp, int isolationLevel, int lockType) Multiargument constructor for fast loading of LockEntries by OJB. | public | LockEntry(String oidString, String transactionId) | public | LockEntry() |
LOCK_READ | public static int LOCK_READ(Code) | | marks a Read Lock.
|
LOCK_WRITE | public static int LOCK_WRITE(Code) | | marks a Write Lock.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
LockEntry | public LockEntry(String oidString, String transactionId, long timestamp, int isolationLevel, int lockType)(Code) | | Multiargument constructor for fast loading of LockEntries by OJB.
|
LockEntry | public LockEntry(String oidString, String transactionId)(Code) | | build a LockEntry from an OID and a Transaction ID
|
LockEntry | public LockEntry()(Code) | | default constructor
|
getIsolationLevel | public int getIsolationLevel()(Code) | | returns the isolation level of this lock
|
getLockType | public int getLockType()(Code) | | returns the locktype of this lock.
LOCK_READ if lock is a readlock,LOCK_WRITE if lock is a Write lock. |
getOidString | public String getOidString()(Code) | | returns the OID STring of the locked object.
|
getTimestamp | public long getTimestamp()(Code) | | returns the timestamp of the acqusition of the lock.
|
getTransactionId | public String getTransactionId()(Code) | | returns the GUID string of the locking transaction.
|
isOwnedBy | public boolean isOwnedBy(TransactionImpl tx)(Code) | | returns true if this lock is owned by transaction tx, else false.
|
setIsolationLevel | public void setIsolationLevel(int isolationLevel)(Code) | | Sets the isolationLevel.
Parameters: isolationLevel - The isolationLevel to set |
setLockType | public void setLockType(int locktype)(Code) | | sets the locktype of this lockentry.
Parameters: locktype - LOCK_READ for read, LOCK_WRITE for write lock. |
setOidString | public void setOidString(String oidString)(Code) | | Sets the oidString.
Parameters: oidString - The oidString to set |
setTimestamp | public void setTimestamp(long timestamp)(Code) | | Sets the timestamp.
Parameters: timestamp - The timestamp to set |
setTransactionId | public void setTransactionId(String transactionId)(Code) | | Sets the transactionId.
Parameters: transactionId - The transactionId to set |
|
|