|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.transaction.SoftLockID
public final class SoftLockID
A soft lock ID is used to uniquely identify a soft lock
Constructor Summary | |
---|---|
SoftLockID(TransactionID transactionID,
Object key,
Element newElement,
Element oldElement)
Create a new SoftLockID instance |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
Object |
getKey()
Get the key of the element this soft lock is guarding |
Element |
getNewElement()
Get the Element with which this soft lock should be replaced by on commit. |
Element |
getOldElement()
Get the Element with which this soft lock should be replaced by on rollback. |
TransactionID |
getTransactionID()
Get the ID of the transaction under which this soft lock is operating |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SoftLockID(TransactionID transactionID, Object key, Element newElement, Element oldElement)
transactionID
- the transaction IDkey
- the element's key this soft lock is going to protectnewElement
- the new element, can be nulloldElement
- the old element, can be nullMethod Detail |
---|
public TransactionID getTransactionID()
public Object getKey()
public Element getNewElement()
public Element getOldElement()
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
public String toString()
toString
in class Object
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |