public abstract class AbstractQuery<T extends Query<?,?>,U> extends ListQueryParameterObject implements Command<Object>, Query<T,U>, Serializable
ListQueryParameterObject.ResultTypeQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
protected CommandContext |
commandContext |
protected CommandExecutor |
commandExecutor |
databaseType, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByColumns, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQuery() |
|
AbstractQuery(CommandContext commandContext) |
protected |
AbstractQuery(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
T |
asc() |
protected void |
checkQueryOk() |
long |
count() |
T |
desc() |
T |
direction(Direction direction) |
Object |
execute(CommandContext commandContext) |
abstract long |
executeCount(CommandContext commandContext) |
abstract List<U> |
executeList(CommandContext commandContext)
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 |
orderBy(QueryProperty property) |
T |
orderBy(QueryProperty property,
Query.NullHandlingOnOrder nullHandlingOnOrder) |
AbstractQuery<T,U> |
setCommandExecutor(CommandExecutor commandExecutor) |
U |
singleResult() |
addOrder, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByColumns, getParameter, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setOrderByColumns, setParameterprotected transient CommandExecutor commandExecutor
protected transient CommandContext commandContext
protected AbstractQuery()
protected AbstractQuery(CommandExecutor commandExecutor)
public AbstractQuery(CommandContext commandContext)
public AbstractQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
public T orderBy(QueryProperty property)
public T orderBy(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder)
protected void checkQueryOk()
public U singleResult()
singleResult in interface Query<T extends Query<?,?>,U>public Object execute(CommandContext commandContext)
public abstract long executeCount(CommandContext commandContext)
public abstract List<U> executeList(CommandContext commandContext)
public U executeSingleResult(CommandContext commandContext)
Copyright © 2017 Flowable. All rights reserved.