com.mysema.query.support
Class Expressions

java.lang.Object
  extended by com.mysema.query.support.Expressions

public final class Expressions
extends Object

Expression factory class

Author:
tiwe

Method Summary
static BooleanExpression allOf(BooleanExpression... exprs)
           
static BooleanExpression anyOf(BooleanExpression... exprs)
           
static
<D> SimpleExpression<D>
as(Expression<D> source, Path<D> alias)
           
static
<D> SimpleExpression<D>
as(Expression<D> source, String alias)
           
static BooleanExpression booleanOperation(Operator<Boolean> operation, Expression<?>... args)
           
static BooleanPath booleanPath(Path<?> parent, String property)
           
static BooleanPath booleanPath(String variable)
           
static BooleanExpression booleanTemplate(String template, Expression<?>... args)
           
static CaseBuilder cases()
           
static
<T extends Comparable<?>>
ComparableExpression<T>
comparableOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T extends Comparable<?>>
ComparablePath<T>
comparablePath(Class<T> type, Path<?> parent, String property)
           
static
<T extends Comparable<?>>
ComparablePath<T>
comparablePath(Class<T> type, String variable)
           
static
<T extends Comparable<?>>
ComparableExpression<T>
comparableTemplate(Class<T> cl, String template, Expression<?>... args)
           
static
<T> Expression<T>
constant(T value)
           
static
<D> SimpleExpression<D>
constantAs(D source, Path<D> alias)
           
static DateExpression<Date> currentDate()
           
static TimeExpression<Time> currentTime()
           
static DateTimeExpression<Date> currentTimestamp()
           
static
<T extends Comparable<?>>
DateExpression<T>
dateOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T extends Comparable<?>>
DatePath<T>
datePath(Class<T> type, Path<?> parent, String property)
           
static
<T extends Comparable<?>>
DatePath<T>
datePath(Class<T> type, String variable)
           
static
<T extends Comparable<?>>
DateTimeExpression<T>
dateTimeOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T extends Comparable<?>>
DateTimePath<T>
dateTimePath(Class<T> type, Path<?> parent, String property)
           
static
<T extends Comparable<?>>
DateTimePath<T>
dateTimePath(Class<T> type, String variable)
           
static
<T> DslExpression<T>
dslOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T> DslPath<T>
dslPath(Class<T> type, Path<?> parent, String property)
           
static
<T> DslPath<T>
dslPath(Class<T> type, String variable)
           
static
<T> DslExpression<T>
dslTemplate(Class<T> cl, String template, Expression<?>... args)
           
static
<T extends Number & Comparable<?>>
NumberExpression<T>
numberOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T extends Number & Comparable<?>>
NumberPath<T>
numberPath(Class<T> type, Path<?> parent, String property)
           
static
<T extends Number & Comparable<?>>
NumberPath<T>
numberPath(Class<T> type, String variable)
           
static
<T extends Number & Comparable<?>>
NumberExpression<T>
numberTemplate(Class<T> cl, String template, Expression<?>... args)
           
static
<T> SimpleExpression<T>
operation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T> SimplePath<T>
path(Class<T> type, Path<?> parent, String property)
           
static
<T> SimplePath<T>
path(Class<T> type, String variable)
           
static BooleanExpression predicate(Operator<Boolean> operation, Expression<?>... args)
           
static StringExpression stringOperation(Operator<? super String> operator, Expression<?>... args)
           
static StringPath stringPath(Path<?> parent, String property)
           
static StringPath stringPath(String variable)
           
static StringExpression stringTemplate(String template, Expression<?>... args)
           
static
<T> ExtendedSubQueryExpression<T>
subQuery(Class<T> type, QueryMetadata metadata)
           
static
<T> SimpleExpression<T>
template(Class<T> cl, String template, Expression<?>... args)
           
static
<T extends Comparable<?>>
TimeExpression<T>
timeOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
           
static
<T extends Comparable<?>>
TimePath<T>
timePath(Class<T> type, Path<?> parent, String property)
           
