T
- the return type of the querypublic interface Query<T extends PortalEntity> extends AbstractQuery<T>
Modifier and Type | Method and Description |
---|---|
Query<T> |
from(java.lang.Class<? extends T>... types)
Sets the list of types of objects to find.
|
java.util.List<T> |
getResultList()
Gets the results of the query
|
Query<T> |
orderBy(Order... o)
Specify the ordering operations that are used to order the query results.
|
Query<T> |
setPaginationRule(PaginationRule paginationRule)
Sets the pagination rule.
|
Query<T> |
setQueryUnindexed(boolean queryUnindexed)
Sets the mode for querying unindexed properties.
|
Query<T> |
where(Expression restriction)
Modify the query to restrict the query result according to the specified
expression.
|
getReturnType, toExpression
Query<T> from(java.lang.Class<? extends T>... types)
types
- a list of types of objects to findQuery<T> where(Expression restriction)
restriction
- the expression used to restrict the query resultQuery<T> orderBy(Order... o)
o
- zero or more ordering operationsQuery<T> setPaginationRule(PaginationRule paginationRule)
paginationRule
- the pagination ruleQuery<T> setQueryUnindexed(boolean queryUnindexed)
By default the query will throw an exception if an attempt to query an unindexed property is made; this behaviour can be changed by enabling the mode for quering unindexed properties.
queryUnindexed
- true if it should allow querying of unindexed
properties, otherwise falsejava.util.List<T> getResultList() throws oracle.webcenter.portal.PortalOptimisticLockException
oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.