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
<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 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)
           
static StringExpression type(EntityPath<?> path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

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)

type

public static StringExpression type(EntityPath<?> path)


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