-
- All Implemented Interfaces:
-
database.DataBase
public final class DBTransaction extends DataBaseImpl
数据库事务类
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisTransactionprivate DBdbprivate Connectionconn
-
Constructor Summary
Constructors Constructor Description DBTransaction(DB db, Connection conn)
-
Method Summary
Modifier and Type Method Description BooleangetIsTransaction()DBgetDb()UnitsetDb(DB db)final ConnectiongetConn()final UnitsetConn(Connection conn)ConnectiongetConnection()获取一个数据库连接 -
Methods inherited from class database.DBTransaction
createIndex, createTable, createUniqueIndex, delete, delete, delete, delete, delete, deleteById, dropIndex, dropTable, fetchCount, find, find, find, firstPage, insert, insert, insert, insert, lastPage, nativeSelect, nextPage, page, previousPage, queryAll, save, select, select, select, select, select, truncate, truncate, update, update, update, values, with -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DBTransaction
DBTransaction(DB db, Connection conn)
-
-
Method Detail
-
getIsTransaction
Boolean getIsTransaction()
-
getConn
final Connection getConn()
-
setConn
final Unit setConn(Connection conn)
-
getConnection
Connection getConnection()
获取一个数据库连接
-
-
-
-