public final class Expressions extends Object
Expression
creation.Modifier and Type | Field and Description |
---|---|
static BooleanExpression |
FALSE |
static NumberExpression<Integer> |
FOUR |
static NumberExpression<Integer> |
ONE |
static NumberExpression<Integer> |
THREE |
static BooleanExpression |
TRUE |
static NumberExpression<Integer> |
TWO |
static NumberExpression<Integer> |
ZERO |
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 <A,E> ArrayPath<A,E> |
arrayPath(Class<A> arrayType,
Path<?> parent,
String property)
Create a new Path expression
|
static <A,E> ArrayPath<A,E> |
arrayPath(Class<A> arrayType,
PathMetadata metadata)
Create a new Path expression
|
static <A,E> ArrayPath<A,E> |
arrayPath(Class<A> arrayType,
String variable)
Create a new Path expression
|
static <D> SimpleExpression<D> |
as(Expression<D> source,
Path<D> alias)
Create a
source as alias expression |
static <D> SimpleExpression<D> |
as(Expression<D> source,
String alias)
Create a
source as alias expression |
static BooleanExpression |
asBoolean(boolean value)
Create a new BooleanExpression
|
static BooleanExpression |
asBoolean(Expression<Boolean> expr)
Create a new BooleanExpression
|
static <T extends Comparable<?>> |
asComparable(Expression<T> expr)
Create a new ComparableExpression
|
static <T extends Comparable<?>> |
asComparable(T value)
Create a new ComparableExpression
|
static <T extends Comparable<?>> |
asDate(Expression<T> expr)
Create a new DateExpression
|
static <T extends Comparable<?>> |
asDate(T value)
Create a new DateExpression
|
static <T extends Comparable<?>> |
asDateTime(Expression<T> expr)
Create a new DateTimeExpression
|
static <T extends Comparable<?>> |
asDateTime(T value)
Create a new DateTimeExpression
|
static <T extends Enum<T>> |
asEnum(Expression<T> expr)
Create a new EnumExpression
|
static <T extends Enum<T>> |
asEnum(T value)
Create a new EnumExpression
|
static <T extends Number & Comparable<?>> |
asNumber(Expression<T> expr)
Create a new NumberExpression
|
static <T extends Number & Comparable<?>> |
asNumber(T value)
Create a new NumberExpression
|
static <T> SimpleExpression<T> |
asSimple(Expression<T> expr)
Create a new SimpleExpression
|
static <T> SimpleExpression<T> |
asSimple(T value)
Create a new SimpleExpression
|
static StringExpression |
asString(Expression<String> expr)
Create a new StringExpression
|
static StringExpression |
asString(String value)
Create a new StringExpression
|
static <T extends Comparable<?>> |
asTime(Expression<T> expr)
Create a new TimeExpression
|
static <T extends Comparable<?>> |
asTime(T value)
Create a new TimeExpression
|
static BooleanOperation |
booleanOperation(Operator operator,
Expression<?>... args)
Create a new Boolean operation
|
static BooleanPath |
booleanPath(Path<?> parent,
String property)
Create a new Path expression
|
static BooleanPath |
booleanPath(PathMetadata metadata)
Create a new Path expression
|
static BooleanPath |
booleanPath(String variable)
Create a new Path expression
|
static BooleanTemplate |
booleanTemplate(String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
booleanTemplate(String, List) instead. |
static BooleanTemplate |
booleanTemplate(String template,
List<?> args)
Create a new Template expression
|
static BooleanTemplate |
booleanTemplate(String template,
Object... args)
Create a new Template expression
|
static BooleanTemplate |
booleanTemplate(Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
booleanTemplate(Template, List) instead. |
static BooleanTemplate |
booleanTemplate(Template template,
List<?> args)
Create a new Template expression
|
static BooleanTemplate |
booleanTemplate(Template template,
Object... args)
Create a new Template expression
|
static CaseBuilder |
cases()
Create a builder for a case expression
|
static <T> CollectionExpression<Collection<T>,T> |
collectionOperation(Class<T> elementType,
Operator operator,
Expression<?>... args)
Create a new Collection operation expression
|
static <E,Q extends SimpleExpression<? super E>> |
collectionPath(Class<E> type,
Class<Q> queryType,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparableEntityPath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparableEntityPath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparableEntityPath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparableOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T extends Comparable<?>> |
comparablePath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparablePath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparablePath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Comparable<?>> |
comparableTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
comparableTemplate(Class, String, List) instead. |
static <T extends Comparable<?>> |
comparableTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
comparableTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T extends Comparable<?>> |
comparableTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
comparableTemplate(Class, Template, List) instead. |
static <T extends Comparable<?>> |
comparableTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
comparableTemplate(Class<? extends T> cl,
Template 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)
Create a
source as alias expression |
static DateExpression<Date> |
currentDate()
Create an expression representing the current date as a DateExpression instance
|
static TimeExpression<Time> |
currentTime()
Create an expression representing the current time as a TimeExpression instance
|
static DateTimeExpression<Date> |
currentTimestamp()
Create an expression representing the current time instant as a DateTimeExpression instance
|
static <T extends Comparable<?>> |
dateOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T extends Comparable<?>> |
datePath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Comparable<?>> |
datePath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Comparable<?>> |
datePath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Comparable<?>> |
dateTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
dateTemplate(Class, String, List) instead. |
static <T extends Comparable<?>> |
dateTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
dateTemplate(Class, Template, List) instead. |
static <T extends Comparable<?>> |
dateTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTimeOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T extends Comparable<?>> |
dateTimePath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Comparable<?>> |
dateTimePath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Comparable<?>> |
dateTimePath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Comparable<?>> |
dateTimeTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
dateTimeTemplate(Class, String, List) instead. |
static <T extends Comparable<?>> |
dateTimeTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTimeTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTimeTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
dateTimeTemplate(Class, Template, List) instead. |
static <T extends Comparable<?>> |
dateTimeTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
dateTimeTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static <T> DslOperation<T> |
dslOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T> DslPath<T> |
dslPath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T> DslPath<T> |
dslPath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T> DslPath<T> |
dslPath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T> DslTemplate<T> |
dslTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
dslTemplate(Class, String, List) instead. |
static <T> DslTemplate<T> |
dslTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T> DslTemplate<T> |
dslTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T> DslTemplate<T> |
dslTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
dslTemplate(Class, Template, List) instead. |
static <T> DslTemplate<T> |
dslTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T> DslTemplate<T> |
dslTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static <T extends Enum<T>> |
enumOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Enum operation expression
|
static <T extends Enum<T>> |
enumPath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Enum<T>> |
enumPath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Enum<T>> |
enumPath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Enum<T>> |
enumTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
enumTemplate(Class, String, List) instead. |
static <T extends Enum<T>> |
enumTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T extends Enum<T>> |
enumTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T extends Enum<T>> |
enumTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
enumTemplate(Class, Template, List) instead. |
static <T extends Enum<T>> |
enumTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T extends Enum<T>> |
enumTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static <T> Expression<T> |
list(Class<T> clazz,
Expression<?>... exprs)
Combine the given expressions into a list expression
|
static <T> SimpleExpression<T> |
list(Class<T> clazz,
SimpleExpression<?>... exprs)
Combine the given expressions into a list expression
|
static Expression<Tuple> |
list(Expression<?>... exprs)
Combine the given expressions into a list expression
|
static SimpleExpression<Tuple> |
list(SimpleExpression<?>... exprs)
Combine the given expressions into a list expression
|
static <E,Q extends SimpleExpression<? super E>> |
listPath(Class<E> type,
Class<Q> queryType,
PathMetadata metadata)
Create a new Path expression
|
static <K,V,E extends SimpleExpression<? super V>> |
mapPath(Class<? super K> keyType,
Class<? super V> valueType,
Class<E> queryType,
PathMetadata metadata)
Create a new Path expression
|
static <T> NullExpression<T> |
nullExpression()
Create a null expression for the specified type
|
static <T> NullExpression<T> |
nullExpression(Class<T> type)
Create a null expression for the specified type
|
static <T> NullExpression<T> |
nullExpression(Path<T> path)
Create a null expression for the specified path
|
static <T extends Number & Comparable<?>> |
numberOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T extends Number & Comparable<?>> |
numberPath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Number & Comparable<?>> |
numberPath(Class<? extends T> type,
PathMetadata metadata)
Create new Path expression
|
static <T extends Number & Comparable<?>> |
numberPath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Number & Comparable<?>> |
numberTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
numberTemplate(Class, String, List) instead. |
static <T extends Number & Comparable<?>> |
numberTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T extends Number & Comparable<?>> |
numberTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T extends Number & Comparable<?>> |
numberTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
numberTemplate(Class, Template, List) instead. |
static <T extends Number & Comparable<?>> |
numberTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T extends Number & Comparable<?>> |
numberTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static <T> SimpleOperation<T> |
operation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T> SimplePath<T> |
path(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T> SimplePath<T> |
path(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T> SimplePath<T> |
path(Class<? extends T> type,
String variable)
Create a new Path expression
|
static BooleanOperation |
predicate(Operator operator,
Expression<?>... args)
Create a new Predicate operation
|
static <T> Expression<T> |
set(Class<T> clazz,
Expression<?>... exprs)
Combine the given expressions into a set expression
|
static <T> SimpleExpression<T> |
set(Class<T> clazz,
SimpleExpression<?>... exprs)
Combine the given expressions into a set expression
|
static Expression<Tuple> |
set(Expression<?>... exprs)
Combine the given expressions into a set expression
|
static <E,Q extends SimpleExpression<? super E>> |
setPath(Class<E> type,
Class<Q> queryType,
PathMetadata metadata)
Create a new Path expression
|
static <T> SimpleOperation<T> |
simpleOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T> SimplePath<T> |
simplePath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T> SimplePath<T> |
simplePath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T> SimplePath<T> |
simplePath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T> SimpleTemplate<T> |
simpleTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
simpleTemplate(Class, String, List) instead. |
static <T> SimpleTemplate<T> |
simpleTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
simpleTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
simpleTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
simpleTemplate(Class, Template, List) instead. |
static <T> SimpleTemplate<T> |
simpleTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
simpleTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static StringOperation |
stringOperation(Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static StringPath |
stringPath(Path<?> parent,
String property)
Create a new Path expression
|
static StringPath |
stringPath(PathMetadata metadata)
Create a new Path expression
|
static StringPath |
stringPath(String variable)
Create a new Path expression
|
static StringTemplate |
stringTemplate(String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
stringTemplate(String, List) instead. |
static StringTemplate |
stringTemplate(String template,
List<?> args)
Create a new Template expression
|
static StringTemplate |
stringTemplate(String template,
Object... args)
Create a new Template expression
|
static StringTemplate |
stringTemplate(Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
stringTemplate(Template, List) instead. |
static StringTemplate |
stringTemplate(Template template,
List<?> args)
Create a new Template expression
|
static StringTemplate |
stringTemplate(Template template,
Object... args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
template(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
template(Class, String, List) instead. |
static <T> SimpleTemplate<T> |
template(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
template(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
template(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
template(Class, String, List) instead. |
static <T> SimpleTemplate<T> |
template(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T> SimpleTemplate<T> |
template(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
static <T extends Comparable<?>> |
timeOperation(Class<? extends T> type,
Operator operator,
Expression<?>... args)
Create a new Operation expression
|
static <T extends Comparable<?>> |
timePath(Class<? extends T> type,
Path<?> parent,
String property)
Create a new Path expression
|
static <T extends Comparable<?>> |
timePath(Class<? extends T> type,
PathMetadata metadata)
Create a new Path expression
|
static <T extends Comparable<?>> |
timePath(Class<? extends T> type,
String variable)
Create a new Path expression
|
static <T extends Comparable<?>> |
timeTemplate(Class<? extends T> cl,
String template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
timeTemplate(Class, String, List) instead. |
static <T extends Comparable<?>> |
timeTemplate(Class<? extends T> cl,
String template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
timeTemplate(Class<? extends T> cl,
String template,
Object... args)
Create a new Template expression
|
static <T extends Comparable<?>> |
timeTemplate(Class<? extends T> cl,
Template template,
com.google.common.collect.ImmutableList<?> args)
Deprecated.
Use
timeTemplate(Class, Template, List) instead. |
static <T extends Comparable<?>> |
timeTemplate(Class<? extends T> cl,
Template template,
List<?> args)
Create a new Template expression
|
static <T extends Comparable<?>> |
timeTemplate(Class<? extends T> cl,
Template template,
Object... args)
Create a new Template expression
|
public static final NumberExpression<Integer> ONE
public static final NumberExpression<Integer> TWO
public static final NumberExpression<Integer> THREE
public static final NumberExpression<Integer> FOUR
public static final NumberExpression<Integer> ZERO
public static final BooleanExpression TRUE
public static final BooleanExpression FALSE
public static <D> SimpleExpression<D> as(Expression<D> source, Path<D> alias)
source as alias
expressionD
- source
- sourcealias
- aliaspublic 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 as alias
expressionsource
- sourcealias
- aliaspublic static BooleanExpression allOf(BooleanExpression... exprs)
exprs
- predicatespublic static BooleanExpression anyOf(BooleanExpression... exprs)
exprs
- predicatespublic static <T> Expression<T> constant(T value)
value
- constantpublic static <D> SimpleExpression<D> constantAs(D source, Path<D> alias)
source as alias
expressionsource
- sourcealias
- aliaspublic static <T> SimpleTemplate<T> template(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T> SimpleTemplate<T> template(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
template(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> template(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> template(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T> SimpleTemplate<T> template(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
template(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> template(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> simpleTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T> SimpleTemplate<T> simpleTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
simpleTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> simpleTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> simpleTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T> SimpleTemplate<T> simpleTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
simpleTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> SimpleTemplate<T> simpleTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> DslTemplate<T> dslTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T> DslTemplate<T> dslTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
dslTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> DslTemplate<T> dslTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> DslTemplate<T> dslTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T> DslTemplate<T> dslTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
dslTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T> DslTemplate<T> dslTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> ComparableTemplate<T> comparableTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> ComparableTemplate<T> comparableTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
comparableTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> ComparableTemplate<T> comparableTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> ComparableTemplate<T> comparableTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> ComparableTemplate<T> comparableTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
comparableTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> ComparableTemplate<T> comparableTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
dateTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
dateTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
dateTimeTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
dateTimeTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
timeTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
timeTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Comparable<?>> TimeTemplate<T> timeTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
enumTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
enumTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Number & Comparable<?>> NumberTemplate<T> numberTemplate(Class<? extends T> cl, String template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Number & Comparable<?>> NumberTemplate<T> numberTemplate(Class<? extends T> cl, String template, com.google.common.collect.ImmutableList<?> args)
numberTemplate(Class, String, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Number & Comparable<?>> NumberTemplate<T> numberTemplate(Class<? extends T> cl, String template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Number & Comparable<?>> NumberTemplate<T> numberTemplate(Class<? extends T> cl, Template template, Object... args)
cl
- type of expressiontemplate
- templateargs
- template parameters@Deprecated public static <T extends Number & Comparable<?>> NumberTemplate<T> numberTemplate(Class<? extends T> cl, Template template, com.google.common.collect.ImmutableList<?> args)
numberTemplate(Class, Template, List)
instead.cl
- type of expressiontemplate
- templateargs
- template parameterspublic static <T extends Number & Comparable<?>> NumberTemplate<T> numberTemplate(Class<? extends T> cl, Template template, List<?> args)
cl
- type of expressiontemplate
- templateargs
- template parameterspublic static StringTemplate stringTemplate(String template, Object... args)
template
- templateargs
- template parameters@Deprecated public static StringTemplate stringTemplate(String template, com.google.common.collect.ImmutableList<?> args)
stringTemplate(String, List)
instead.template
- templateargs
- template parameterspublic static StringTemplate stringTemplate(String template, List<?> args)
template
- templateargs
- template parameterspublic static StringTemplate stringTemplate(Template template, Object... args)
template
- templateargs
- template parameters@Deprecated public static StringTemplate stringTemplate(Template template, com.google.common.collect.ImmutableList<?> args)
stringTemplate(Template, List)
instead.template
- templateargs
- template parameterspublic static StringTemplate stringTemplate(Template template, List<?> args)
template
- templateargs
- template parameterspublic static BooleanTemplate booleanTemplate(String template, Object... args)
template
- templateargs
- template parameters@Deprecated public static BooleanTemplate booleanTemplate(String template, com.google.common.collect.ImmutableList<?> args)
booleanTemplate(String, List)
instead.template
- templateargs
- template parameterspublic static BooleanTemplate booleanTemplate(String template, List<?> args)
template
- templateargs
- template parameterspublic static BooleanTemplate booleanTemplate(Template template, Object... args)
template
- templateargs
- template parameters@Deprecated public static BooleanTemplate booleanTemplate(Template template, com.google.common.collect.ImmutableList<?> args)
booleanTemplate(Template, List)
instead.template
- templateargs
- template parameterspublic static BooleanTemplate booleanTemplate(Template template, List<?> args)
template
- templateargs
- template parameterspublic static BooleanOperation predicate(Operator operator, Expression<?>... args)
operator
- operatorargs
- operation argumentspublic static <T> SimpleOperation<T> operation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T> SimpleOperation<T> simpleOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T> DslOperation<T> dslOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static BooleanOperation booleanOperation(Operator operator, Expression<?>... args)
operator
- operatorargs
- operation argumentspublic static <T extends Comparable<?>> ComparableOperation<T> comparableOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T extends Comparable<?>> DateOperation<T> dateOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T extends Comparable<?>> DateTimeOperation<T> dateTimeOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T extends Comparable<?>> TimeOperation<T> timeOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T extends Number & Comparable<?>> NumberOperation<T> numberOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
type
- type of expressionoperator
- operatorargs
- operation argumentspublic static StringOperation stringOperation(Operator operator, Expression<?>... args)
operator
- operatorargs
- operation argumentspublic static <T> SimplePath<T> path(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T> SimplePath<T> path(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T> SimplePath<T> path(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T> SimplePath<T> simplePath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T> SimplePath<T> simplePath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T> SimplePath<T> simplePath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T> DslPath<T> dslPath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T> DslPath<T> dslPath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T> DslPath<T> dslPath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property pathpublic static <T extends Comparable<?>> ComparablePath<T> comparablePath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T extends Comparable<?>> ComparableEntityPath<T> comparableEntityPath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Comparable<?>> ComparableEntityPath<T> comparableEntityPath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T extends Comparable<?>> ComparableEntityPath<T> comparableEntityPath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T extends Comparable<?>> DatePath<T> datePath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Comparable<?>> DatePath<T> datePath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T extends Comparable<?>> DatePath<T> datePath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T extends Comparable<?>> DateTimePath<T> dateTimePath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T extends Comparable<?>> TimePath<T> timePath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Comparable<?>> TimePath<T> timePath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T extends Comparable<?>> TimePath<T> timePath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T extends Number & Comparable<?>> NumberPath<T> numberPath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static StringPath stringPath(String variable)
variable
- variable namepublic static StringPath stringPath(Path<?> parent, String property)
parent
- parent pathproperty
- property namepublic static StringPath stringPath(PathMetadata metadata)
metadata
- path metadatapublic static BooleanPath booleanPath(String variable)
variable
- variable namepublic static BooleanPath booleanPath(Path<?> parent, String property)
parent
- parent pathproperty
- property namepublic static BooleanPath booleanPath(PathMetadata metadata)
metadata
- path metadatapublic static CaseBuilder cases()
public static SimpleExpression<Tuple> list(SimpleExpression<?>... exprs)
exprs
- list elementspublic static <T> SimpleExpression<T> list(Class<T> clazz, SimpleExpression<?>... exprs)
clazz
- type of list expressionexprs
- list elementspublic static <T> Expression<T> list(Class<T> clazz, Expression<?>... exprs)
clazz
- type of list expressionexprs
- list elementspublic static <T> SimpleExpression<T> set(Class<T> clazz, SimpleExpression<?>... exprs)
clazz
- type of list expressionexprs
- list elementspublic static <T> Expression<T> set(Class<T> clazz, Expression<?>... exprs)
clazz
- type of list expressionexprs
- list elementspublic static Expression<Tuple> list(Expression<?>... exprs)
exprs
- list elementspublic static Expression<Tuple> set(Expression<?>... exprs)
exprs
- list elementspublic static <T> NullExpression<T> nullExpression()
public static <T> NullExpression<T> nullExpression(Class<T> type)
T
- type of expressiontype
- type of expressionpublic static <T> NullExpression<T> nullExpression(Path<T> path)
T
- type of expressionpath
- path for type castpublic static <T extends Enum<T>> EnumOperation<T> enumOperation(Class<? extends T> type, Operator operator, Expression<?>... args)
T
- type of expressiontype
- type of expressionoperator
- operatorargs
- operation argumentspublic static <T extends Enum<T>> EnumPath<T> enumPath(Class<? extends T> type, String variable)
type
- type of expressionvariable
- variable namepublic static <T extends Enum<T>> EnumPath<T> enumPath(Class<? extends T> type, Path<?> parent, String property)
type
- type of expressionparent
- parent pathproperty
- property namepublic static <T extends Enum<T>> EnumPath<T> enumPath(Class<? extends T> type, PathMetadata metadata)
T
- type of expressiontype
- type of expressionmetadata
- path metadatapublic static <T> CollectionExpression<Collection<T>,T> collectionOperation(Class<T> elementType, Operator operator, Expression<?>... args)
T
- type of expressionelementType
- element typeoperator
- operatorargs
- operation argumentspublic static <E,Q extends SimpleExpression<? super E>> CollectionPath<E,Q> collectionPath(Class<E> type, Class<Q> queryType, PathMetadata metadata)
E
- element typeQ
- element expression typetype
- element typequeryType
- element expression typemetadata
- path metadatapublic static <E,Q extends SimpleExpression<? super E>> ListPath<E,Q> listPath(Class<E> type, Class<Q> queryType, PathMetadata metadata)
E
- element typeQ
- element expression typetype
- element typequeryType
- element expression typemetadata
- path metadatapublic static <E,Q extends SimpleExpression<? super E>> SetPath<E,Q> setPath(Class<E> type, Class<Q> queryType, PathMetadata metadata)
E
- element typeQ
- element expression typetype
- element typequeryType
- element expression typemetadata
- path metadatapublic static <K,V,E extends SimpleExpression<? super V>> MapPath<K,V,E> mapPath(Class<? super K> keyType, Class<? super V> valueType, Class<E> queryType, PathMetadata metadata)
K
- key typeV
- value typeE
- value expression typekeyType
- key typevalueType
- value typequeryType
- value expression typemetadata
- path metadatapublic static <A,E> ArrayPath<A,E> arrayPath(Class<A> arrayType, String variable)
A
- array typeE
- element typearrayType
- array typevariable
- variable namepublic static <A,E> ArrayPath<A,E> arrayPath(Class<A> arrayType, Path<?> parent, String property)
A
- array typeE
- element typearrayType
- array typeparent
- path metadataproperty
- property namepublic static <A,E> ArrayPath<A,E> arrayPath(Class<A> arrayType, PathMetadata metadata)
A
- array typeE
- element typearrayType
- array typemetadata
- path metadatapublic static BooleanExpression asBoolean(Expression<Boolean> expr)
expr
- Expression of type Booleanpublic static BooleanExpression asBoolean(boolean value)
value
- booleanpublic static <T extends Comparable<?>> ComparableExpression<T> asComparable(Expression<T> expr)
expr
- Expression of type Comparablepublic static <T extends Comparable<?>> ComparableExpression<T> asComparable(T value)
value
- Comparablepublic static <T extends Comparable<?>> DateExpression<T> asDate(Expression<T> expr)
expr
- the date Expressionpublic static <T extends Comparable<?>> DateExpression<T> asDate(T value)
value
- the datepublic static <T extends Comparable<?>> DateTimeExpression<T> asDateTime(Expression<T> expr)
expr
- the date time Expressionpublic static <T extends Comparable<?>> DateTimeExpression<T> asDateTime(T value)
value
- the date timepublic static <T extends Comparable<?>> TimeExpression<T> asTime(Expression<T> expr)
expr
- the time Expressionpublic static <T extends Comparable<?>> TimeExpression<T> asTime(T value)
value
- the timepublic static <T extends Enum<T>> EnumExpression<T> asEnum(Expression<T> expr)
expr
- Expression of type Enumpublic static <T extends Enum<T>> EnumExpression<T> asEnum(T value)
value
- enumpublic static <T extends Number & Comparable<?>> NumberExpression<T> asNumber(Expression<T> expr)
expr
- Expression of type Numberpublic static <T extends Number & Comparable<?>> NumberExpression<T> asNumber(T value)
value
- Numberpublic static StringExpression asString(Expression<String> expr)
expr
- Expression of type Stringpublic static StringExpression asString(String value)
value
- Stringpublic static <T> SimpleExpression<T> asSimple(Expression<T> expr)
expr
- expressionpublic static <T> SimpleExpression<T> asSimple(T value)
value
- constantCopyright © 2007–2016 Querydsl. All rights reserved.