public class ExpressionFactory extends Object
Expression,
Query.where(Expression)| Constructor and Description |
|---|
ExpressionFactory() |
| Modifier and Type | Method and Description |
|---|---|
<S extends Expression,T extends Expression> |
and(S left,
T right)
Creates a
BinaryLogicalExpression with the two provided expressions
joined in order by a logical AND operation. |
<T> BinaryComparisonExpression<T> |
equalTo(Key<T> key,
T value)
Creates a
BinaryComparisonExpression comparing the
provided key and value for equality. |
<T> BinaryComparisonExpression<T> |
greaterThan(Key<T> key,
T value)
Creates a
BinaryComparisonExpression comparing if the
provided key has a value greater than the provided value. |
<T> BinaryComparisonExpression<T> |
greaterThanOrEqualTo(Key<T> key,
T value)
Creates a
BinaryComparisonExpression comparing if the
provided key has a value greater than or equal to the provided value. |
<T> BinarySetMembershipExpression<T> |
in(Key<T> key,
Set<T> values,
Class<T> type)
Creates a
BinarySetMembershipExpression comparing if the
provided key has a value equal to any of the provided values. |
<T> BinaryComparisonExpression<T> |
lessThan(Key<T> key,
T value)
Creates a
BinaryComparisonExpression comparing if the
provided key has a value less than the provided value. |
<T> BinaryComparisonExpression<T> |
lessThanOrEqualTo(Key<T> key,
T value)
Creates a
BinaryComparisonExpression comparing if the
provided key has a value less than or equal to the provided value. |
<T extends ComparisonExpression> |
not(T expr)
Creates a
UnaryLogicalExpression which is a logical
negation of the provided expression. |
<T> BinaryComparisonExpression<T> |
notEqualTo(Key<T> key,
T value)
Creates a
BinaryComparisonExpression comparing the
provided key and value for inequality. |
<T> BinarySetMembershipExpression<T> |
notIn(Key<T> key,
Set<T> values,
Class<T> type)
Creates a
BinarySetMembershipExpression comparing if the
provided key has a value not equal to all of the provided values. |
<S extends Expression,T extends Expression> |
or(S left,
T right)
Creates a
BinaryLogicalExpression with the two provided expressions
joined in order by a logical OR operation. |
public <T> BinaryComparisonExpression<T> equalTo(Key<T> key, T value)
BinaryComparisonExpression comparing the
provided key and value for equality.key - - Key whose value to compare against the provided valuevalue - - the value to compare against the keypublic <T> BinaryComparisonExpression<T> notEqualTo(Key<T> key, T value)
BinaryComparisonExpression comparing the
provided key and value for inequality.key - - Key whose value to compare against the provided valuevalue - - the value to compare against the keypublic <T> BinaryComparisonExpression<T> greaterThan(Key<T> key, T value)
BinaryComparisonExpression comparing if the
provided key has a value greater than the provided value.key - - Key whose value to compare against the provided valuevalue - - the value to compare against the keypublic <T> BinaryComparisonExpression<T> lessThan(Key<T> key, T value)
BinaryComparisonExpression comparing if the
provided key has a value less than the provided value.key - - Key whose value to compare against the provided valuevalue - - the value to compare against the keypublic <T> BinaryComparisonExpression<T> greaterThanOrEqualTo(Key<T> key, T value)
BinaryComparisonExpression comparing if the
provided key has a value greater than or equal to the provided value.key - - Key whose value to compare against the provided valuevalue - - the value to compare against the keypublic <T> BinaryComparisonExpression<T> lessThanOrEqualTo(Key<T> key, T value)
BinaryComparisonExpression comparing if the
provided key has a value less than or equal to the provided value.key - - Key whose value to compare against the provided valuevalue - - the value to compare against the keypublic <T> BinarySetMembershipExpression<T> in(Key<T> key, Set<T> values, Class<T> type)
BinarySetMembershipExpression comparing if the
provided key has a value equal to any of the provided values.key - - Key whose value to compare against the provided valuesvalue - - a set of values to compare against the keytype - - the type of values of stored in the provided setpublic <T> BinarySetMembershipExpression<T> notIn(Key<T> key, Set<T> values, Class<T> type)
BinarySetMembershipExpression comparing if the
provided key has a value not equal to all of the provided values.key - - Key whose value to compare against the provided valuesvalue - - a set of values to compare against the keytype - - the type of values of stored in the provided setpublic <T extends ComparisonExpression> UnaryLogicalExpression<T> not(T expr)
UnaryLogicalExpression which is a logical
negation of the provided expression.expr - - the expression to negatepublic <S extends Expression,T extends Expression> BinaryLogicalExpression<S,T> and(S left, T right)
BinaryLogicalExpression with the two provided expressions
joined in order by a logical AND operation.left - - the left operandright - - the right operandpublic <S extends Expression,T extends Expression> BinaryLogicalExpression<S,T> or(S left, T right)
BinaryLogicalExpression with the two provided expressions
joined in order by a logical OR operation.left - - the left operandright - - the right operandCopyright © 2015. All rights reserved.