ehcache

net.sf.ehcache.transaction.xa
Interface PreparedContext

All Known Implementing Classes:
PreparedContextImpl

public interface PreparedContext

Author:
nelrahma

Method Summary
 void addCommand(VersionAwareCommand command)
          Add prepared command
 java.util.List<PreparedCommand> getPreparedCommands()
          Return list of prepared commands
 java.util.Set<java.lang.Object> getUpdatedKeys()
          return set of keys associated with prepared commands
 boolean isCommitted()
          Checks whether the transaction branch associated with this context was commited internally
 boolean isRolledBack()
          Checks whether the transaction branch associated with this context was rolled back internally
 void setCommitted(boolean commited)
          Marks the transaction branch associated with this context as commited
 void setRolledBack(boolean rolledBack)
          Marks the transaction branch associated with this context as rolled back
 

Method Detail

addCommand

void addCommand(VersionAwareCommand command)
Add prepared command

Parameters:
command - the command to be added to the queue

getPreparedCommands

java.util.List<PreparedCommand> getPreparedCommands()
Return list of prepared commands

Returns:
all commands from the queue

getUpdatedKeys

java.util.Set<java.lang.Object> getUpdatedKeys()
return set of keys associated with prepared commands

Returns:
a set of keys to be updated (put or remove)

isRolledBack

boolean isRolledBack()
Checks whether the transaction branch associated with this context was rolled back internally

Returns:
true, if transaction was roleld back internally

isCommitted

boolean isCommitted()
Checks whether the transaction branch associated with this context was commited internally

Returns:
true, if transaction was commited internally

setRolledBack

void setRolledBack(boolean rolledBack)
Marks the transaction branch associated with this context as rolled back

Parameters:
rolledBack - true, if was rolled back, false otherwise

setCommitted

void setCommitted(boolean commited)
Marks the transaction branch associated with this context as commited

Parameters:
commited - true, if was commited, false otherwise

ehcache

true