public interface TranExecutor
| Modifier and Type | Method and Description |
|---|---|
default void |
execute(Tran meta,
org.noear.solon.core.util.RunnableEx runnable)
执行
|
default Connection |
getConnection(DataSource ds)
获取链接
|
boolean |
inTrans()
是否在事务中
|
default boolean |
inTransAndReadOnly()
是否在事务中且只读
|
void |
listen(TranListener listener)
监听
|
boolean inTrans()
default boolean inTransAndReadOnly()
default Connection getConnection(DataSource ds) throws SQLException
ds - 数据源SQLExceptionvoid listen(TranListener listener) throws IllegalStateException
listener - 监听器IllegalStateExceptionCopyright © 2025. All rights reserved.