public interface TranExecutor
限定符和类型 | 方法和说明 |
---|---|
default void |
execute(Tran meta,
RunnableEx runnable)
执行
|
default java.sql.Connection |
getConnection(javax.sql.DataSource ds)
获取链接
|
boolean |
inTrans()
是否在事务中
|
default boolean |
inTransAndReadOnly()
是否在事务中且只读
|
void |
listen(TranListener listener)
监听
|
boolean inTrans()
default boolean inTransAndReadOnly()
default java.sql.Connection getConnection(javax.sql.DataSource ds) throws java.sql.SQLException
ds
- 数据源java.sql.SQLException
void listen(TranListener listener) throws java.lang.IllegalStateException
listener
- 监听器java.lang.IllegalStateException
default void execute(Tran meta, RunnableEx runnable) throws java.lang.Throwable
java.lang.Throwable