Package cc.carm.lib.easysql.action.query
Class QueryActionImpl
- java.lang.Object
-
- cc.carm.lib.easysql.action.AbstractSQLAction<SQLQuery>
-
- cc.carm.lib.easysql.action.query.QueryActionImpl
-
- All Implemented Interfaces:
QueryAction,SQLAction<SQLQuery>
- Direct Known Subclasses:
PreparedQueryActionImpl
public class QueryActionImpl extends AbstractSQLAction<SQLQuery> implements QueryAction
-
-
Field Summary
-
Fields inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
sqlContent
-
-
Constructor Summary
Constructors Constructor Description QueryActionImpl(@NotNull SQLManagerImpl manager, @NotNull java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull SQLQueryImplexecute()执行该Action对应的SQL语句voidexecuteAsync(SQLHandler<SQLQuery> success, SQLExceptionHandler failure)异步执行SQL语句-
Methods inherited from class cc.carm.lib.easysql.action.AbstractSQLAction
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.action.query.QueryAction
executeFunction
-
Methods inherited from interface cc.carm.lib.easysql.api.SQLAction
defaultExceptionHandler, execute, execute, execute, executeAsync, executeAsync, executeFunction, getActionUUID, getCreateTime, getManager, getShortID, getSQLContent, handleException, setExceptionHandler
-
-
-
-
Constructor Detail
-
QueryActionImpl
public QueryActionImpl(@NotNull @NotNull SQLManagerImpl manager, @NotNull @NotNull java.lang.String sql)
-
-
Method Detail
-
execute
@NotNull public @NotNull SQLQueryImpl execute() throws java.sql.SQLException
Description copied from interface:SQLAction执行该Action对应的SQL语句
-
executeAsync
public void executeAsync(SQLHandler<SQLQuery> success, SQLExceptionHandler failure)
Description copied from interface:SQLAction异步执行SQL语句- Specified by:
executeAsyncin interfaceSQLAction<SQLQuery>- Overrides:
executeAsyncin classAbstractSQLAction<SQLQuery>- Parameters:
success- 成功时的操作failure- 异常处理器 默认为SQLAction.defaultExceptionHandler()
-
-