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