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 Modifier and Type Method Description PreparedSQLUpdateBatchActionaddParamsBatch(java.lang.Object... params)添加一组SQL语句中所有 ?default PreparedSQLUpdateBatchActiondefaultKeyIndex()默认主键序列的数值为 -1 (≤0) ,即默认返回发生变更的行数。PreparedSQLUpdateBatchActionsetAllParams(java.lang.Iterable<java.lang.Object[]> allParams)设定多组SQL语句中所有 ?PreparedSQLUpdateBatchActionsetKeyIndex(int keyColumnIndex)设定自增主键的序列-
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
PreparedSQLUpdateBatchAction setKeyIndex(int keyColumnIndex)
设定自增主键的序列- Parameters:
keyColumnIndex- 自增主键的序列
若该值 > 0,则SQLAction.execute()返回自增主键数值
若该值 ≤ 0,则SQLAction.execute()返回变更的行数- Returns:
PreparedSQLUpdateBatchAction
-
defaultKeyIndex
default PreparedSQLUpdateBatchAction defaultKeyIndex()
默认主键序列的数值为 -1 (≤0) ,即默认返回发生变更的行数。- Returns:
- 默认主键序列
-
-