org.ehcache.transactions.xa.commands
Class StoreRemoveCommand<V>

java.lang.Object
  extended by org.ehcache.transactions.xa.commands.StoreRemoveCommand<V>
All Implemented Interfaces:
Command<V>

public class StoreRemoveCommand<V>
extends java.lang.Object
implements Command<V>

Command implementation representing a remove.


Constructor Summary
StoreRemoveCommand(V oldValue)
           
 
Method Summary
 XAValueHolder<V> getNewValueHolder()
          Get the value holder to commit.
 V getOldValue()
          Get the value to rollback to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreRemoveCommand

public StoreRemoveCommand(V oldValue)
Method Detail

getOldValue

public V getOldValue()
Description copied from interface: Command
Get the value to rollback to.

Specified by:
getOldValue in interface Command<V>
Returns:
the old value.

getNewValueHolder

public XAValueHolder<V> getNewValueHolder()
Description copied from interface: Command
Get the value holder to commit.

Specified by:
getNewValueHolder in interface Command<V>
Returns:
the new value holder.