static
<T extends Comparable<?>>
TimePath<T>
timePath(Class<T> type, String variable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

as

public static <D> SimpleExpression<D> as(Expression<D> source,
                                         Path<D> alias)

currentDate

public static DateExpression<Date> currentDate()

currentTimestamp

public static DateTimeExpression<Date> currentTimestamp()

currentTime

public static TimeExpression<Time> currentTime()

as

public static <D> SimpleExpression<D> as(Expression<D> source,
                                         String alias)

allOf

@Nullable
public static BooleanExpression allOf(BooleanExpression... exprs)

anyOf

@Nullable
public static BooleanExpression anyOf(BooleanExpression... exprs)

constant

public static <T> Expression<T> constant(T value)

constantAs

public static <D> SimpleExpression<D> constantAs(D source,
                                                 Path<D> alias)

template

public static <T> SimpleExpression<T> template(Class<T> cl,
                                               String template,
                                               Expression<?>... args)

dslTemplate

public static <T> DslExpression<T> dslTemplate(Class<T> cl,
                                               String template,
                                               Expression<?>... args)

comparableTemplate

public static <T extends Comparable<?>> ComparableExpression<T> comparableTemplate(Class<T> cl,
                                                                                   String template,
                                                                                   Expression<?>... args)

numberTemplate

public static <T extends Number & Comparable<?>> NumberExpression<T> numberTemplate(Class<T> cl,
                                                                                   String template,
                                                                                   Expression<?>... args)

stringTemplate

public static StringExpression stringTemplate(String template,
                                              Expression<?>... args)

booleanTemplate

public static BooleanExpression booleanTemplate(String template,
                                                Expression<?>... args)

subQuery

public static <T> ExtendedSubQueryExpression<T> subQuery(Class<T> type,
                                                         QueryMetadata metadata)

predicate

public static BooleanExpression predicate(Operator<Boolean> operation,
                                          Expression<?>... args)

operation

public static <T> SimpleExpression<T> operation(Class<T> type,
                                                Operator<? super T> operator,
                                                Expression<?>... args)

dslOperation

public static <T> DslExpression<T> dslOperation(Class<T> type,
                                                Operator<? super T> operator,
                                                Expression<?>... args)

booleanOperation

public static BooleanExpression booleanOperation(Operator<Boolean> operation,
                                                 Expression<?>... args)

comparableOperation

public static <T extends Comparable<?>> ComparableExpression<T> comparableOperation(Class<T> type,
                                                                                    Operator<? super T> operator,
                                                                                    Expression<?>... args)

dateOperation

public static <T extends Comparable<?>> DateExpression<T> dateOperation(Class<T> type,
                                                                        Operator<? super T> operator,
                                                                        Expression<?>... args)

dateTimeOperation

public static <T extends Comparable<?>> DateTimeExpression<T> dateTimeOperation(Class<T> type,
                                                                                Operator<? super T> operator,
                                                                                Expression<?>... args)

timeOperation

public static <T extends Comparable<?>> TimeExpression<T> timeOperation(Class<T> type,
                                                                        Operator<? super T> operator,
                                                                        Expression<?>... args)

numberOperation

public static <T extends Number & Comparable<?>> NumberExpression<T> numberOperation(Class<T> type,
                                                                                    Operator<? super T> operator,
                                                                                    Expression<?>... args)

stringOperation

public static StringExpression stringOperation(Operator<? super String> operator,
                                               Expression<?>... args)

path

public static <T> SimplePath<T> path(Class<T> type,
                                     String variable)

path

public static <T> SimplePath<T> path(Class<T> type,
                                     Path<?> parent,
                                     String property)

dslPath

public static <T> DslPath<T> dslPath(Class<T> type,
                                     String variable)

dslPath

public static <T> DslPath<T> dslPath(Class<T> type,
                                     Path<?> parent,
                                     String property)

comparablePath

public static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<T> type,
                                                                         String variable)

comparablePath

public static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<T> type,
                                                                         Path<?> parent,
                                                                         String property)

datePath

public static <T extends Comparable<?>> DatePath<T> datePath(Class<T> type,
                                                             String variable)

datePath

public static <T extends Comparable<?>> DatePath<T> datePath(Class<T> type,
                                                             Path<?> parent,
                                                             String property)

dateTimePath

public static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<T> type,
                                                                     String variable)

dateTimePath

public static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<T> type,
                                                                     Path<?> parent,
                                                                     String property)

timePath

public static <T extends Comparable<?>> TimePath<T> timePath(Class<T> type,
                                                             String variable)

timePath

public static <T extends Comparable<?>> TimePath<T> timePath(Class<T> type,
                                                             Path<?> parent,
                                                             String property)

numberPath

public static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<T> type,
                                                                         String variable)

numberPath

public static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<T> type,
                                                                         Path<?> parent,
                                                                         String property)

stringPath

public static StringPath stringPath(String variable)

stringPath

public static StringPath stringPath(Path<?> parent,
                                    String property)

booleanPath

public static BooleanPath booleanPath(String variable)

booleanPath

public static BooleanPath booleanPath(Path<?> parent,
                                      String property)

cases

public static CaseBuilder cases()


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