|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.db.ListQueryParameterObject
org.activiti.engine.impl.AbstractQuery<T,U>
public abstract class AbstractQuery<T extends Query<?,?>,U>
Abstract superclass for all query types.
字段摘要 | |
---|---|
protected CommandContext |
commandContext
|
protected CommandExecutor |
commandExecutor
|
protected String |
orderBy
|
protected QueryProperty |
orderProperty
|
protected org.activiti.engine.impl.AbstractQuery.ResultType |
resultType
|
static String |
SORTORDER_ASC
|
static String |
SORTORDER_DESC
|
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的字段 |
---|
databaseType, firstResult, maxResults, parameter |
构造方法摘要 | |
---|---|
protected |
AbstractQuery()
|
|
AbstractQuery(CommandContext commandContext)
|
protected |
AbstractQuery(CommandExecutor commandExecutor)
|
方法摘要 | |
---|---|
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 |
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. |
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的方法 |
---|
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
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.activiti.engine.impl.AbstractQuery.ResultType resultType
protected QueryProperty orderProperty
构造方法详细信息 |
---|
protected AbstractQuery()
protected AbstractQuery(CommandExecutor commandExecutor)
public AbstractQuery(CommandContext commandContext)
方法详细信息 |
---|
public AbstractQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
public T orderBy(QueryProperty property)
public T asc()
Query
复制的描述
Query<T extends Query<?,?>,U>
中的 asc
public T desc()
Query
复制的描述
Query<T extends Query<?,?>,U>
中的 desc
public T direction(Direction direction)
protected void checkQueryOk()
public U singleResult()
Query
复制的描述
Query<T extends Query<?,?>,U>
中的 singleResult
public List<U> list()
Query
复制的描述
Query<T extends Query<?,?>,U>
中的 list
public List<U> listPage(int firstResult, int maxResults)
Query
复制的描述
Query<T extends Query<?,?>,U>
中的 listPage
public long count()
Query
复制的描述
Query<T extends Query<?,?>,U>
中的 count
public Object execute(CommandContext commandContext)
Command<Object>
中的 execute
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()
ListQueryParameterObject
中的 getOrderBy
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |