Interface PreparedQueryAction
-
- All Superinterfaces:
QueryAction
,SQLAction<SQLQuery>
public interface PreparedQueryAction extends QueryAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PreparedQueryAction
handleStatement(@Nullable java.util.function.Consumer<java.sql.PreparedStatement> statement)
直接对PreparedStatement
进行处理PreparedQueryAction
setParams(@Nullable java.lang.Iterable<java.lang.Object> params)
设定SQL语句中所有 ?PreparedQueryAction
setParams(@Nullable java.lang.Object... params)
设定SQL语句中所有 ?-
Methods inherited from interface cc.carm.lib.easysql.api.action.query.QueryAction
executeFunction
-
Methods inherited from interface cc.carm.lib.easysql.api.SQLAction
defaultExceptionHandler, execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeFunction, executeFuture, executeFuture, getActionUUID, getCreateTime, getCreateTime, getManager, getShortID, getSQLContent, getSQLContents, handleException, setExceptionHandler
-
-
-
-
Method Detail
-
setParams
PreparedQueryAction setParams(@Nullable @Nullable java.lang.Object... params)
设定SQL语句中所有 ? 对应的参数- Parameters:
params
- 参数内容- Returns:
PreparedQueryAction
-
setParams
PreparedQueryAction setParams(@Nullable @Nullable java.lang.Iterable<java.lang.Object> params)
设定SQL语句中所有 ? 对应的参数- Parameters:
params
- 参数内容- Returns:
PreparedQueryAction
-
handleStatement
PreparedQueryAction handleStatement(@Nullable @Nullable java.util.function.Consumer<java.sql.PreparedStatement> statement)
直接对PreparedStatement
进行处理- Parameters:
statement
-Consumer
处理操作 若为空则不进行处理- Returns:
PreparedQueryAction
-
-