Package cc.carm.lib.easysql.action
Class PreparedSQLBatchUpdateActionImpl<T extends java.lang.Number>
- java.lang.Object
-
- cc.carm.lib.easysql.action.AbstractSQLAction<java.util.List<T>>
-
- cc.carm.lib.easysql.action.PreparedSQLBatchUpdateActionImpl<T>
-
- All Implemented Interfaces:
PreparedSQLUpdateBatchAction<T>,SQLAction<java.util.List<T>>
public class PreparedSQLBatchUpdateActionImpl<T extends java.lang.Number> extends AbstractSQLAction<java.util.List<T>> implements PreparedSQLUpdateBatchAction<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull java.lang.Class<T>numberClass-
Fields inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
sqlContent
-
-
Constructor Summary
Constructors Constructor Description PreparedSQLBatchUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.Class<T> numberClass, @NotNull java.lang.String sql)PreparedSQLBatchUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.Class<T> numberClass, @NotNull java.util.UUID uuid, @NotNull java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedSQLBatchUpdateActionImpl<T>addParamsBatch(java.lang.Object... params)添加一组SQL语句中所有 ?@NotNull java.util.List<T>execute()执行该Action对应的SQL语句PreparedSQLBatchUpdateActionImpl<T>returnGeneratedKeys()设定该操作返回自增键序列。<N extends java.lang.Number>
PreparedSQLBatchUpdateActionImpl<N>returnGeneratedKeys(java.lang.Class<N> keyTypeClass)设定该操作返回自增键序列。PreparedSQLBatchUpdateActionImpl<T>setAllParams(java.lang.Iterable<java.lang.Object[]> allParams)设定多组SQL语句中所有 ?-
Methods inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
debugMessage, executeAsync, executeFuture, 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, executeFuture, executeFuture, getActionUUID, getCreateTime, getCreateTime, getManager, getShortID, getSQLContent, getSQLContents, handleException, setExceptionHandler
-
-
-
-
Field Detail
-
numberClass
@NotNull protected final @NotNull java.lang.Class<T extends java.lang.Number> numberClass
-
-
Constructor Detail
-
PreparedSQLBatchUpdateActionImpl
public PreparedSQLBatchUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.Class<T> numberClass, @NotNull @NotNull java.lang.String sql)
-
PreparedSQLBatchUpdateActionImpl
public PreparedSQLBatchUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.Class<T> numberClass, @NotNull @NotNull java.util.UUID uuid, @NotNull @NotNull java.lang.String sql)
-
-
Method Detail
-
setAllParams
public PreparedSQLBatchUpdateActionImpl<T> setAllParams(java.lang.Iterable<java.lang.Object[]> allParams)
Description copied from interface:PreparedSQLUpdateBatchAction设定多组SQL语句中所有 ? 对应的参数- Specified by:
setAllParamsin interfacePreparedSQLUpdateBatchAction<T extends java.lang.Number>- Parameters:
allParams- 所有参数内容- Returns:
PreparedSQLUpdateBatchAction
-
addParamsBatch
public PreparedSQLBatchUpdateActionImpl<T> addParamsBatch(java.lang.Object... params)
Description copied from interface:PreparedSQLUpdateBatchAction添加一组SQL语句中所有 ? 对应的参数- Specified by:
addParamsBatchin interfacePreparedSQLUpdateBatchAction<T extends java.lang.Number>- Parameters:
params- 参数内容- Returns:
PreparedSQLUpdateBatchAction
-
returnGeneratedKeys
public PreparedSQLBatchUpdateActionImpl<T> returnGeneratedKeys()
Description copied from interface:PreparedSQLUpdateBatchAction设定该操作返回自增键序列。- Specified by:
returnGeneratedKeysin interfacePreparedSQLUpdateBatchAction<T extends java.lang.Number>- Returns:
SQLUpdateAction
-
returnGeneratedKeys
public <N extends java.lang.Number> PreparedSQLBatchUpdateActionImpl<N> returnGeneratedKeys(java.lang.Class<N> keyTypeClass)
Description copied from interface:PreparedSQLUpdateBatchAction设定该操作返回自增键序列。- Specified by:
returnGeneratedKeysin interfacePreparedSQLUpdateBatchAction<T extends java.lang.Number>- Type Parameters:
N- 自增键序列类型Number- Parameters:
keyTypeClass- 自增序列的数字类型- Returns:
SQLUpdateAction
-
-