T - result typeQ - concrete query typepublic class UnionImpl<T,Q extends ProjectableSQLQuery<T,Q> & Query<Q>> extends Object implements Union<T>
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context) |
Expression<T> |
as(Path<T> alias)
Create an alias for the expression
|
Expression<T> |
as(String alias)
Create an alias for the expression
|
QueryMetadata |
getMetadata() |
Class<? extends T> |
getType() |
Union<T> |
groupBy(Expression<?>... o)
Defines the grouping/aggregation expressions
|
Union<T> |
having(Predicate... o)
Defines the filters for aggregation
|
com.mysema.commons.lang.CloseableIterator<T> |
iterate()
Get the projection as a typed Iterator
|
List<T> |
list()
Get the projection as a typed List
|
Union<T> |
orderBy(OrderSpecifier<?>... o)
Define the ordering of the query results
|
String |
toString() |
public UnionImpl(Q query)
public List<T> list()
Unionpublic com.mysema.commons.lang.CloseableIterator<T> iterate()
Unionpublic Union<T> groupBy(Expression<?>... o)
Unionpublic Union<T> having(Predicate... o)
Unionpublic Union<T> orderBy(OrderSpecifier<?>... o)
Unionpublic Expression<T> as(String alias)
Unionpublic Expression<T> as(Path<T> alias)
Union@Nullable public <R,C> R accept(Visitor<R,C> v, @Nullable C context)
accept in interface Expression<T>public Class<? extends T> getType()
getType in interface Expression<T>public QueryMetadata getMetadata()
getMetadata in interface SubQueryExpression<T>Copyright © 2007–2015 Mysema Ltd. All rights reserved.