|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.state.TransactionContext
Represents the transaction on behalf of the component that wants to explictely demarcate transcation boundaries.
Constructor Summary | |
TransactionContext()
|
Method Summary | |
void |
addListener(TransactionListener listener)
Add a transaction listener. |
Object |
getAttribute(String name)
Return an attribute value on this transaction. |
void |
removeAttribute(String name)
Remove an attribute on this transaction. |
void |
removeListener(TransactionListener listener)
Remove a transaction listener previously added with addListener(org.apache.jackrabbit.core.state.TransactionListener) |
void |
setAttribute(String name,
Object value)
Set an attribute on this transaction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionContext()
Method Detail |
public void setAttribute(String name, Object value)
null
, it is semantically equivalent to
removeAttribute(java.lang.String)
.
name
- attribute namevalue
- attribute valuepublic Object getAttribute(String name)
name
- attribute name
null
if no attribute with that
name existspublic void removeAttribute(String name)
name
- attribute namepublic void addListener(TransactionListener listener)
listener
- listener to addpublic void removeListener(TransactionListener listener)
addListener(org.apache.jackrabbit.core.state.TransactionListener)
listener
- listener to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |