public abstract class DbTran extends DbTranNode implements TranNode
children, parent| Modifier and Type | Method and Description |
|---|---|
void |
close()
关闭
|
void |
commit()
提交
|
void |
execute(org.noear.solon.core.util.RunnableEx runnable) |
Connection |
getConnection(DataSource ds) |
Tran |
getMeta() |
void |
listen(TranListener listener)
监听
|
void |
rollback()
回滚
|
addpublic DbTran(Tran meta)
public void listen(TranListener listener)
public Tran getMeta()
public Connection getConnection(DataSource ds) throws SQLException
SQLExceptionpublic void execute(org.noear.solon.core.util.RunnableEx runnable)
throws Throwable
Throwablepublic void commit()
throws Throwable
DbTranNodecommit in class DbTranNodeThrowablepublic void rollback()
DbTranNoderollback in class DbTranNodepublic void close()
throws Throwable
DbTranNodeclose in class DbTranNodeThrowableCopyright © 2025. All rights reserved.