public final class Expressions extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static BooleanExpression | allOf(BooleanExpression... exprs)Get the intersection of the given Boolean expressions | 
| static BooleanExpression | anyOf(BooleanExpression... exprs)Get the union of the given Boolean expressions | 
| static <D> SimpleExpression<D> | as(Expression<D> source,
  Path<D> alias) | 
| static <D> SimpleExpression<D> | as(Expression<D> source,
  String alias)Create the alias expression source as alias | 
| static BooleanExpression | booleanOperation(Operator<Boolean> operation,
                Expression<?>... args)Create a new Boolean operation | 
| static BooleanPath | booleanPath(Path<?> parent,
           String property)Create a new Path expression | 
| static BooleanPath | booleanPath(String variable)Create a new Path expression | 
| static BooleanExpression | booleanTemplate(String template,
               Object... args)Create a new Template expression | 
| static CaseBuilder | cases()Get a builder for a case expression | 
| static <T extends Comparable<?>> | comparableOperation(Class<T> type,
                   Operator<? super T> operator,
                   Expression<?>... args)Create a new Operation expression | 
| static <T extends Comparable<?>> | comparablePath(Class<T> type,
              Path<?> parent,
              String property)Create a new Path expression | 
| static <T extends Comparable<?>> | comparablePath(Class<T> type,
              String variable)Create a new Path expression | 
| static <T extends Comparable<?>> | comparableTemplate(Class<T> cl,
                  String template,
                  Object... args)Create a new Template expression | 
| static <T> Expression<T> | constant(T value)Create a Constant expression for the given value | 
| static <D> SimpleExpression<D> | constantAs(D source,
          Path<D> alias)Get the alias expression source as alias | 
| static DateExpression<Date> | currentDate()Get an expression representing the current date as a DateExpression instance | 
| static TimeExpression<Time> | currentTime()Get an expression representing the current time as a TimeExpression instance | 
| static DateTimeExpression<Date> | currentTimestamp()Get an expression representing the current time instant as a DateTimeExpression instance | 
| static <T extends Comparable<?>> | dateOperation(Class<T> type,
             Operator<? super T> operator,
             Expression<?>... args)Create a new Operation expression | 
| static <T extends Comparable<?>> | datePath(Class<T> type,
        Path<?> parent,
        String property)Create a new Path expression | 
| static <T extends Comparable<?>> | datePath(Class<T> type,
        String variable)Create a new Path expression | 
| static <T extends Comparable<?>> | dateTimeOperation(Class<T> type,
                 Operator<? super T> operator,
                 Expression<?>... args)Create a new Operation expression | 
| static <T extends Comparable<?>> | dateTimePath(Class<T> type,
            Path<?> parent,
            String property)Create a new Path expression | 
| static <T extends Comparable<?>> | dateTimePath(Class<T> type,
            String variable)Create a new Path expression | 
| static <T> DslExpression<T> | dslOperation(Class<T> type,
            Operator<? super T> operator,
            Expression<?>... args)Create a new Operation expression | 
| static <T> DslPath<T> | dslPath(Class<T> type,
       Path<?> parent,
       String property)Create a new Path expression | 
| static <T> DslPath<T> | dslPath(Class<T> type,
       String variable)Create a new Path expression | 
| static <T> DslExpression<T> | dslTemplate(Class<T> cl,
           String template,
           Object... args)Create a new Template expression | 
| static <T> SimpleExpression<T> | list(Class<T> clazz,
    SimpleExpression<?>... exprs)Combine the given expressions into a list expression | 
| static SimpleExpression<Tuple> | list(SimpleExpression<?>... exprs)Combine the given expressions into a list expression | 
| static <T extends Number & Comparable<?>> | numberOperation(Class<T> type,
               Operator<? super T> operator,
               Expression<?>... args)Create a new Operation expression | 
| static <T extends Number & Comparable<?>> | numberPath(Class<T> type,
          Path<?> parent,
          String property)Create a new Path expression | 
| static <T extends Number & Comparable<?>> | numberPath(Class<T> type,
          String variable)Create a new Path expression | 
| static <T extends Number & Comparable<?>> | numberTemplate(Class<T> cl,
              String template,
              Object... args)Create a new Template expression | 
| static <T> SimpleExpression<T> | operation(Class<T> type,
         Operator<? super T> operator,
         Expression<?>... args)Create a new Operation expression | 
| static <T> SimplePath<T> | path(Class<T> type,
    Path<?> parent,
    String property)Create a new Path expression | 
| static <T> SimplePath<T> | path(Class<T> type,
    String variable)Create a new Path expression | 
| static BooleanExpression | predicate(Operator<Boolean> operation,
         Expression<?>... args)Create a new Predicate operation | 
| static StringExpression | stringOperation(Operator<? super String> operator,
               Expression<?>... args)Create a new Operation expression | 
| static StringPath | stringPath(Path<?> parent,
          String property)Create a new Path expression | 
