Package cc.carm.lib.easysql.api.action
Interface PreparedSQLUpdateBatchAction
-
- All Superinterfaces:
SQLAction<java.util.List<java.lang.Integer>>
- All Known Implementing Classes:
PreparedSQLBatchUpdateActionImpl
public interface PreparedSQLUpdateBatchAction extends SQLAction<java.util.List<java.lang.Integer>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description PreparedSQLUpdateBatchActionaddParamsBatch(java.lang.Object... params)添加一组SQL语句中所有 ?default PreparedSQLUpdateBatchActionreturnGeneratedKeys()设定该操作返回自增键序列。PreparedSQLUpdateBatchActionsetAllParams(java.lang.Iterable<java.lang.Object[]> allParams)设定多组SQL语句中所有 ?default PreparedSQLUpdateBatchActionsetKeyIndex(int keyColumnIndex)Deprecated.PreparedSQLUpdateBatchActionsetReturnGeneratedKeys(boolean returnGeneratedKey)设定该操作是否返回自增键序列。-
Methods inherited from interface cc.carm.lib.easysql.api.SQLAction
defaultExceptionHandler, execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeFunction, executeFunction, getActionUUID, getCreateTime, getManager, getShortID, getSQLContent, handleException, setExceptionHandler
-
-
-
-
Method Detail
-
setAllParams
PreparedSQLUpdateBatchAction setAllParams(java.lang.Iterable<java.lang.Object[]> allParams)
设定多组SQL语句中所有 ? 对应的参数- Parameters:
allParams- 所有参数内容- Returns:
PreparedSQLUpdateBatchAction
-
addParamsBatch
PreparedSQLUpdateBatchAction addParamsBatch(java.lang.Object... params)
添加一组SQL语句中所有 ? 对应的参数- Parameters:
params- 参数内容- Returns:
PreparedSQLUpdateBatchAction
-
setKeyIndex
@Deprecated default PreparedSQLUpdateBatchAction setKeyIndex(int keyColumnIndex)
Deprecated.设定自增主键的序列- Parameters:
keyColumnIndex- 自增主键的序列
若该值 > 0,则SQLAction.execute()返回自增主键数值
若该值 ≤ 0,则SQLAction.execute()返回变更的行数- Returns:
PreparedSQLUpdateBatchAction- See Also:
setReturnGeneratedKeys(boolean)
-
returnGeneratedKeys
default PreparedSQLUpdateBatchAction returnGeneratedKeys()
设定该操作返回自增键序列。- Returns:
PreparedSQLUpdateBatchAction
-
setReturnGeneratedKeys
PreparedSQLUpdateBatchAction setReturnGeneratedKeys(boolean returnGeneratedKey)
设定该操作是否返回自增键序列。- Returns:
PreparedSQLUpdateBatchAction
-
-