public class QuerySQLExecutor extends BaseSQLExecutor
BaseStatementOnlySQLExecutorBaseSQLExecutor.ResultSetHolder, BaseSQLExecutor.ResultUpdateHolder| 构造器和说明 |
|---|
QuerySQLExecutor(ExecuteContext executeContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteById(Class<?> target,
Object objId) |
int |
insert(Class target,
Object paras)
插入一条记录到clazz指定的表,参数是paras,clazz如果申明了自增,序列,或者其他数据库返回值,
插入后,会取出这些值赋值到paras对象里
|
Object[] |
insert(Class target,
Object paras,
String[] cols)
插入数据,cols表明需要获取的返回数据,比如自增id,或者其他数据库自动生成数据
|
int[] |
insertBatch(Class<?> target,
List<?> list) |
int[] |
sqlReadyBatchExecuteUpdate(SQLBatchReady batch) |
int |
sqlReadyExecuteUpdate(SQLReady p) |
int |
update(Class target,
Object obj)
更新对象
|
int[] |
updateBatch(Class<?> target,
List<?> list) |
int[] |
updateBatch(List<?> list) |
addMoreParasFromTarget, afterBean, applyStatementSetting, assignKeyHolder, beforeExecute, callInterceptorAsAfter, callInterceptorAsBefore, callInterceptorAsException, clean, clean, clean, closeConnection, dbQuery, dbUpdate, dbUpdateWithHolder, existById, getExecuteContext, getKeyHolderCols, handleHolder, insert, isBaseDataType, mappingSelect, run, run, select, select, select, selectCount, selectSingle, selectUnique, setIdsParas, setPreparedStatementPara, single, single, singleSelect, sqlReadySelect, stream, streamExecute, uniquepublic QuerySQLExecutor(ExecuteContext executeContext)
public int insert(Class target, Object paras)
SQLExecutorinsert 在接口中 SQLExecutorinsert 在类中 BaseSQLExecutorpublic Object[] insert(Class target, Object paras, String[] cols)
SQLExecutorinsert 在接口中 SQLExecutorinsert 在类中 BaseSQLExecutorpublic int update(Class target, Object obj)
SQLExecutorupdate 在接口中 SQLExecutorupdate 在类中 BaseSQLExecutorpublic int[] updateBatch(List<?> list)
updateBatch 在接口中 SQLExecutorupdateBatch 在类中 BaseSQLExecutorpublic int[] updateBatch(Class<?> target, List<?> list)
updateBatch 在接口中 SQLExecutorupdateBatch 在类中 BaseSQLExecutorpublic int[] insertBatch(Class<?> target, List<?> list)
insertBatch 在接口中 SQLExecutorinsertBatch 在类中 BaseSQLExecutorpublic int deleteById(Class<?> target, Object objId)
deleteById 在接口中 SQLExecutordeleteById 在类中 BaseSQLExecutorpublic int sqlReadyExecuteUpdate(SQLReady p)
sqlReadyExecuteUpdate 在接口中 SQLExecutorsqlReadyExecuteUpdate 在类中 BaseSQLExecutorpublic int[] sqlReadyBatchExecuteUpdate(SQLBatchReady batch)
sqlReadyBatchExecuteUpdate 在接口中 SQLExecutorsqlReadyBatchExecuteUpdate 在类中 BaseSQLExecutorCopyright © 2022. All rights reserved.