| static StringPath | stringPath(String variable)Create a new Path expression | 
| static StringExpression | stringTemplate(String template,
              Object... args)Create a new Template expression | 
| static <T> ExtendedSubQueryExpression<T> | subQuery(Class<T> type,
        QueryMetadata metadata)Create a new SubQuery expression | 
| static <T> SimpleExpression<T> | template(Class<T> cl,
        String template,
        Object... args)Create a new Template expression | 
| static <T> SimpleExpression<T> | template(Class<T> cl,
        Template template,
        Object... args)Create a new Template expression | 
| static <T extends Comparable<?>> | timeOperation(Class<T> type,
             Operator<? super T> operator,
             Expression<?>... args)Create a new Operation expression | 
| static <T extends Comparable<?>> | timePath(Class<T> type,
        Path<?> parent,
        String property)Create a new Path expression | 
| static <T extends Comparable<?>> | timePath(Class<T> type,
        String variable)Create a new Path expression | 
public static <D> SimpleExpression<D> as(Expression<D> source, Path<D> alias)
public static DateExpression<Date> currentDate()
public static DateTimeExpression<Date> currentTimestamp()
public static TimeExpression<Time> currentTime()
public static <D> SimpleExpression<D> as(Expression<D> source, String alias)
source - alias - @Nullable public static BooleanExpression allOf(BooleanExpression... exprs)
exprs - @Nullable public static BooleanExpression anyOf(BooleanExpression... exprs)
exprs - public static <T> Expression<T> constant(T value)
value - public static <D> SimpleExpression<D> constantAs(D source, Path<D> alias)
source - alias - public static <T> SimpleExpression<T> template(Class<T> cl, String template, Object... args)
cl - template - args - public static <T> SimpleExpression<T> template(Class<T> cl, Template template, Object... args)
cl - template - args - public static <T> DslExpression<T> dslTemplate(Class<T> cl, String template, Object... args)
cl - template - args - public static <T extends Comparable<?>> ComparableExpression<T> comparableTemplate(Class<T> cl, String template, Object... args)
cl - template - args - public static <T extends Number & Comparable<?>> NumberExpression<T> numberTemplate(Class<T> cl, String template, Object... args)
cl - template - args - public static StringExpression stringTemplate(String template, Object... args)
template - args - public static BooleanExpression booleanTemplate(String template, Object... args)
template - args - public static <T> ExtendedSubQueryExpression<T> subQuery(Class<T> type, QueryMetadata metadata)
type - metadata - public static BooleanExpression predicate(Operator<Boolean> operation, Expression<?>... args)
operation - args - public static <T> SimpleExpression<T> operation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static <T> DslExpression<T> dslOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static BooleanExpression booleanOperation(Operator<Boolean> operation, Expression<?>... args)
operation - args - public static <T extends Comparable<?>> ComparableExpression<T> comparableOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static <T extends Comparable<?>> DateExpression<T> dateOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static <T extends Comparable<?>> DateTimeExpression<T> dateTimeOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static <T extends Comparable<?>> TimeExpression<T> timeOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static <T extends Number & Comparable<?>> NumberExpression<T> numberOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
type - operator - args - public static StringExpression stringOperation(Operator<? super String> operator, Expression<?>... args)
operator - args - public static <T> SimplePath<T> path(Class<T> type, String variable)
type - variable - public static <T> SimplePath<T> path(Class<T> type, Path<?> parent, String property)
type - parent - property - public static <T> DslPath<T> dslPath(Class<T> type, String variable)
type - variable - public static <T> DslPath<T> dslPath(Class<T> type, Path<?> parent, String property)
type - parent - property - public static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<T> type, String variable)
type - variable - public static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<T> type, Path<?> parent, String property)
type - parent - property - public static <T extends Comparable<?>> DatePath<T> datePath(Class<T> type, String variable)
type - variable - public static <T extends Comparable<?>> DatePath<T> datePath(Class<T> type, Path<?> parent, String property)
type - parent - property - public static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<T> type, String variable)
type - variable - public static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<T> type, Path<?> parent, String property)
type - parent - property - public static <T extends Comparable<?>> TimePath<T> timePath(Class<T> type, String variable)
type - variable - public static <T extends Comparable<?>> TimePath<T> timePath(Class<T> type, Path<?> parent, String property)
type - parent - property - public static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<T> type, String variable)
type - variable - public static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<T> type, Path<?> parent, String property)
type - parent - property - public static StringPath stringPath(String variable)
variable - public static StringPath stringPath(Path<?> parent, String property)
parent - property - public static BooleanPath booleanPath(String variable)
variable - public static BooleanPath booleanPath(Path<?> parent, String property)
parent - property - public static CaseBuilder cases()
public static SimpleExpression<Tuple> list(SimpleExpression<?>... exprs)
exprs - public static <T> SimpleExpression<T> list(Class<T> clazz, SimpleExpression<?>... exprs)
clazz - exprs - Copyright © 2007–2015 Querydsl. All rights reserved.