Package cc.carm.lib.easysql.action
Class PreparedSQLUpdateActionImpl
- java.lang.Object
-
- cc.carm.lib.easysql.action.AbstractSQLAction<java.lang.Integer>
-
- cc.carm.lib.easysql.action.SQLUpdateActionImpl
-
- cc.carm.lib.easysql.action.PreparedSQLUpdateActionImpl
-
- All Implemented Interfaces:
PreparedSQLUpdateAction,SQLUpdateAction,SQLAction<java.lang.Integer>
public class PreparedSQLUpdateActionImpl extends SQLUpdateActionImpl implements PreparedSQLUpdateAction
-
-
Field Summary
-
Fields inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
sqlContent
-
-
Constructor Summary
Constructors Constructor Description PreparedSQLUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.String sql)PreparedSQLUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.String sql, @Nullable java.lang.Object[] params)PreparedSQLUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.String sql, @Nullable java.util.List<java.lang.Object> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.Integerexecute()执行该Action对应的SQL语句PreparedSQLUpdateActionsetParams(@Nullable java.lang.Iterable<java.lang.Object> params)设定SQL语句中所有 ?PreparedSQLUpdateActionImplsetParams(java.lang.Object... params)设定SQL语句中所有 ?-
Methods inherited from class cc.carm.lib.easysql.action.SQLUpdateActionImpl
setReturnGeneratedKey
-
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.SQLAction
defaultExceptionHandler, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeFunction, executeFunction, getActionUUID, getCreateTime, getManager, getShortID, getSQLContent, handleException, setExceptionHandler
-
Methods inherited from interface cc.carm.lib.easysql.api.action.SQLUpdateAction
returnGeneratedKey, setKeyIndex, setReturnGeneratedKey
-
-
-
-
Constructor Detail
-
PreparedSQLUpdateActionImpl
public PreparedSQLUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.String sql)
-
PreparedSQLUpdateActionImpl
public PreparedSQLUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.String sql, @Nullable @Nullable java.util.List<java.lang.Object> params)
-
PreparedSQLUpdateActionImpl
public PreparedSQLUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.String sql, @Nullable @Nullable java.lang.Object[] params)
-
-
Method Detail
-
setParams
public PreparedSQLUpdateActionImpl setParams(java.lang.Object... params)
Description copied from interface:PreparedSQLUpdateAction设定SQL语句中所有 ? 对应的参数- Specified by:
setParamsin interfacePreparedSQLUpdateAction- Parameters:
params- 参数内容- Returns:
PreparedSQLUpdateAction
-
setParams
public PreparedSQLUpdateAction setParams(@Nullable @Nullable java.lang.Iterable<java.lang.Object> params)
Description copied from interface:PreparedSQLUpdateAction设定SQL语句中所有 ? 对应的参数- Specified by:
setParamsin interfacePreparedSQLUpdateAction- Parameters:
params- 参数内容- Returns:
PreparedSQLUpdateAction
-
execute
@NotNull public @NotNull java.lang.Integer execute() throws java.sql.SQLExceptionDescription copied from interface:SQLAction执行该Action对应的SQL语句- Specified by:
executein interfaceSQLAction<java.lang.Integer>- Overrides:
executein classSQLUpdateActionImpl- Returns:
- 指定数据类型
- Throws:
java.sql.SQLException- 当SQL操作出现问题时抛出
-
-