Class StoreRemoveCommand
- java.lang.Object
-
- net.sf.ehcache.transaction.xa.commands.AbstractStoreCommand
-
- net.sf.ehcache.transaction.xa.commands.StoreRemoveCommand
-
- All Implemented Interfaces:
Command
public class StoreRemoveCommand extends AbstractStoreCommand
- Author:
- Alex Snaps
-
-
Constructor Summary
Constructors Constructor Description StoreRemoveCommand(java.lang.Object key, Element oldElement)Create a StoreRemoveCommand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheEntrygetEntry()Getter to the cache entry to be removedjava.lang.ObjectgetObjectKey()Get the key of the element this command is working onbooleanisPut(java.lang.Object key)Is this command represents adding a key to the storebooleanisRemove(java.lang.Object key)Is this command represents removing a key to the store-
Methods inherited from class net.sf.ehcache.transaction.xa.commands.AbstractStoreCommand
getNewElement, getOldElement, prepare, rollback
-
-
-
-
Constructor Detail
-
StoreRemoveCommand
public StoreRemoveCommand(java.lang.Object key, Element oldElement)Create a StoreRemoveCommand- Parameters:
key- the key of the element to removeoldElement- the element in the underlying store at the time this command is created
-
-
Method Detail
-
isPut
public boolean isPut(java.lang.Object key)
Is this command represents adding a key to the store- Parameters:
key- the key- Returns:
- true, if this command would try to add an Element for key, otherwise false
-
isRemove
public boolean isRemove(java.lang.Object key)
Is this command represents removing a key to the store- Parameters:
key- the key- Returns:
- true, if this command would try to remove an Element for key, otherwise false
-
getObjectKey
public java.lang.Object getObjectKey()
Get the key of the element this command is working on- Returns:
- the element's key
-
getEntry
public CacheEntry getEntry()
Getter to the cache entry to be removed- Returns:
- the cache entry
-
-