| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.InvocationContext
public class InvocationContext
This context holds information specific to a method invocation.
| Method Summary | |
|---|---|
|  InvocationContext | clone() | 
|  boolean | equals(java.lang.Object o) | 
| static InvocationContext | fromMethodCall(MethodCall methodCall)Factory method that creates a context with a given method call. | 
|  GlobalTransaction | getGlobalTransaction()Retrieves the global transaction associated with this invocation | 
|  MethodCall | getMethodCall() | 
|  Option | getOptionOverrides()Retrieves the option overrides associated with this invocation | 
|  javax.transaction.Transaction | getTransaction()Retrieves the transaction associated with this invocation | 
|  int | hashCode() | 
|  boolean | isLocalRollbackOnly() | 
|  boolean | isOriginLocal()Tests if this invocation originated locally or from a remote cache. | 
|  boolean | isTxHasMods() | 
|  void | reset()Resets this to the defaults used when constructing an invocation context object | 
|  void | setGlobalTransaction(GlobalTransaction globalTransaction)Sets the global transaction associated with this invocation | 
|  void | setLocalRollbackOnly(boolean localRollbackOnly) | 
|  void | setMethodCall(MethodCall methodCall)Sets the method call associated with this invocation. | 
|  void | setOptionOverrides(Option optionOverrides)Sets the option overrides associated with this invocation | 
|  void | setOriginLocal(boolean originLocal)If set to true, the invocation is assumed to have originated locally. | 
|  void | setState(InvocationContext template)Sets the state of the InvocationContext based on the template context passed in | 
|  void | setTransaction(javax.transaction.Transaction transaction)Sets the transaction associated with this invocation | 
|  void | setTxHasMods(boolean b) | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Method Detail | 
|---|
public void setLocalRollbackOnly(boolean localRollbackOnly)
public javax.transaction.Transaction getTransaction()
public void setTransaction(javax.transaction.Transaction transaction)
transaction - public GlobalTransaction getGlobalTransaction()
public void setGlobalTransaction(GlobalTransaction globalTransaction)
globalTransaction - public Option getOptionOverrides()
public void setOptionOverrides(Option optionOverrides)
optionOverrides - public boolean isOriginLocal()
public void setOriginLocal(boolean originLocal)
originLocal - public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isTxHasMods()
public void setTxHasMods(boolean b)
public boolean isLocalRollbackOnly()
public void reset()
public InvocationContext clone()
                        throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setState(InvocationContext template)
template - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic MethodCall getMethodCall()
public void setMethodCall(MethodCall methodCall)
methodCall - methodcall to setpublic static InvocationContext fromMethodCall(MethodCall methodCall)
methodCall - methodcall to use
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||