public class FilterExpressionList<T> extends DefaultExpressionList<T>
expr, list, parentExprList, query| Constructor and Description |
|---|
FilterExpressionList(FilterExprPath pathPrefix,
ExpressionFactory expr,
Query<T> rootQuery) |
FilterExpressionList(FilterExprPath pathPrefix,
FilterExpressionList<T> original) |
| Modifier and Type | Method and Description |
|---|---|
ExpressionList<T> |
filterMany(String prop) |
FutureIds<T> |
findFutureIds()
Execute find Id's query in a background thread.
|
FutureList<T> |
findFutureList()
Execute find list query in a background thread.
|
FutureRowCount<T> |
findFutureRowCount()
Execute find row count query in a background thread.
|
List<T> |
findList()
Execute the query returning a list.
|
Map<?,T> |
findMap()
Execute the query returning a map.
|
PagingList<T> |
findPagingList(int pageSize)
Return a PagingList for this query.
|
int |
findRowCount()
Return the count of entities this query should return.
|
Set<T> |
findSet()
Execute the query returning a set.
|
T |
findUnique()
Execute the query returning a single bean.
|
FilterExprPath |
getPathPrefix() |
ExpressionList<T> |
having()
Add expressions to the having clause.
|
ExpressionList<T> |
idEq(Object value)
Id Equal to - ID property is equal to the value.
|
ExpressionList<T> |
idIn(List<?> idValues)
Id IN a list of id values.
|
Query<T> |
join(String assocProperties)
Specify a property (associated bean) to join and fetch including
all its properties.
|
Query<T> |
join(String assocProperty,
String assocProperties)
Specify a property (associated bean) to join and fetch with its
specific properties to include (aka partial object).
|
OrderBy<T> |
order()
Return the OrderBy so that you can append an ascending or descending
property to the order by clause.
|
Query<T> |
order(String orderByClause)
Set the order by clause replacing the existing order by clause if there is
one.
|
Query<T> |
orderBy(String orderBy)
Add an orderBy clause to the query.
|
Query<T> |
query()
Return the query that owns this expression list.
|
Query<T> |
select(String properties)
Specify specific properties to fetch on the main/root bean (aka partial
object).
|
Query<T> |
setBackgroundFetchAfter(int backgroundFetchAfter)
Set the number of rows after which the fetching should continue in a
background thread.
|
Query<T> |
setFirstRow(int firstRow)
Set the first row to fetch.
|
Query<T> |
setListener(QueryListener<T> queryListener)
Deprecated.
|
Query<T> |
setMapKey(String mapKey)
Set the name of the property which values become the key of a map.
|
Query<T> |
setMaxRows(int maxRows)
Set the maximum number of rows to fetch.
|
Query<T> |
setUseCache(boolean useCache)
Set to true to use the query for executing this query.
|
SpiExpressionList<?> |
trimPath(int prefixTrim)
Return a copy of the ExpressionList with the path trimmed for filterMany() expressions.
|
ExpressionList<T> |
where()
Add another expression to the where clause.
|
add, addAll, allEq, and, between, betweenProperties, buildBindValues, buildSql, conjunction, contains, containsMany, copy, disjunction, endJunction, endsWith, eq, exampleLike, findIds, findIterate, findMap, findVisit, ge, getUnderlyingList, gt, icontains, iendsWith, ieq, iexampleLike, ilike, in, in, in, internalList, isEmpty, isNotNull, isNull, istartsWith, le, like, lt, ne, not, or, orderBy, queryAutoFetchHash, queryBindHash, queryPlanHash, raw, raw, raw, setExpressionFactory, setOrderBy, startsWithpublic FilterExpressionList(FilterExprPath pathPrefix, FilterExpressionList<T> original)
public FilterExpressionList(FilterExprPath pathPrefix, ExpressionFactory expr, Query<T> rootQuery)
public SpiExpressionList<?> trimPath(int prefixTrim)
SpiExpressionListtrimPath in interface SpiExpressionList<T>trimPath in class DefaultExpressionList<T>public FilterExprPath getPathPrefix()
public ExpressionList<T> filterMany(String prop)
filterMany in interface ExpressionList<T>filterMany in class DefaultExpressionList<T>public FutureIds<T> findFutureIds()
ExpressionListThis returns a Future object which can be used to cancel, check the execution status (isDone etc) and get the value (with or without a timeout).
findFutureIds in interface ExpressionList<T>findFutureIds in class DefaultExpressionList<T>public FutureList<T> findFutureList()
ExpressionListThis returns a Future object which can be used to cancel, check the execution status (isDone etc) and get the value (with or without a timeout).
findFutureList in interface ExpressionList<T>findFutureList in class DefaultExpressionList<T>public FutureRowCount<T> findFutureRowCount()
ExpressionListThis returns a Future object which can be used to cancel, check the execution status (isDone etc) and get the value (with or without a timeout).
findFutureRowCount in interface ExpressionList<T>findFutureRowCount in class DefaultExpressionList<T>public List<T> findList()
ExpressionListfindList in interface ExpressionList<T>findList in class DefaultExpressionList<T>Query.findList()public Map<?,T> findMap()
ExpressionListfindMap in interface ExpressionList<T>findMap in class DefaultExpressionList<T>Query.findMap()public PagingList<T> findPagingList(int pageSize)
ExpressionListThis can be used to break up a query into multiple queries to fetch the data a page at a time.
This typically works by using a query per page and setting
Query.setFirstRow(int) and and Query.setMaxRows(int) on the
query. This usually would translate into SQL that uses limit offset, rownum
or row_number function to limit the result set.
findPagingList in interface ExpressionList<T>findPagingList in class DefaultExpressionList<T>pageSize - the number of beans fetched per Pagepublic int findRowCount()
ExpressionListThis is the number of 'top level' or 'root level' entities.
findRowCount in interface ExpressionList<T>findRowCount in class DefaultExpressionList<T>public Set<T> findSet()
ExpressionListfindSet in interface ExpressionList<T>findSet in class DefaultExpressionList<T>Query.findSet()public T findUnique()
ExpressionListfindUnique in interface ExpressionList<T>findUnique in class DefaultExpressionList<T>Query.findUnique()public ExpressionList<T> having()
ExpressionListThe having clause is only used for queries based on raw sql (via SqlSelect annotation etc).
having in interface ExpressionList<T>having in class DefaultExpressionList<T>public ExpressionList<T> idEq(Object value)
ExpressionListidEq in interface ExpressionList<T>idEq in class DefaultExpressionList<T>public ExpressionList<T> idIn(List<?> idValues)
ExpressionListidIn in interface ExpressionList<T>idIn in class DefaultExpressionList<T>public Query<T> join(String assocProperty, String assocProperties)
ExpressionListjoin in interface ExpressionList<T>join in class DefaultExpressionList<T>Query#join(String,String)public Query<T> join(String assocProperties)
ExpressionListjoin in interface ExpressionList<T>join in class DefaultExpressionList<T>Query#join(String)public OrderBy<T> order()
ExpressionListThis will never return a null. If no order by clause exists then an 'empty' OrderBy object is returned.
order in interface ExpressionList<T>order in class DefaultExpressionList<T>public Query<T> order(String orderByClause)
ExpressionListThis follows SQL syntax using commas between each property with the optional asc and desc keywords representing ascending and descending order respectively.
This is EXACTLY the same as ExpressionList.orderBy(String).
order in interface ExpressionList<T>order in class DefaultExpressionList<T>public Query<T> orderBy(String orderBy)
ExpressionListorderBy in interface ExpressionList<T>orderBy in class DefaultExpressionList<T>Query.orderBy(String)public Query<T> query()
ExpressionListThis is a convenience method solely to support a fluid API where the methods are chained together. Adding expressions returns this expression list and this method can be used after that to return back the original query so that further things can be added to it.
query in interface ExpressionList<T>query in class DefaultExpressionList<T>public Query<T> select(String properties)
ExpressionListselect in interface ExpressionList<T>select in class DefaultExpressionList<T>Query.select(String)public Query<T> setBackgroundFetchAfter(int backgroundFetchAfter)
ExpressionListsetBackgroundFetchAfter in interface ExpressionList<T>setBackgroundFetchAfter in class DefaultExpressionList<T>Query.setBackgroundFetchAfter(int)public Query<T> setFirstRow(int firstRow)
ExpressionListsetFirstRow in interface ExpressionList<T>setFirstRow in class DefaultExpressionList<T>Query.setFirstRow(int)@Deprecated public Query<T> setListener(QueryListener<T> queryListener)
ExpressionListExpressionList.findIterate() or ExpressionList.findVisit(QueryResultVisitor).
Set a QueryListener for bean by bean processing.setListener in interface ExpressionList<T>setListener in class DefaultExpressionList<T>Query.setListener(QueryListener)public Query<T> setMapKey(String mapKey)
ExpressionListsetMapKey in interface ExpressionList<T>setMapKey in class DefaultExpressionList<T>Query.setMapKey(String)public Query<T> setMaxRows(int maxRows)
ExpressionListsetMaxRows in interface ExpressionList<T>setMaxRows in class DefaultExpressionList<T>Query.setMaxRows(int)public Query<T> setUseCache(boolean useCache)
ExpressionListsetUseCache in interface ExpressionList<T>setUseCache in class DefaultExpressionList<T>Query.setUseCache(boolean)public ExpressionList<T> where()
ExpressionListwhere in interface ExpressionList<T>where in class DefaultExpressionList<T>Copyright © 2014. All Rights Reserved.