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 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>
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
<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>
DateTimePath<T>
dateTimePath(Class<T> type, Path<?> parent, String property)
           
static
<T extends Comparable>
DateTimePath<T>
dateTimePath(Class<T> type, String variable)
           
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 StringPath stringPath(Path<?> parent, String property)
           
static StringPath stringPath(String variable)
           
static StringExpression stringTemplate(String template, Expression<?>... args)
           
static
<T> SimpleExpression<T>
subQuery(Class<T> type, QueryMetadata metadata)
           
static
<T> SimpleExpression<T>
template(Class<T> cl, String template, 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

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)

template

public static <T> SimpleExpression<T> template(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> SimpleExpression<T> subQuery(Class<T> type,
                                               QueryMetadata metadata)

operation

public static <T> SimpleExpression<T> operation(Class<T> type,
                                                Operator<? super T> 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)

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-2011 Mysema Ltd. All Rights Reserved.