ehcache

net.sf.ehcache.transaction.xa
Interface VersionAwareCommand

All Superinterfaces:
Command
All Known Implementing Classes:
VersionAwareWrapper

public interface VersionAwareCommand
extends Command

A more specialized type of Command, that is potentially aware of a version of the Element involved in its execution against the Store.

Author:
Alex Snaps

Field Summary
 
Fields inherited from interface net.sf.ehcache.transaction.Command
EXPIRE_ALL_ELEMENTS, NULL, PUT, PUT_WITH_WRITER, REMOVE, REMOVE_ALL, REMOVE_WITH_WRITER
 
Method Summary
 java.lang.Object getKey()
          Getter to the key of the Element this command affects
 long getVersion()
          getter to the version of the Element this affects
 boolean isVersionAware()
          Checks whether this command aware of any version scheme of the Element if affects
 boolean isWriteCommand()
          Checks whether this command is a write command to the underlying store
 
Methods inherited from interface net.sf.ehcache.transaction.Command
execute, execute, getCommandName, isPut, isRemove
 

Method Detail

isWriteCommand

boolean isWriteCommand()
Checks whether this command is a write command to the underlying store

Returns:
true if the command would mutate the store on Command.execute(net.sf.ehcache.store.Store)

isVersionAware

boolean isVersionAware()
Checks whether this command aware of any version scheme of the Element if affects

Returns:
true if so

getVersion

long getVersion()
getter to the version of the Element this affects

Returns:
version number

getKey

java.lang.Object getKey()
Getter to the key of the Element this command affects

Returns:
key

ehcache

true