org.jboss.test.tm.resource
Class Operation
java.lang.Object
org.jboss.test.tm.resource.Operation
- All Implemented Interfaces:
- java.io.Serializable
- public class Operation
- extends java.lang.Object
- implements java.io.Serializable
Operations
- See Also:
- Serialized Form
Constructor Summary |
Operation(int op,
int id)
|
Operation(int op,
int id,
int status)
|
Operation(int op,
int id,
int status,
java.lang.Throwable throwable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEGIN
public static final int BEGIN
- See Also:
- Constant Field Values (src)
COMMIT
public static final int COMMIT
- See Also:
- Constant Field Values (src)
ROLLBACK
public static final int ROLLBACK
- See Also:
- Constant Field Values (src)
SUSPEND
public static final int SUSPEND
- See Also:
- Constant Field Values (src)
RESUME
public static final int RESUME
- See Also:
- Constant Field Values (src)
SETROLLBACK
public static final int SETROLLBACK
- See Also:
- Constant Field Values (src)
STATUS
public static final int STATUS
- See Also:
- Constant Field Values (src)
STATE
public static final int STATE
- See Also:
- Constant Field Values (src)
CREATE
public static final int CREATE
- See Also:
- Constant Field Values (src)
ENLIST
public static final int ENLIST
- See Also:
- Constant Field Values (src)
DIFFRM
public static final int DIFFRM
- See Also:
- Constant Field Values (src)
SETSTATUS
public static final int SETSTATUS
- See Also:
- Constant Field Values (src)
Operation
public Operation(int op,
int id)
Operation
public Operation(int op,
int id,
int status)
Operation
public Operation(int op,
int id,
int status,
java.lang.Throwable throwable)
perform
public void perform()
throws java.lang.Exception
- Throws:
java.lang.Exception
begin
public void begin()
throws java.lang.Exception
- Throws:
java.lang.Exception
commit
public void commit()
throws java.lang.Exception
- Throws:
java.lang.Exception
rollback
public void rollback()
throws java.lang.Exception
- Throws:
java.lang.Exception
suspend
public void suspend()
throws java.lang.Exception
- Throws:
java.lang.Exception
resume
public void resume()
throws java.lang.Exception
- Throws:
java.lang.Exception
setRollbackOnly
public void setRollbackOnly()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkStatus
public void checkStatus()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkState
public void checkState()
throws java.lang.Exception
- Throws:
java.lang.Exception
create
public void create()
throws java.lang.Exception
- Throws:
java.lang.Exception
enlist
public void enlist()
throws java.lang.Exception
- Throws:
java.lang.Exception
differentRM
public void differentRM()
throws java.lang.Exception
- Throws:
java.lang.Exception
setStatus
public void setStatus()
throws java.lang.Exception
- Throws:
java.lang.Exception
start
public static void start(Logger (src) log)
throws java.lang.Exception
- Throws:
java.lang.Exception
end
public static void end()
reset
public static void reset()
getRes
public Resource (src) getRes(java.lang.Integer id)
getTx
public Transaction (src) getTx(java.lang.Integer id)
assertTx
public void assertTx(java.lang.Integer id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTM
public static TransactionManager (src) getTM()
throws java.lang.Exception
- Throws:
java.lang.Exception