|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.transaction.xa.commands.AbstractStoreCommand
public abstract class AbstractStoreCommand
Constructor Summary | |
---|---|
AbstractStoreCommand(Element oldElement,
Element newElement)
Create a Store Command |
Method Summary | |
---|---|
protected Element |
getNewElement()
Get the new element to put in the underlying store |
protected Element |
getOldElement()
Get the element in the underlying store at the time this command is created |
boolean |
prepare(Store store,
SoftLockManager softLockManager,
XidTransactionID transactionId,
ElementValueComparator comparator)
Prepare the commmand un the underlying store |
void |
rollback(Store store,
SoftLockManager softLockManager)
Rollback the prepared change |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.ehcache.transaction.xa.commands.Command |
---|
getObjectKey, isPut, isRemove |
Constructor Detail |
---|
public AbstractStoreCommand(Element oldElement, Element newElement)
oldElement
- the element in the underlying store at the time this command is creatednewElement
- the new element to put in the underlying storeMethod Detail |
---|
protected Element getOldElement()
protected Element getNewElement()
public boolean prepare(Store store, SoftLockManager softLockManager, XidTransactionID transactionId, ElementValueComparator comparator)
prepare
in interface Command
store
- the underdyling storesoftLockManager
- the soft lock managertransactionId
- the transaction IDcomparator
- the element value comparator
public void rollback(Store store, SoftLockManager softLockManager)
rollback
in interface Command
store
- the underlying storesoftLockManager
- the soft lock manager
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |