程序包 cn.myafx.data
类 DatabaseImpl
java.lang.Object
cn.myafx.data.DatabaseImpl
- 所有已实现的接口:
Database,AutoCloseable
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intadd<TModel extends Model>
intadd modelvoidbeginTransactionvoidbeginTransaction(IsolationLevel level) beginTransactionvoidclose()voidcommit()commit<TModel extends Model>
intdeleteintdeleteprotected abstract StringencodeColumn(String column) intexecute update/delete/insert<TModel extends Model>
TModelgetprotected abstract ConnectiongetListisClose()isCloseisTransactionvoidopen()open<T> List<T>queryListqueryListMap(String sql, Object... param) queryListMap<T> TqueryOnequeryOneMap(String sql, Object... param) queryOneMapvoidrollback()rollback<TModel extends Model>
intupdateintupdate
-
字段详细资料
-
typeHandlerRegistry
-
-
构造器详细资料
-
DatabaseImpl
public DatabaseImpl()
-
-
方法详细资料
-
isClose
从接口复制的说明:DatabaseisClose -
isTransaction
从接口复制的说明:DatabaseisTransaction- 指定者:
isTransaction在接口中Database- 返回:
- Boolean
-
getConnection
- 抛出:
Exception
-
encodeColumn
-
open
从接口复制的说明:Databaseopen -
beginTransaction
从接口复制的说明:DatabasebeginTransaction- 指定者:
beginTransaction在接口中Database- 抛出:
Exception- Exception
-
beginTransaction
从接口复制的说明:DatabasebeginTransaction- 指定者:
beginTransaction在接口中Database- 参数:
level- IsolationLevel- 抛出:
Exception- Exception
-
commit
从接口复制的说明:Databasecommit -
rollback
从接口复制的说明:Databaserollback -
close
- 指定者:
close在接口中AutoCloseable- 抛出:
Exception
-
execute
从接口复制的说明:Databaseexecute update/delete/insert -
queryOne
从接口复制的说明:DatabasequeryOne -
queryList
从接口复制的说明:DatabasequeryList -
queryOneMap
从接口复制的说明:DatabasequeryOneMap- 指定者:
queryOneMap在接口中Database- 参数:
sql- sqlparam- model or object[]- 返回:
- Map String, Object
- 抛出:
Exception- Exception
-
queryListMap
从接口复制的说明:DatabasequeryListMap- 指定者:
queryListMap在接口中Database- 参数:
sql- sqlparam- model or object[]- 返回:
- List Map String, Object
- 抛出:
Exception- Exception
-
get
public <TModel extends Model> TModel get(Class<TModel> clazz, Map<String, Object> param) throws Exception从接口复制的说明:Databaseget -
getList
public <TModel extends Model> List<TModel> getList(Class<TModel> clazz, Map<String, Object> param) throws Exception从接口复制的说明:DatabasegetList -
add
从接口复制的说明:Databaseadd -
add
从接口复制的说明:Databaseadd model -
update
public int update(String table, Map<String, Object> setParam, Map<String, throws ExceptionObject> whereParam) 从接口复制的说明:Databaseupdate -
update
public <TModel extends Model> int update(Class<TModel> clazz, Map<String, Object> setParam, Map<String, throws ExceptionObject> whereParam) 从接口复制的说明:Databaseupdate -
delete
从接口复制的说明:Databasedelete -
delete
public <TModel extends Model> int delete(Class<TModel> clazz, Map<String, Object> whereParam) throws Exception从接口复制的说明:Databasedelete
-