public abstract class AbstractNativeQuery<T extends NativeQuery<?,?>,U> extends BaseNativeQuery<T,U> implements Command<Object>
BaseNativeQuery.ResultType| Modifier and Type | Field and Description |
|---|---|
protected CommandContext |
commandContext |
protected CommandExecutor |
commandExecutor |
firstResult, maxResults, parameters, resultType, sqlStatement| Modifier | Constructor and Description |
|---|---|
|
AbstractNativeQuery(CommandContext commandContext) |
protected |
AbstractNativeQuery(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
Object |
execute(CommandContext commandContext) |
abstract long |
executeCount(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.
|
U |
executeSingleResult(CommandContext commandContext) |
List<U> |
list() |
List<U> |
listPage(int firstResult,
int maxResults) |
T |
parameter(String name,
Object value) |
AbstractNativeQuery<T,U> |
setCommandExecutor(CommandExecutor commandExecutor) |
U |
singleResult() |
T |
sql(String sqlStatement) |
__generateParameterMap, generateParameterMap, getParametersprotected transient CommandExecutor commandExecutor
protected transient CommandContext commandContext
protected AbstractNativeQuery(CommandExecutor commandExecutor)
public AbstractNativeQuery(CommandContext commandContext)
public AbstractNativeQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
public T sql(String sqlStatement)
sql in interface NativeQuery<T extends NativeQuery<?,?>,U>sql in class BaseNativeQuery<T extends NativeQuery<?,?>,U>public T parameter(String name, Object value)
parameter in interface NativeQuery<T extends NativeQuery<?,?>,U>parameter in class BaseNativeQuery<T extends NativeQuery<?,?>,U>public U singleResult()
singleResult in interface NativeQuery<T extends NativeQuery<?,?>,U>public List<U> list()
list in interface NativeQuery<T extends NativeQuery<?,?>,U>public List<U> listPage(int firstResult, int maxResults)
listPage in interface NativeQuery<T extends NativeQuery<?,?>,U>public long count()
count 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)
commandContext - parameterMap - public U executeSingleResult(CommandContext commandContext)
Copyright © 2017 Flowable. All rights reserved.