public class DbTran extends Object
| 构造器和说明 |
|---|
DbTran() |
| 限定符和类型 | 方法和说明 |
|---|---|
DbTran |
autoCommit(boolean autoCommit)
是否自动提交
|
protected void |
close() |
protected void |
commit() |
DbTran |
execute(Act0Ex<Throwable> handler) |
Connection |
getConnection(DataSource ds) |
Connection |
getConnection(DbContext db) |
protected void |
rollback() |
public Connection getConnection(DbContext db) throws SQLException
SQLExceptionpublic Connection getConnection(DataSource ds) throws SQLException
SQLExceptionpublic DbTran autoCommit(boolean autoCommit)
public DbTran execute(Act0Ex<Throwable> handler) throws SQLException
SQLExceptionprotected void rollback()
throws SQLException
SQLExceptionprotected void commit()
throws SQLException
SQLExceptionprotected void close()
throws SQLException
SQLExceptionCopyright © 2023. All rights reserved.