public abstract class AbstractStoreCommand extends Object implements Command
Constructor and Description |
---|
AbstractStoreCommand(Element oldElement,
Element newElement)
Create a Store Command
|
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getObjectKey, isPut, isRemove
protected Element getOldElement()
protected Element getNewElement()
public boolean prepare(Store store, SoftLockManager softLockManager, XidTransactionID transactionId, ElementValueComparator comparator)
public void rollback(Store store, SoftLockManager softLockManager)
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.