Interface Union<RT>

Type Parameters:
RT - return type of projection
All Superinterfaces:
Expression<RT>, Fetchable<RT>, Serializable, SubQueryExpression<RT>
All Known Implementing Classes:
UnionImpl

public interface Union<RT> extends SubQueryExpression<RT>, Fetchable<RT>
Union defines an interface for Union queries
Author:
tiwe
  • Method Details

    • list

      Deprecated.
      Get the projection as a typed List
    • iterate

      com.mysema.commons.lang.CloseableIterator<RT> iterate()
      Get the projection as a typed Iterator
      Specified by:
      iterate in interface Fetchable<RT>
      Returns:
      result iterator
    • groupBy

      Union<RT> groupBy(Expression<?>... o)
      Defines the grouping/aggregation expressions
      Parameters:
      o - group by
      Returns:
      the current object
    • having

      Union<RT> having(Predicate... o)
      Defines the filters for aggregation
      Parameters:
      o - having conditions
      Returns:
      the current object
    • orderBy

      Union<RT> orderBy(OrderSpecifier<?>... o)
      Define the ordering of the query results
      Parameters:
      o - order
      Returns:
      the current object
    • as

      Expression<RT> as(String alias)
      Create an alias for the expression
      Parameters:
      alias - alias
      Returns:
      this as alias
    • as

      Expression<RT> as(Path<RT> alias)
      Create an alias for the expression
      Parameters:
      alias - alias
      Returns:
      this as alias