类 TransactionSupportOrmClient
java.lang.Object
cn.sylinx.horm.core.OrmClient
cn.sylinx.horm.core.TransactionSupportOrmClient
- 所有已实现的接口:
Closeable,FluentSqlClient,SqlClient,TransactionSupport
jdbc 事务
- 作者:
- johnhan
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> T自定义操作protected <T> Tcall(PreparedCallable<T> preparedCallable, String sql, Object[] params) voidclose()int删除booleanExecutes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement.获取数据源获取事务支持int添加int[]insertBatch(String insertSqlTemplateInput, List<Object[]> batchParamsInput) 批量插入insertForRetrieval(String insertSqlInput, Object... paramsInput) 添加,返回生成的键查询queryForSingleColumn(String querySql, Object... params) 查询1列voidsetConnectionProvider(ConnectionProvider connectionProvider) toString()transaction(ITransactionBlock transaction) int更新从类继承的方法 cn.sylinx.horm.core.OrmClient
buildPaginatorSql, callSilence, callSilence, count, delete, delete, execute, get, getDialect, getSqlParser, insert, insert, insertBatch, insertForRetrieval, query, queryFirst, queryFirst, queryFirst, queryFirstForSingleColumn, queryFirstForSingleColumn, queryFirstForSingleColumn, queryForSingleColumn, queryList, queryList, queryList, queryListForSingleColumn, queryListForSingleColumn, queryPage, queryPage, queryPage, queryPage, queryPage, queryPageForSingleColumn, queryRecord, queryRecord, queryRecords, queryRecords, save, setDialect, setParameters, setSqlParser, update, update, update
-
字段详细资料
-
connectionProvider
-
-
构造器详细资料
-
TransactionSupportOrmClient
public TransactionSupportOrmClient()
-
-
方法详细资料
-
transaction
- 指定者:
transaction在接口中TransactionSupport
-
getTransactionSupport
从接口复制的说明:SqlClient获取事务支持- 指定者:
getTransactionSupport在接口中SqlClient- 覆盖:
getTransactionSupport在类中OrmClient- 返回:
-
toString
-
getConnectionProvider
-
setConnectionProvider
-
getDataSourceName
从接口复制的说明:SqlClient获取数据源- 指定者:
getDataSourceName在接口中SqlClient- 返回:
-
close
public void close() -
insert
添加- 指定者:
insert在接口中SqlClient- 参数:
conn-updateSql-params-- 返回:
- 抛出:
SQLException
-
insertBatch
public int[] insertBatch(String insertSqlTemplateInput, List<Object[]> batchParamsInput) throws SQLException 从接口复制的说明:SqlClient批量插入- 指定者:
insertBatch在接口中SqlClient- 返回:
- 抛出:
SQLException
-
delete
删除- 指定者:
delete在接口中SqlClient- 参数:
conn-deleteSql-params-- 返回:
- 抛出:
SQLException
-
update
更新- 指定者:
update在接口中SqlClient- 参数:
conn-updateSql-params-- 返回:
- 抛出:
SQLException
-
insertForRetrieval
添加,返回生成的键- 指定者:
insertForRetrieval在接口中SqlClient- 参数:
updateSql-params-- 返回:
- 抛出:
SQLException
-
execute
Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement. Some prepared statements return multiple results; the execute method handles these complex statements as well as the simpler form of statements handled by the methods executeQuery and executeUpdate. The execute method returns a boolean to indicate the form of the first result. You must call either the method getResultSet or getUpdateCount to retrieve the result; you must call getMoreResults to move to any subsequent result(s).- 指定者:
execute在接口中SqlClient- 参数:
exeSql-params-- 返回:
- true if the first result is a ResultSet object; false if the first result is an update count or there is no result
- 抛出:
SQLException
-
query
查询- 指定者:
query在接口中SqlClient- 参数:
conn-sql-params-- 返回:
- 抛出:
SQLException
-
queryForSingleColumn
查询1列- 指定者:
queryForSingleColumn在接口中SqlClient- 参数:
querySql- 查询sqlparams- 查询参数- 返回:
- 抛出:
SQLException
-
call
自定义操作- 指定者:
call在接口中SqlClient- 类型参数:
T-- 参数:
callable-- 返回:
- 抛出:
SQLException
-
call
protected <T> T call(PreparedCallable<T> preparedCallable, String sql, Object[] params) throws SQLException - 抛出:
SQLException
-