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

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

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

Command implementation representing a put.


Constructor Summary
StorePutCommand(V oldValue, XAValueHolder<V> newValueHolder)
           
 
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

StorePutCommand

public StorePutCommand(V oldValue,
                       XAValueHolder<V> newValueHolder)
Method Detail

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.

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.