public class StoreRemoveCommand extends AbstractStoreCommand
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
key |
Constructor and Description |
---|
StoreRemoveCommand(java.lang.Object key,
Element oldElement)
Create a StoreRemoveCommand
|
Modifier and Type | Method and Description |
---|---|
CacheEntry |
getEntry()
Getter to the cache entry to be removed
|
java.lang.Object |
getObjectKey()
Get the key of the element this command is working on
|
boolean |
isPut(java.lang.Object key)
Is this command represents adding a key to the store
|
boolean |
isRemove(java.lang.Object key)
Is this command represents removing a key to the store
|
getNewElement, getOldElement, prepare, rollback
public StoreRemoveCommand(java.lang.Object key, Element oldElement)
key
- the key of the element to removeoldElement
- the element in the underlying store at the time this command is createdpublic boolean isPut(java.lang.Object key)
key
- the keypublic boolean isRemove(java.lang.Object key)
key
- the keypublic java.lang.Object getObjectKey()
public CacheEntry getEntry()