Package cc.carm.lib.easysql.action
Class PreparedSQLBatchUpdateActionImpl
- java.lang.Object
-
- cc.carm.lib.easysql.action.AbstractSQLAction<java.util.List<java.lang.Integer>>
-
- cc.carm.lib.easysql.action.PreparedSQLBatchUpdateActionImpl
-
- All Implemented Interfaces:
PreparedSQLUpdateBatchAction,SQLAction<java.util.List<java.lang.Integer>>
public class PreparedSQLBatchUpdateActionImpl extends AbstractSQLAction<java.util.List<java.lang.Integer>> implements PreparedSQLUpdateBatchAction
-
-
Field Summary
-
Fields inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
sqlContent
-
-
Constructor Summary
Constructors Constructor Description PreparedSQLBatchUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedSQLUpdateBatchActionaddParamsBatch(java.lang.Object... params)添加一组SQL语句中所有 ?@NotNull java.util.List<java.lang.Integer>execute()执行该Action对应的SQL语句PreparedSQLUpdateBatchActionsetAllParams(java.lang.Iterable<java.lang.Object[]> allParams)设定多组SQL语句中所有 ?PreparedSQLUpdateBatchActionsetReturnGeneratedKeys(boolean returnGeneratedKey)设定该操作是否返回自增键序列。-
Methods inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
executeAsync, getActionUUID, getCreateTime, getManager, getShortID, getSQLContent, outputDebugMessage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction
returnGeneratedKeys, setKeyIndex
-
Methods inherited from interface cc.carm.lib.easysql.api.SQLAction
defaultExceptionHandler, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeFunction, executeFunction, getActionUUID, getCreateTime, getManager, getShortID, getSQLContent, handleException, setExceptionHandler
-
-
-
-
Constructor Detail
-
PreparedSQLBatchUpdateActionImpl
public PreparedSQLBatchUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.String sql)
-
-
Method Detail
-
setAllParams
public PreparedSQLUpdateBatchAction setAllParams(java.lang.Iterable<java.lang.Object[]> allParams)
Description copied from interface:PreparedSQLUpdateBatchAction设定多组SQL语句中所有 ? 对应的参数- Specified by:
setAllParamsin interfacePreparedSQLUpdateBatchAction- Parameters:
allParams- 所有参数内容- Returns:
PreparedSQLUpdateBatchAction
-
addParamsBatch
public PreparedSQLUpdateBatchAction addParamsBatch(java.lang.Object... params)
Description copied from interface:PreparedSQLUpdateBatchAction添加一组SQL语句中所有 ? 对应的参数- Specified by:
addParamsBatchin interfacePreparedSQLUpdateBatchAction- Parameters:
params- 参数内容- Returns:
PreparedSQLUpdateBatchAction
-
setReturnGeneratedKeys
public PreparedSQLUpdateBatchAction setReturnGeneratedKeys(boolean returnGeneratedKey)
Description copied from interface:PreparedSQLUpdateBatchAction设定该操作是否返回自增键序列。- Specified by:
setReturnGeneratedKeysin interfacePreparedSQLUpdateBatchAction- Returns:
PreparedSQLUpdateBatchAction
-
execute
@NotNull public @NotNull java.util.List<java.lang.Integer> execute() throws java.sql.SQLExceptionDescription copied from interface:SQLAction执行该Action对应的SQL语句
-
-