Class AbstractNativeQuery<T extends NativeQuery<?,?>,U>
- java.lang.Object
-
- org.flowable.common.engine.impl.query.BaseNativeQuery<T,U>
-
- org.flowable.common.engine.impl.query.AbstractNativeQuery<T,U>
-
- All Implemented Interfaces:
Serializable,NativeQuery<T,U>,Command<Object>
public abstract class AbstractNativeQuery<T extends NativeQuery<?,?>,U> extends BaseNativeQuery<T,U> implements Command<Object>
Abstract superclass for all native query types.- Author:
- Bernd Ruecker (camunda)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.query.BaseNativeQuery
BaseNativeQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandContextcommandContextprotected CommandExecutorcommandExecutor-
Fields inherited from class org.flowable.common.engine.impl.query.BaseNativeQuery
firstResult, maxResults, parameters, resultType, sqlStatement
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractNativeQuery(CommandContext commandContext)protectedAbstractNativeQuery(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longcount()Objectexecute(CommandContext commandContext)abstract longexecuteCount(CommandContext commandContext, Map<String,Object> parameterMap)abstract List<U>executeList(CommandContext commandContext, Map<String,Object> parameterMap)Executes the actual query to retrieve the list of results.UexecuteSingleResult(CommandContext commandContext)List<U>list()List<U>listPage(int firstResult, int maxResults)Tparameter(String name, Object value)AbstractNativeQuery<T,U>setCommandExecutor(CommandExecutor commandExecutor)UsingleResult()Tsql(String sqlStatement)-
Methods inherited from class org.flowable.common.engine.impl.query.BaseNativeQuery
generateParameterMap, getParameters
-
-
-
-
Field Detail
-
commandExecutor
protected transient CommandExecutor commandExecutor
-
commandContext
protected transient CommandContext commandContext
-
-
Constructor Detail
-
AbstractNativeQuery
protected AbstractNativeQuery(CommandExecutor commandExecutor)
-
AbstractNativeQuery
public AbstractNativeQuery(CommandContext commandContext)
-
-
Method Detail
-
setCommandExecutor
public AbstractNativeQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
-
sql
public T sql(String sqlStatement)
- Specified by:
sqlin interfaceNativeQuery<T extends NativeQuery<?,?>,U>- Overrides:
sqlin classBaseNativeQuery<T extends NativeQuery<?,?>,U>
-
parameter
public T parameter(String name, Object value)
- Specified by:
parameterin interfaceNativeQuery<T extends NativeQuery<?,?>,U>- Overrides:
parameterin classBaseNativeQuery<T extends NativeQuery<?,?>,U>
-
singleResult
public U singleResult()
- Specified by:
singleResultin interfaceNativeQuery<T extends NativeQuery<?,?>,U>
-
list
public List<U> list()
- Specified by:
listin interfaceNativeQuery<T extends NativeQuery<?,?>,U>
-
listPage
public List<U> listPage(int firstResult, int maxResults)
- Specified by:
listPagein interfaceNativeQuery<T extends NativeQuery<?,?>,U>
-
count
public long count()
- Specified by:
countin interfaceNativeQuery<T extends NativeQuery<?,?>,U>
-
execute
public Object execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<T extends NativeQuery<?,?>>
-
executeCount
public abstract long executeCount(CommandContext commandContext, Map<String,Object> parameterMap)
-
executeList
public abstract List<U> executeList(CommandContext commandContext, Map<String,Object> parameterMap)
Executes the actual query to retrieve the list of results.- Parameters:
commandContext-parameterMap-
-
executeSingleResult
public U executeSingleResult(CommandContext commandContext)
-
-