Package cc.carm.lib.easysql.action
Class SQLUpdateBatchActionImpl
- java.lang.Object
-
- cc.carm.lib.easysql.action.AbstractSQLAction<java.util.List<java.lang.Integer>>
-
- cc.carm.lib.easysql.action.SQLUpdateBatchActionImpl
-
- All Implemented Interfaces:
SQLUpdateBatchAction,SQLAction<java.util.List<java.lang.Integer>>
public class SQLUpdateBatchActionImpl extends AbstractSQLAction<java.util.List<java.lang.Integer>> implements SQLUpdateBatchAction
-
-
Field Summary
-
Fields inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
sqlContent
-
-
Constructor Summary
Constructors Constructor Description SQLUpdateBatchActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLUpdateBatchActionaddBatch(@NotNull java.lang.String sql)添加一条批量执行的SQL语句@NotNull java.util.List<java.lang.Integer>execute()执行该Action对应的SQL语句@NotNull java.util.List<java.lang.String>getSQLContents()protected voidoutputDebugMessage()-
Methods inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
executeAsync, getActionUUID, getCreateTime, getManager, getShortID, getSQLContent
-
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, handleException, setExceptionHandler
-
Methods inherited from interface cc.carm.lib.easysql.api.action.SQLUpdateBatchAction
getSQLContent
-
-
-
-
Constructor Detail
-
SQLUpdateBatchActionImpl
public SQLUpdateBatchActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.String sql)
-
-
Method Detail
-
getSQLContents
@NotNull public @NotNull java.util.List<java.lang.String> getSQLContents()
- Specified by:
getSQLContentsin interfaceSQLUpdateBatchAction
-
addBatch
public SQLUpdateBatchAction addBatch(@NotNull @NotNull java.lang.String sql)
Description copied from interface:SQLUpdateBatchAction添加一条批量执行的SQL语句- Specified by:
addBatchin interfaceSQLUpdateBatchAction- Parameters:
sql- SQL语句- Returns:
SQLUpdateBatchAction
-
execute
@NotNull public @NotNull java.util.List<java.lang.Integer> execute() throws java.sql.SQLExceptionDescription copied from interface:SQLAction执行该Action对应的SQL语句
-
outputDebugMessage
protected void outputDebugMessage()
- Overrides:
outputDebugMessagein classAbstractSQLAction<java.util.List<java.lang.Integer>>
-
-