Package cc.carm.lib.easysql.action
Class SQLUpdateActionImpl<T extends java.lang.Number>
- java.lang.Object
-
- cc.carm.lib.easysql.action.AbstractSQLAction<T>
-
- cc.carm.lib.easysql.action.SQLUpdateActionImpl<T>
-
- All Implemented Interfaces:
SQLUpdateAction<T>,SQLAction<T>
- Direct Known Subclasses:
PreparedSQLUpdateActionImpl
public class SQLUpdateActionImpl<T extends java.lang.Number> extends AbstractSQLAction<T> implements SQLUpdateAction<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull java.lang.Class<T>numberClassprotected booleanreturnGeneratedKeys-
Fields inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
sqlContent
-
-
Constructor Summary
Constructors Constructor Description SQLUpdateActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.Class<T> numberClass, @NotNull java.lang.String sql)SQLUpdateActionImpl(@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 Texecute()执行该Action对应的SQL语句SQLUpdateAction<T>returnGeneratedKey()设定该操作返回自增键序列。<N extends java.lang.Number>
SQLUpdateAction<N>returnGeneratedKey(java.lang.Class<N> keyTypeClass)设定该操作返回自增键序列。-
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
-
returnGeneratedKeys
protected boolean returnGeneratedKeys
-
-
Constructor Detail
-
SQLUpdateActionImpl
public SQLUpdateActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.Class<T> numberClass, @NotNull @NotNull java.lang.String sql)
-
SQLUpdateActionImpl
public SQLUpdateActionImpl(@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
-
execute
@NotNull public T execute() throws java.sql.SQLException
Description copied from interface:SQLAction执行该Action对应的SQL语句
-
returnGeneratedKey
public SQLUpdateAction<T> returnGeneratedKey()
Description copied from interface:SQLUpdateAction设定该操作返回自增键序列。- Specified by:
returnGeneratedKeyin interfaceSQLUpdateAction<T extends java.lang.Number>- Returns:
SQLUpdateAction
-
returnGeneratedKey
public <N extends java.lang.Number> SQLUpdateAction<N> returnGeneratedKey(java.lang.Class<N> keyTypeClass)
Description copied from interface:SQLUpdateAction设定该操作返回自增键序列。- Specified by:
returnGeneratedKeyin interfaceSQLUpdateAction<T extends java.lang.Number>- Type Parameters:
N- 自增键序列类型Number- Parameters:
keyTypeClass- 自增序列的数字类型- Returns:
SQLUpdateAction
-
-