com.mysema.query.jpa
Class JPQLGrammar

java.lang.Object
  extended by com.mysema.query.jpa.JPQLGrammar

public final class JPQLGrammar
extends Object

JPQLGrammar provides factory methods for JPQL specific operations elements.

Author:
tiwe

Method Summary
static
<D> Expression<D>
all(CollectionExpression<?,D> col)
           
static
<D> Expression<D>
any(CollectionExpression<?,D> col)
           
static
<A extends Comparable<? super A>>
ComparableExpression<A>
avg(CollectionExpression<?,A> col)
           
static
<A extends Comparable<? super A>>
ComparableExpression<A>
max(CollectionExpression<?,A> left)
           
static
<A extends Comparable<? super A>>
ComparableExpression<A>
min(CollectionExpression<?,A> left)
           
static
<D> Expression<D>
some(CollectionExpression<?,D> col)
           
static
<D extends Number & Comparable<? super D>>
NumberExpression<?>
sum(Expression<D> left)
          SUM returns Long when applied to state-fields of integral types (other than BigInteger); Double when applied to state-fields of floating point types; BigInteger when applied to state-fields of type BigInteger; and BigDecimal when applied to state-fields of type BigDecimal.
static
<D extends Number & Comparable<? super D>>
NumberExpression<Double>
sumAsDouble(Expression<D> left)
           
static
<D extends Number & Comparable<? super D>>
NumberExpression<Long>
sumAsLong(Expression<D> left)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

all

public static <D> Expression<D> all(CollectionExpression<?,D> col)

any

public static <D> Expression<D> any(CollectionExpression<?,D> col)

avg

public static <A extends Comparable<? super A>> ComparableExpression<A> avg(CollectionExpression<?,A> col)

max

public static <A extends Comparable<? super A>> ComparableExpression<A> max(CollectionExpression<?,A> left)

min

public static <A extends Comparable<? super A>> ComparableExpression<A> min(CollectionExpression<?,A> left)

some

public static <D> Expression<D> some(CollectionExpression<?,D> col)

sum

public static <D extends Number & Comparable<? super D>> NumberExpression<?> sum(Expression<D> left)
SUM returns Long when applied to state-fields of integral types (other than BigInteger); Double when applied to state-fields of floating point types; BigInteger when applied to state-fields of type BigInteger; and BigDecimal when applied to state-fields of type BigDecimal.


sumAsLong

public static <D extends Number & Comparable<? super D>> NumberExpression<Long> sumAsLong(Expression<D> left)

sumAsDouble

public static <D extends Number & Comparable<? super D>> NumberExpression<Double> sumAsDouble(Expression<D> left)


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