public class EventTran extends java.lang.Object implements TranListener
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
构造器和说明 |
---|
EventTran() |
限定符和类型 | 方法和说明 |
---|---|
void |
afterCompletion(int status)
完成之后
|
void |
beforeCommit(boolean readOnly)
提交之前(可以出异常触发回滚)
|
void |
commit()
事务提交
|
java.lang.String |
getId()
获取事务Id
|
<T extends EventTranListener> |
getListener(java.lang.Class<T> tClass)
获取监听器
|
void |
rollback()
事务回滚
|
void |
setListener(EventTranListener listener)
设置监听器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCommit, beforeCompletion, getIndex
public java.lang.String getId()
public void setListener(EventTranListener listener)
public <T extends EventTranListener> T getListener(java.lang.Class<T> tClass)
public void commit() throws java.lang.Exception
java.lang.Exception
public void rollback()
public void beforeCommit(boolean readOnly) throws java.lang.Throwable
TranListener
beforeCommit
在接口中 TranListener
java.lang.Throwable
public void afterCompletion(int status)
TranListener
afterCompletion
在接口中 TranListener
status
- 状态