V
- field typepublic abstract class FieldExpression<V> extends Object implements Expression<V>, Functional<V>, Aliasable<Expression<V>>, Conditional<LogicalCondition<? extends Expression<V>,?>,V>
Modifier | Constructor and Description |
---|---|
protected |
FieldExpression() |
Modifier and Type | Method and Description |
---|---|
Abs<V> |
abs() |
Expression<V> |
as(String alias)
Alias the instance with the given valid name.
|
OrderingExpression<V> |
asc() |
Avg<V> |
avg() |
LogicalCondition<? extends Expression<V>,Object> |
between(V start,
V end)
Applies the between condition
|
OrderingExpression<V> |
desc() |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
eq(Expression<V> value)
Applies the equal condition, equivalent to
Conditional.equal(Object) . |
LogicalCondition<? extends Expression<V>,V> |
eq(V value)
Applies the equal condition, equivalent to
Conditional.equal(Object) . |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
equal(Expression<V> value)
Applies the equal condition
|
LogicalCondition<? extends Expression<V>,V> |
equal(V value)
Applies the equal condition
|
boolean |
equals(Object obj) |
Function<V> |
function(String name) |
String |
getAlias() |
abstract Class<V> |
getClassType() |
abstract ExpressionType |
getExpressionType() |
abstract String |
getName() |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
greaterThan(Expression<V> value)
Applies the greater than condition
|
LogicalCondition<? extends Expression<V>,V> |
greaterThan(V value)
Applies the greater than condition
|
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
greaterThanOrEqual(Expression<V> value)
Applies the greater than or equal to condition
|
LogicalCondition<? extends Expression<V>,V> |
greaterThanOrEqual(V value)
Applies the greater than or equal to condition
|
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
gt(Expression<V> value)
Applies the greater than condition, equivalent to
Conditional.greaterThan(Object) . |
LogicalCondition<? extends Expression<V>,V> |
gt(V value)
Applies the greater than condition, equivalent to
Conditional.greaterThan(Object) . |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
gte(Expression<V> value)
Applies the greater than or equal to condition, equivalent to
Conditional.greaterThanOrEqual(Object) . |
LogicalCondition<? extends Expression<V>,V> |
gte(V value)
Applies the greater than or equal to condition, equivalent to
Conditional.greaterThanOrEqual(Object) . |
int |
hashCode() |
LogicalCondition<? extends Expression<V>,Collection<V>> |
in(Collection<V> values)
Applies the in condition, checking if the condition is applicable to the values in the given
collection.
|
LogicalCondition<? extends Expression<V>,? extends Return<?>> |
in(Return<?> query)
Applies the equal condition
|
LogicalCondition<? extends Expression<V>,V> |
isNull()
Applies the 'is null' condition
|
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
lessThan(Expression<V> value)
Applies the less than condition
|
LogicalCondition<? extends Expression<V>,V> |
lessThan(V value)
Applies the less than condition
|
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
lessThanOrEqual(Expression<V> value)
Applies the less than or equal to condition
|
LogicalCondition<? extends Expression<V>,V> |
lessThanOrEqual(V value)
Applies the less than or equal to condition
|
LogicalCondition<? extends Expression<V>,String> |
like(String expression)
Applies the equal condition
|
Lower<V> |
lower() |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
lt(Expression<V> value)
Applies the less than condition, equivalent to
Conditional.lessThan(Object) . |
LogicalCondition<? extends Expression<V>,V> |
lt(V value)
Applies the less than condition, equivalent to
Conditional.lessThan(Object) . |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
lte(Expression<V> value)
Applies the less than or equal to condition, equivalent to
Conditional.lessThanOrEqual(Object) . |
LogicalCondition<? extends Expression<V>,V> |
lte(V value)
Applies the less than or equal to condition, equivalent to
Conditional.lessThanOrEqual(Object) . |
Max<V> |
max() |
Min<V> |
min() |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
ne(Expression<V> value)
Applies the not equal condition, equivalent to
Conditional.notEqual(Object) . |
LogicalCondition<? extends Expression<V>,V> |
ne(V value)
Applies the not equal condition, equivalent to
Conditional.notEqual(Object) . |
LogicalCondition<? extends Expression<V>,? extends Expression<V>> |
notEqual(Expression<V> value)
Applies the not equal condition, maybe null, which is equivalent to
Conditional.notNull() |
LogicalCondition<? extends Expression<V>,V> |
notEqual(V value)
Applies the not equal condition, maybe null, which is equivalent to
Conditional.notNull() |
LogicalCondition<? extends Expression<V>,Collection<V>> |
notIn(Collection<V> values)
Applies the not in condition, checking if the condition is not applicable to the values in
the collection.
|
LogicalCondition<? extends Expression<V>,? extends Return<?>> |
notIn(Return<?> query)
Applies the equal condition
|
LogicalCondition<? extends Expression<V>,String> |
notLike(String expression)
Applies the not like condition
|
LogicalCondition<? extends Expression<V>,V> |
notNull()
Applies the 'not null' condition
|
Round<V> |
round() |
Round<V> |
round(int decimals) |
Substr<V> |
substr(int offset,
int length) |
Sum<V> |
sum() |
Trim<V> |
trim() |
Trim<V> |
trim(String chars) |
Upper<V> |
upper() |
public abstract String getName()
getName
in interface Expression<V>
public abstract ExpressionType getExpressionType()
getExpressionType
in interface Expression<V>
public abstract Class<V> getClassType()
getClassType
in interface Expression<V>
Class
that results when the expression is evaluatedpublic Expression<V> as(String alias)
Aliasable
as
in interface Aliasable<Expression<V>>
alias
- namepublic String getAlias()
getAlias
in interface Aliasable<Expression<V>>
public OrderingExpression<V> asc()
asc
in interface Functional<V>
public OrderingExpression<V> desc()
desc
in interface Functional<V>
public Abs<V> abs()
abs
in interface Functional<V>
public Max<V> max()
max
in interface Functional<V>
public Min<V> min()
min
in interface Functional<V>
public Avg<V> avg()
avg
in interface Functional<V>
public Sum<V> sum()
sum
in interface Functional<V>
public Round<V> round()
round
in interface Functional<V>
public Round<V> round(int decimals)
round
in interface Functional<V>
public Trim<V> trim()
trim
in interface Functional<V>
public Substr<V> substr(int offset, int length)
substr
in interface Functional<V>
public Upper<V> upper()
upper
in interface Functional<V>
public Lower<V> lower()
lower
in interface Functional<V>
public LogicalCondition<? extends Expression<V>,V> equal(V value)
Conditional
equal
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to compare, maybe null, which is equivalent to Conditional.isNull()
public LogicalCondition<? extends Expression<V>,V> notEqual(V value)
Conditional
Conditional.notNull()
notEqual
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> lessThan(V value)
Conditional
lessThan
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> greaterThan(V value)
Conditional
greaterThan
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> lessThanOrEqual(V value)
Conditional
lessThanOrEqual
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> greaterThanOrEqual(V value)
Conditional
greaterThanOrEqual
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> equal(Expression<V> value)
Conditional
equal
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to compare, maybe null, which is equivalent to Conditional.isNull()
public LogicalCondition<? extends Expression<V>,? extends Expression<V>> notEqual(Expression<V> value)
Conditional
Conditional.notNull()
notEqual
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> lessThan(Expression<V> value)
Conditional
lessThan
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> greaterThan(Expression<V> value)
Conditional
greaterThan
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> lessThanOrEqual(Expression<V> value)
Conditional
lessThanOrEqual
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> greaterThanOrEqual(Expression<V> value)
Conditional
greaterThanOrEqual
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> eq(V value)
Conditional
Conditional.equal(Object)
.eq
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> ne(V value)
Conditional
Conditional.notEqual(Object)
.ne
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> lt(V value)
Conditional
Conditional.lessThan(Object)
.lt
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> gt(V value)
Conditional
Conditional.greaterThan(Object)
.gt
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> lte(V value)
Conditional
Conditional.lessThanOrEqual(Object)
.lte
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,V> gte(V value)
Conditional
Conditional.greaterThanOrEqual(Object)
.gte
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> eq(Expression<V> value)
Conditional
Conditional.equal(Object)
.eq
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> ne(Expression<V> value)
Conditional
Conditional.notEqual(Object)
.ne
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> lt(Expression<V> value)
Conditional
Conditional.lessThan(Object)
.lt
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> gt(Expression<V> value)
Conditional
Conditional.greaterThan(Object)
.gt
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> lte(Expression<V> value)
Conditional
Conditional.lessThanOrEqual(Object)
.lte
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,? extends Expression<V>> gte(Expression<V> value)
Conditional
Conditional.greaterThanOrEqual(Object)
.gte
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
value
- to comparepublic LogicalCondition<? extends Expression<V>,Collection<V>> in(Collection<V> values)
Conditional
in
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
values
- to compare (non null)public LogicalCondition<? extends Expression<V>,Collection<V>> notIn(Collection<V> values)
Conditional
notIn
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
values
- to compare (non null)public LogicalCondition<? extends Expression<V>,? extends Return<?>> in(Return<?> query)
Conditional
in
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
query
- nested inner query (non null)public LogicalCondition<? extends Expression<V>,? extends Return<?>> notIn(Return<?> query)
Conditional
notIn
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
query
- nested inner query (non null)public LogicalCondition<? extends Expression<V>,V> isNull()
Conditional
isNull
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
public LogicalCondition<? extends Expression<V>,V> notNull()
Conditional
notNull
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
public LogicalCondition<? extends Expression<V>,String> like(String expression)
Conditional
like
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
expression
- like expressionpublic LogicalCondition<? extends Expression<V>,String> notLike(String expression)
Conditional
notLike
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
expression
- like expressionpublic LogicalCondition<? extends Expression<V>,Object> between(V start, V end)
Conditional
between
in interface Conditional<LogicalCondition<? extends Expression<V>,?>,V>
start
- starting value to compare toend
- ending value to compare to