public abstract class AbstractNativeQuery<T extends NativeQuery<?,?>,U> extends Object implements Command<Object>, NativeQuery<T,U>, Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected CommandContext | 
commandContext  | 
protected CommandExecutor | 
commandExecutor  | 
protected int | 
firstResult  | 
protected int | 
maxResults  | 
protected org.camunda.bpm.engine.impl.AbstractNativeQuery.ResultType | 
resultType  | 
| Modifier | Constructor and Description | 
|---|---|
  | 
AbstractNativeQuery(CommandContext commandContext)  | 
protected  | 
AbstractNativeQuery(CommandExecutor commandExecutor)  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
count()
Executes the query and returns the number of results 
 | 
Object | 
execute(CommandContext commandContext)  | 
abstract long | 
executeCount(CommandContext commandContext,
            Map<String,Object> parameterMap)  | 
abstract List<U> | 
executeList(CommandContext commandContext,
           Map<String,Object> parameterMap,
           int firstResult,
           int maxResults)
Executes the actual query to retrieve the list of results. 
 | 
U | 
executeSingleResult(CommandContext commandContext)  | 
Map<String,Object> | 
getParameters()  | 
List<U> | 
list()
Executes the query and get a list of entities as the result. 
 | 
List<U> | 
listPage(int firstResult,
        int maxResults)
Executes the query and get a list of entities as the result. 
 | 
T | 
parameter(String name,
         Object value)
Add parameter to be replaced in query for index, e.g. 
 | 
AbstractNativeQuery<T,U> | 
setCommandExecutor(CommandExecutor commandExecutor)  | 
U | 
singleResult()
Executes the query and returns the resulting entity or null if no
 entity matches the query criteria. 
 | 
T | 
sql(String sqlStatement)
Hand in the SQL statement you want to execute. 
 | 
protected transient CommandExecutor commandExecutor
protected transient CommandContext commandContext
protected int maxResults
protected int firstResult
protected org.camunda.bpm.engine.impl.AbstractNativeQuery.ResultType resultType
protected AbstractNativeQuery(CommandExecutor commandExecutor)
public AbstractNativeQuery(CommandContext commandContext)
public AbstractNativeQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
public T sql(String sqlStatement)
NativeQuerysql in interface NativeQuery<T extends NativeQuery<?,?>,U>public T parameter(String name, Object value)
NativeQueryparameter in interface NativeQuery<T extends NativeQuery<?,?>,U>public U singleResult()
NativeQuerysingleResult in interface NativeQuery<T extends NativeQuery<?,?>,U>public List<U> list()
NativeQuerylist in interface NativeQuery<T extends NativeQuery<?,?>,U>public List<U> listPage(int firstResult, int maxResults)
NativeQuerylistPage in interface NativeQuery<T extends NativeQuery<?,?>,U>public long count()
NativeQuerycount in interface NativeQuery<T extends NativeQuery<?,?>,U>public Object execute(CommandContext commandContext)
public abstract long executeCount(CommandContext commandContext, Map<String,Object> parameterMap)
public abstract List<U> executeList(CommandContext commandContext, Map<String,Object> parameterMap, int firstResult, int maxResults)
maxResults - firstResult - page - used if the results must be paged. If null, no paging will be
          applied.public U executeSingleResult(CommandContext commandContext)
Copyright © 2017. All rights reserved.