|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.AuthorizationCheck
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
public abstract class AbstractQuery<T extends Query<?,?>,U>
Abstract superclass for all query types.
| Field Summary | |
|---|---|
protected CommandContext |
commandContext
|
protected CommandExecutor |
commandExecutor
|
protected String |
orderBy
|
protected QueryProperty |
orderProperty
|
protected org.camunda.bpm.engine.impl.AbstractQuery.ResultType |
resultType
|
static String |
SORTORDER_ASC
|
static String |
SORTORDER_DESC
|
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
databaseType, firstResult, maxResults, parameter |
| Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled |
| Constructor Summary | |
|---|---|
protected |
AbstractQuery()
|
|
AbstractQuery(CommandContext commandContext)
|
protected |
AbstractQuery(CommandExecutor commandExecutor)
|
| Method Summary | |
|---|---|
protected void |
addOrder(String column,
String sortOrder)
|
T |
asc()
Order the results ascending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods). |
protected void |
assertParamNotNull(String paramName,
Object value)
|
protected void |
assertParamNotNull(String paramName,
Object[] values)
|
protected void |
checkQueryOk()
|
long |
count()
Executes the query and returns the number of results |
T |
desc()
Order the results descending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods). |
T |
direction(Direction direction)
|
Object |
execute(CommandContext commandContext)
|
abstract long |
executeCount(CommandContext commandContext)
|
abstract List<U> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results. |
U |
executeSingleResult(CommandContext commandContext)
|
String |
getOrderBy()
|
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 |
orderBy(QueryProperty property)
|
AbstractQuery<T,U> |
setCommandExecutor(CommandExecutor commandExecutor)
|
U |
singleResult()
Executes the query and returns the resulting entity or null if no entity matches the query criteria. |
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter |
| Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SORTORDER_ASC
public static final String SORTORDER_DESC
protected transient CommandExecutor commandExecutor
protected transient CommandContext commandContext
protected String orderBy
protected org.camunda.bpm.engine.impl.AbstractQuery.ResultType resultType
protected QueryProperty orderProperty
| Constructor Detail |
|---|
protected AbstractQuery()
protected AbstractQuery(CommandExecutor commandExecutor)
public AbstractQuery(CommandContext commandContext)
| Method Detail |
|---|
public AbstractQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
public T orderBy(QueryProperty property)
public T asc()
Query
asc in interface Query<T extends Query<?,?>,U>public T desc()
Query
desc in interface Query<T extends Query<?,?>,U>public T direction(Direction direction)
protected void checkQueryOk()
public U singleResult()
Query
singleResult in interface Query<T extends Query<?,?>,U>public List<U> list()
Query
list in interface Query<T extends Query<?,?>,U>
public List<U> listPage(int firstResult,
int maxResults)
Query
listPage in interface Query<T extends Query<?,?>,U>public long count()
Query
count in interface Query<T extends Query<?,?>,U>public Object execute(CommandContext commandContext)
execute in interface Command<Object>public abstract long executeCount(CommandContext commandContext)
public abstract List<U> executeList(CommandContext commandContext,
Page page)
page - used if the results must be paged. If null, no paging will be applied.public U executeSingleResult(CommandContext commandContext)
protected void addOrder(String column,
String sortOrder)
public String getOrderBy()
getOrderBy in class ListQueryParameterObject
protected void assertParamNotNull(String paramName,
Object[] values)
protected void assertParamNotNull(String paramName,
Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||