|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.transaction.xa.PreparedContextImpl
public class PreparedContextImpl
Constructor Summary | |
---|---|
PreparedContextImpl()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreparedContextImpl()
Method Detail |
---|
public void addCommand(VersionAwareCommand command)
addCommand
in interface PreparedContext
command
- the command to be added to the queuepublic java.util.List<PreparedCommand> getPreparedCommands()
getPreparedCommands
in interface PreparedContext
public java.util.Set<java.lang.Object> getUpdatedKeys()
getUpdatedKeys
in interface PreparedContext
public boolean isRolledBack()
isRolledBack
in interface PreparedContext
public boolean isCommitted()
isCommitted
in interface PreparedContext
public void setRolledBack(boolean rolledBack)
setRolledBack
in interface PreparedContext
rolledBack
- true, if was rolled back, false otherwisepublic void setCommitted(boolean commited)
setCommitted
in interface PreparedContext
commited
- true, if was commited, false otherwise
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |