public final class Expressions extends Object
Modifier and Type | Method and Description |
---|---|
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,
Object... args) |
static CaseBuilder |
cases() |
static <T extends Comparable<?>> |
comparableOperation(Class<T> type,
Operator<? super T> operator,
Expression<?>... args) |
static <T extends Comparable<?>> |
comparablePath(Class<T> type,
Path<?> parent,
String property) |
static <T extends Comparable<?>> |
comparablePath(Class<T> type,
String variable) |
static <T extends Comparable<?>> |
comparableTemplate(Class<T> cl,
String template,
Object... 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<?>> |
dateOperation(Class<T> type,
Operator<? super T> operator,
Expression<?>... args) |
static <T extends Comparable<?>> |
datePath(Class<T> type,
Path<?> parent,
String property) |
static <T extends Comparable<?>> |
datePath(Class<T> type,
String variable) |
static <T extends Comparable<?>> |
dateTimeOperation(Class<T> type,
Operator<? super T> operator,
Expression<?>... args) |
static <T extends Comparable<?>> |
dateTimePath(Class<T> type,
Path<?> parent,
String property) |
static <T extends Comparable<?>> |
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,
Object... args) |
static <T> SimpleExpression<T> |
list(Class<T> clazz,
SimpleExpression<?>... exprs) |
static SimpleExpression<Tuple> |
list(SimpleExpression<?>... exprs) |
static <T extends Number & Comparable<?>> |
numberOperation(Class<T> type,
Operator<? super T> operator,
Expression<?>... args) |
static <T extends Number & Comparable<?>> |
numberPath(Class<T> type,
Path<?> parent,
String property) |
static <T extends Number & Comparable<?>> |
numberPath(Class<T> type,
String variable) |
static <T extends Number & Comparable<?>> |
numberTemplate(Class<T> cl,
String template,
Object... 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,
Object... args) |
static <T> ExtendedSubQueryExpression<T> |
subQuery(Class<T> type,
QueryMetadata metadata) |
static <T> SimpleExpression<T> |
template(Class<T> cl,
String template,
Object... args) |
static <T> SimpleExpression<T> |
template(Class<T> cl,
Template template,
Object... args) |
static <T extends Comparable<?>> |
timeOperation(Class<T> type,
Operator<? super T> operator,
Expression<?>... args) |
static <T extends Comparable<?>> |
timePath(Class<T> type,
Path<?> parent,
String property) |
static <T extends Comparable<?>> |
timePath(Class<T> type,
String variable) |
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)
@Nullable public static BooleanExpression allOf(BooleanExpression... exprs)
@Nullable public static BooleanExpression anyOf(BooleanExpression... exprs)
public static <T> Expression<T> constant(T value)
public static <D> SimpleExpression<D> constantAs(D source, Path<D> alias)
public static <T> SimpleExpression<T> template(Class<T> cl, String template, Object... args)
public static <T> SimpleExpression<T> template(Class<T> cl, Template template, Object... args)
public static <T> DslExpression<T> dslTemplate(Class<T> cl, String template, Object... args)
public static <T extends Comparable<?>> ComparableExpression<T> comparableTemplate(Class<T> cl, String template, Object... args)
public static <T extends Number & Comparable<?>> NumberExpression<T> numberTemplate(Class<T> cl, String template, Object... args)
public static StringExpression stringTemplate(String template, Object... args)
public static BooleanExpression booleanTemplate(String template, Object... args)
public static <T> ExtendedSubQueryExpression<T> subQuery(Class<T> type, QueryMetadata metadata)
public static BooleanExpression predicate(Operator<Boolean> operation, Expression<?>... args)
public static <T> SimpleExpression<T> operation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static <T> DslExpression<T> dslOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static BooleanExpression booleanOperation(Operator<Boolean> operation, Expression<?>... args)
public static <T extends Comparable<?>> ComparableExpression<T> comparableOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static <T extends Comparable<?>> DateExpression<T> dateOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static <T extends Comparable<?>> DateTimeExpression<T> dateTimeOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static <T extends Comparable<?>> TimeExpression<T> timeOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static <T extends Number & Comparable<?>> NumberExpression<T> numberOperation(Class<T> type, Operator<? super T> operator, Expression<?>... args)
public static StringExpression stringOperation(Operator<? super String> operator, Expression<?>... args)
public static <T> SimplePath<T> path(Class<T> type, String variable)
public static <T> SimplePath<T> path(Class<T> type, Path<?> parent, String property)
public static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<T> type, String variable)
public static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<T> type, Path<?> parent, String property)
public static <T extends Comparable<?>> DatePath<T> datePath(Class<T> type, String variable)
public static <T extends Comparable<?>> DatePath<T> datePath(Class<T> type, Path<?> parent, String property)
public static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<T> type, String variable)
public static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<T> type, Path<?> parent, String property)
public static <T extends Comparable<?>> TimePath<T> timePath(Class<T> type, String variable)
public static <T extends Comparable<?>> TimePath<T> timePath(Class<T> type, Path<?> parent, String property)
public static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<T> type, String variable)
public static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<T> type, Path<?> parent, String property)
public static StringPath stringPath(String variable)
public static StringPath stringPath(Path<?> parent, String property)
public static BooleanPath booleanPath(String variable)
public static BooleanPath booleanPath(Path<?> parent, String property)
public static CaseBuilder cases()
public static SimpleExpression<Tuple> list(SimpleExpression<?>... exprs)
public static <T> SimpleExpression<T> list(Class<T> clazz, SimpleExpression<?>... exprs)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.