Package cc.carm.lib.easysql.api.action
Interface SQLUpdateAction
-
- All Superinterfaces:
SQLAction<java.lang.Integer>
- All Known Subinterfaces:
PreparedSQLUpdateAction
- All Known Implementing Classes:
PreparedSQLUpdateActionImpl,SQLUpdateActionImpl
public interface SQLUpdateAction extends SQLAction<java.lang.Integer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SQLUpdateActiondefaultKeyIndex()默认主键序列的数值为 -1 (≤0) ,即默认返回发生变更的行数。SQLUpdateActionsetKeyIndex(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
-
setKeyIndex
SQLUpdateAction setKeyIndex(int keyColumnIndex)
设定自增主键的序列- Parameters:
keyColumnIndex- 自增主键的序列
若该值 > 0,则SQLAction.execute()返回自增主键数值
若该值 ≤ 0,则SQLAction.execute()返回变更的行数- Returns:
SQLUpdateAction
-
defaultKeyIndex
default SQLUpdateAction defaultKeyIndex()
默认主键序列的数值为 -1 (≤0) ,即默认返回发生变更的行数。- Returns:
- 默认主键序列
-
-