com.mysema.query.sql
Class UnionImpl<Q extends Query & Projectable,RT>

java.lang.Object
  extended by com.mysema.query.sql.UnionImpl<Q,RT>
Type Parameters:
Q -
RT -
All Implemented Interfaces:
Union<RT>

public class UnionImpl<Q extends Query & Projectable,RT>
extends Object
implements Union<RT>

Author:
tiwe

Constructor Summary
UnionImpl(Q query, List<? extends Expression<?>> projection)
           
 
Method Summary
 com.mysema.commons.lang.CloseableIterator<RT> iterate()
          Get the projection as a typed Iterator
 List<RT> list()
          Get the projection as a typed List
 Union<RT> orderBy(OrderSpecifier<?>... o)
          Define the ordering of the query results
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnionImpl

public UnionImpl(Q query,
                 List<? extends Expression<?>> projection)
Method Detail

list

public List<RT> list()
Description copied from interface: Union
Get the projection as a typed List

Specified by:
list in interface Union<RT>
Returns:

iterate

public com.mysema.commons.lang.CloseableIterator<RT> iterate()
Description copied from interface: Union
Get the projection as a typed Iterator

Specified by:
iterate in interface Union<RT>
Returns:

orderBy

public Union<RT> orderBy(OrderSpecifier<?>... o)
Description copied from interface: Union
Define the ordering of the query results

Specified by:
orderBy in interface Union<RT>
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.