T
- The field typepublic interface Field<T> extends SelectField<T>, GroupField, FieldOrRow
Note that all fields qualify as GroupField
, i.e. they can always be
used in GROUP BY
clauses
Modifier and Type | Method and Description |
---|---|
Field<T> |
abs()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
acos()
This method is part of the pre-2.0 API.
|
Field<T> |
add(Field<?> value)
An arithmetic expression to add value to this.
|
Field<T> |
add(Number value)
An arithmetic expression adding this to value.
|
Field<T> |
as(Field<?> otherField)
Create an alias for this field based on another field's name.
|
Field<T> |
as(String alias)
Create an alias for this field.
|
SortField<T> |
asc()
Create an ascending sort field from this field.
|
Field<Integer> |
ascii()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
asin()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
atan()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
atan2(Field<? extends Number> y)
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
atan2(Number y)
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
avg()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<BigDecimal> |
avgOver()
This method is part of the pre-2.0 API.
|
BetweenAndStep<T> |
between(Field<T> minValue)
Create a condition to check this field against some bounds.
|
Condition |
between(Field<T> minValue,
Field<T> maxValue)
Create a condition to check this field against some bounds.
|
BetweenAndStep<T> |
between(T minValue)
Create a condition to check this field against some bounds.
|
Condition |
between(T minValue,
T maxValue)
Create a condition to check this field against some bounds.
|
BetweenAndStep<T> |
betweenSymmetric(Field<T> minValue)
Create a condition to check this field against some bounds.
|
Condition |
betweenSymmetric(Field<T> minValue,
Field<T> maxValue)
Create a condition to check this field against some bounds.
|
BetweenAndStep<T> |
betweenSymmetric(T minValue)
Create a condition to check this field against some bounds.
|
Condition |
betweenSymmetric(T minValue,
T maxValue)
Create a condition to check this field against some bounds.
|
Field<T> |
bitAnd(Field<T> value)
The bitwise and operator.
|
Field<T> |
bitAnd(T value)
The bitwise and operator.
|
Field<Integer> |
bitLength()
This method is part of the pre-2.0 API.
|
Field<T> |
bitNand(Field<T> value)
The bitwise not and operator.
|
Field<T> |
bitNand(T value)
The bitwise not and operator.
|
Field<T> |
bitNor(Field<T> value)
The bitwise not or operator.
|
Field<T> |
bitNor(T value)
The bitwise not or operator.
|
Field<T> |
bitNot()
The bitwise not operator.
|
Field<T> |
bitOr(Field<T> value)
The bitwise or operator.
|
Field<T> |
bitOr(T value)
The bitwise or operator.
|
Field<T> |
bitXNor(Field<T> value)
The bitwise not xor operator.
|
Field<T> |
bitXNor(T value)
The bitwise not xor operator.
|
Field<T> |
bitXor(Field<T> value)
The bitwise xor operator.
|
Field<T> |
bitXor(T value)
The bitwise xor operator.
|
<Z> Field<Z> |
cast(Class<Z> type)
Cast this field to another type.
|
<Z> Field<Z> |
cast(DataType<Z> type)
Cast this field to a dialect-specific data type.
|
<Z> Field<Z> |
cast(Field<Z> field)
Cast this field to the type of another field.
|
Field<T> |
ceil()
This method is part of the pre-2.0 API.
|
Field<Integer> |
charLength()
This method is part of the pre-2.0 API.
|
Field<T> |
coalesce(Field<T> option,
Field<?>... options)
This method is part of the pre-2.0 API.
|
Field<T> |
coalesce(T option,
T... options)
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
coerce(Class<Z> type)
Coerce this field to another type.
|
<Z> Field<Z> |
coerce(DataType<Z> type)
Coerce this field to a dialect-specific data type.
|
<Z> Field<Z> |
coerce(Field<Z> field)
Coerce this field to the type of another field.
|
Condition |
compare(Comparator comparator,
Field<T> field)
Compare this field with another field using a dynamic comparator.
|
Condition |
compare(Comparator comparator,
QuantifiedSelect<? extends Record1<T>> query)
Compare this field with a quantified subselect using a dynamic
comparator.
|
Condition |
compare(Comparator comparator,
Select<? extends Record1<T>> query)
Compare this field with a subselect using a dynamic comparator.
|
Condition |
compare(Comparator comparator,
T value)
Compare this field with a value using a dynamic comparator.
|
Field<String> |
concat(Field<?>... fields)
This method is part of the pre-2.0 API.
|
Field<String> |
concat(String... values)
This method is part of the pre-2.0 API.
|
Condition |
contains(Field<T> value)
Convenience method for
like(String, char) including proper
adding of wildcards and escaping. |
Condition |
contains(T value)
Convenience method for
like(String, char) including proper
adding of wildcards and escaping. |
Field<BigDecimal> |
cos()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
cosh()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
cot()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
coth()
This method is part of the pre-2.0 API.
|
Field<Integer> |
count()
This method is part of the pre-2.0 API.
|
Field<Integer> |
countDistinct()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<Integer> |
countOver()
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
decode(Field<T> search,
Field<Z> result)
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
decode(Field<T> search,
Field<Z> result,
Field<?>... more)
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
decode(T search,
Z result)
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
decode(T search,
Z result,
Object... more)
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
deg()
This method is part of the pre-2.0 API.
|
SortField<T> |
desc()
Create a descending sort field from this field.
|
Field<T> |
div(Field<? extends Number> value)
An arithmetic expression dividing this by value.
|
Field<T> |
div(Number value)
An arithmetic expression dividing this by value.
|
Field<T> |
divide(Field<? extends Number> value)
An alias for
div(Field) . |
Field<T> |
divide(Number value)
An alias for
div(Number) . |
Condition |
endsWith(Field<T> value)
Convenience method for
like(String, char) including proper
adding of wildcards and escaping. |
Condition |
endsWith(T value)
Convenience method for
like(String, char) including proper
adding of wildcards and escaping. |
Condition |
eq(Field<T> field)
this = field . |
Condition |
eq(QuantifiedSelect<? extends Record1<T>> query)
this = [quantifier] (Select<? |
Condition |
eq(Select<? extends Record1<T>> query)
this = (Select<? |
Condition |
eq(T value)
this = value . |
Condition |
equal(Field<T> field)
this = field . |
Condition |
equal(QuantifiedSelect<? extends Record1<T>> query)
this = [quantifier] (Select<? |
Condition |
equal(Select<? extends Record1<T>> query)
this = (Select<? |
Condition |
equal(T value)
this = value . |
Condition |
equalIgnoreCase(Field<String> value)
lower(this) = lower(value) . |
Condition |
equalIgnoreCase(String value)
lower(this) = lower(value) . |
boolean |
equals(Object other)
Check whether this
QueryPart can be considered equal to
another QueryPart . |
Field<BigDecimal> |
exp()
This method is part of the pre-2.0 API.
|
Field<Integer> |
extract(DatePart datePart)
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
firstValue()
This method is part of the pre-2.0 API.
|
Field<T> |
floor()
This method is part of the pre-2.0 API.
|
Condition |
ge(Field<T> field)
this >= field . |
Condition |
ge(QuantifiedSelect<? extends Record1<T>> query)
this >= [quantifier] (Select<? |
Condition |
ge(Select<? extends Record1<T>> query)
this >= (Select<? |
Condition |
ge(T value)
this >= value . |
Binding<?,T> |
getBinding()
The field's underlying
Binding . |
String |
getComment()
The comment given to the field.
|
Converter<?,T> |
getConverter()
The field's underlying
Converter . |
DataType<T> |
getDataType()
The type of this field (might not be dialect-specific).
|
DataType<T> |
getDataType(Configuration configuration)
The dialect-specific type of this field.
|
String |
getName()
The name of the field.
|
Class<T> |
getType()
The Java type of the field.
|
Condition |
greaterOrEqual(Field<T> field)
this >= field . |
Condition |
greaterOrEqual(QuantifiedSelect<? extends Record1<T>> query)
this >= [quantifier] (Select<? |
Condition |
greaterOrEqual(Select<? extends Record1<T>> query)
this >= (Select<? |
Condition |
greaterOrEqual(T value)
this >= value . |
Condition |
greaterThan(Field<T> field)
this > field . |
Condition |
greaterThan(QuantifiedSelect<? extends Record1<T>> query)
this > [quantifier] (Select<? |
Condition |
greaterThan(Select<? extends Record1<T>> query)
this > (Select<? |
Condition |
greaterThan(T value)
this > value . |
Field<T> |
greatest(Field<?>... others)
This method is part of the pre-2.0 API.
|
Field<T> |
greatest(T... others)
This method is part of the pre-2.0 API.
|
Condition |
gt(Field<T> field)
this > field . |
Condition |
gt(QuantifiedSelect<? extends Record1<T>> query)
this > [quantifier] (Select<? |
Condition |
gt(Select<? extends Record1<T>> query)
this > (Select<? |
Condition |
gt(T value)
this > value . |
Condition |
in(Collection<?> values)
Create a condition to check this field against several values.
|
Condition |
in(Field<?>... values)
Create a condition to check this field against several values.
|
Condition |
in(Result<? extends Record1<T>> result)
Create a condition to check this field against several values from a
previous query.
|
Condition |
in(Select<? extends Record1<T>> query)
Create a condition to check this field against a subquery.
|
Condition |
in(T... values)
Create a condition to check this field against several values.
|
Condition |
isDistinctFrom(Field<T> field)
Create a condition to check if this field is
DISTINCT from
another field. |
Condition |
isDistinctFrom(T value)
Create a condition to check if this field is
DISTINCT from
another value. |
Condition |
isFalse()
Create a condition to check this field against known string literals for
false . |
Condition |
isNotDistinctFrom(Field<T> field)
Create a condition to check if this field is
NOT DISTINCT
from another field. |
Condition |
isNotDistinctFrom(T value)
Create a condition to check if this field is
NOT DISTINCT
from another value. |
Condition |
isNotNull()
Create a condition to check this field against
null . |
Condition |
isNull()
Create a condition to check this field against
null . |
Condition |
isTrue()
Create a condition to check this field against known string literals for
true . |
WindowIgnoreNullsStep<T> |
lag()
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lag(int offset)
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lag(int offset,
Field<T> defaultValue)
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lag(int offset,
T defaultValue)
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lastValue()
This method is part of the pre-2.0 API.
|
Condition |
le(Field<T> field)
this <= field . |
Condition |
le(QuantifiedSelect<? extends Record1<T>> query)
this <= [quantifier] (Select<? |
Condition |
le(Select<? extends Record1<T>> query)
this <= (Select<? |
Condition |
le(T value)
this <= value . |
WindowIgnoreNullsStep<T> |
lead()
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lead(int offset)
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lead(int offset,
Field<T> defaultValue)
This method is part of the pre-2.0 API.
|
WindowIgnoreNullsStep<T> |
lead(int offset,
T defaultValue)
This method is part of the pre-2.0 API.
|
Field<T> |
least(Field<?>... others)
This method is part of the pre-2.0 API.
|
Field<T> |
least(T... others)
This method is part of the pre-2.0 API.
|
Field<Integer> |
length()
This method is part of the pre-2.0 API.
|
Condition |
lessOrEqual(Field<T> field)
this <= field . |
Condition |
lessOrEqual(QuantifiedSelect<? extends Record1<T>> query)
this <= [quantifier] (Select<? |
Condition |
lessOrEqual(Select<? extends Record1<T>> query)
this <= (Select<? |
Condition |
lessOrEqual(T value)
this <= value . |
Condition |
lessThan(Field<T> field)
this < field . |
Condition |
lessThan(QuantifiedSelect<? extends Record1<T>> query)
this < [quantifier] (Select<? |
Condition |
lessThan(Select<? extends Record1<T>> query)
this < (Select<? |
Condition |
lessThan(T value)
this < value . |
Condition |
like(Field<String> value)
Create a condition to pattern-check this field against a value.
|
Condition |
like(Field<String> value,
char escape)
Create a condition to pattern-check this field against a value.
|
Condition |
like(String value)
Create a condition to pattern-check this field against a value.
|
Condition |
like(String value,
char escape)
Create a condition to pattern-check this field against a value.
|
Condition |
likeIgnoreCase(Field<String> field)
Create a condition to case-insensitively pattern-check this field against
a field.
|
Condition |
likeIgnoreCase(Field<String> field,
char escape)
Create a condition to case-insensitively pattern-check this field against
a field.
|
Condition |
likeIgnoreCase(String value)
Create a condition to case-insensitively pattern-check this field against
a value.
|
Condition |
likeIgnoreCase(String value,
char escape)
Create a condition to case-insensitively pattern-check this field against
a value.
|
Condition |
likeRegex(Field<String> pattern)
Create a condition to regex-pattern-check this field against a pattern.
|
Condition |
likeRegex(String pattern)
Create a condition to regex-pattern-check this field against a pattern.
|
Field<BigDecimal> |
ln()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
log(int base)
This method is part of the pre-2.0 API.
|
Field<String> |
lower()
This method is part of the pre-2.0 API.
|
Field<String> |
lpad(Field<? extends Number> length)
This method is part of the pre-2.0 API.
|
Field<String> |
lpad(Field<? extends Number> length,
Field<String> character)
This method is part of the pre-2.0 API.
|
Field<String> |
lpad(int length)
This method is part of the pre-2.0 API.
|
Field<String> |
lpad(int length,
char character)
This method is part of the pre-2.0 API.
|
Condition |
lt(Field<T> field)
this < field . |
Condition |
lt(QuantifiedSelect<? extends Record1<T>> query)
this < [quantifier] (Select<? |
Condition |
lt(Select<? extends Record1<T>> query)
this < (Select<? |
Condition |
lt(T value)
this < value . |
Field<String> |
ltrim()
This method is part of the pre-2.0 API.
|
Field<T> |
max()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<T> |
maxOver()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
median()
This method is part of the pre-2.0 API.
|
Field<T> |
min()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<T> |
minOver()
This method is part of the pre-2.0 API.
|
Field<T> |
minus(Field<?> value)
An alias for
sub(Field) . |
Field<T> |
minus(Number value)
An alias for
sub(Number) . |
Field<T> |
mod(Field<? extends Number> value)
An arithmetic expression getting the modulo of this divided by value.
|
Field<T> |
mod(Number value)
An arithmetic expression getting the modulo of this divided by value.
|
Field<T> |
modulo(Field<? extends Number> value)
An alias for
mod(Field) . |
Field<T> |
modulo(Number value)
An alias for
mod(Number) . |
Field<T> |
mul(Field<? extends Number> value)
An arithmetic expression multiplying this with value.
|
Field<T> |
mul(Number value)
An arithmetic expression multiplying this with value.
|
Field<T> |
multiply(Field<? extends Number> value)
An alias for
mul(Field) . |
Field<T> |
multiply(Number value)
An alias for
mul(Number) . |
Condition |
ne(Field<T> field)
this ! |
Condition |
ne(QuantifiedSelect<? extends Record1<T>> query)
this ! |
Condition |
ne(Select<? extends Record1<T>> query)
this ! |
Condition |
ne(T value)
this ! |
Field<T> |
neg()
Negate this field to get its negative value.
|
BetweenAndStep<T> |
notBetween(Field<T> minValue)
Create a condition to check this field against some bounds.
|
Condition |
notBetween(Field<T> minValue,
Field<T> maxValue)
Create a condition to check this field against some bounds.
|
BetweenAndStep<T> |
notBetween(T minValue)
Create a condition to check this field against some bounds.
|
Condition |
notBetween(T minValue,
T maxValue)
Create a condition to check this field against some bounds.
|
BetweenAndStep<T> |
notBetweenSymmetric(Field<T> minValue)
Create a condition to check this field against some bounds.
|
Condition |
notBetweenSymmetric(Field<T> minValue,
Field<T> maxValue)
Create a condition to check this field against some bounds.
|
BetweenAndStep<T> |
notBetweenSymmetric(T minValue)
Create a condition to check this field against some bounds.
|
Condition |
notBetweenSymmetric(T minValue,
T maxValue)
Create a condition to check this field against some bounds.
|
Condition |
notEqual(Field<T> field)
this ! |
Condition |
notEqual(QuantifiedSelect<? extends Record1<T>> query)
this ! |
Condition |
notEqual(Select<? extends Record1<T>> query)
this ! |
Condition |
notEqual(T value)
this ! |
Condition |
notEqualIgnoreCase(Field<String> value)
lower(this) ! |
Condition |
notEqualIgnoreCase(String value)
lower(this) ! |
Condition |
notIn(Collection<?> values)
Create a condition to check this field against several values.
|
Condition |
notIn(Field<?>... values)
Create a condition to check this field against several values.
|
Condition |
notIn(Result<? extends Record1<T>> result)
Create a condition to check this field against several values from a
previous query.
|
Condition |
notIn(Select<? extends Record1<T>> query)
Create a condition to check this field against a subquery.
|
Condition |
notIn(T... values)
Create a condition to check this field against several values.
|
Condition |
notLike(Field<String> field)
Create a condition to pattern-check this field against a field.
|
Condition |
notLike(Field<String> field,
char escape)
Create a condition to pattern-check this field against a field.
|
Condition |
notLike(String value)
Create a condition to pattern-check this field against a value.
|
Condition |
notLike(String value,
char escape)
Create a condition to pattern-check this field against a value.
|
Condition |
notLikeIgnoreCase(Field<String> field)
Create a condition to case-insensitively pattern-check this field against
a field.
|
Condition |
notLikeIgnoreCase(Field<String> field,
char escape)
Create a condition to case-insensitively pattern-check this field against
a field.
|
Condition |
notLikeIgnoreCase(String value)
Create a condition to case-insensitively pattern-check this field against
a value.
|
Condition |
notLikeIgnoreCase(String value,
char escape)
Create a condition to case-insensitively pattern-check this field against
a value.
|
Condition |
notLikeRegex(Field<String> pattern)
Create a condition to regex-pattern-check this field against a pattern.
|
Condition |
notLikeRegex(String pattern)
Create a condition to regex-pattern-check this field against a pattern.
|
Field<T> |
nullif(Field<T> other)
This method is part of the pre-2.0 API.
|
Field<T> |
nullif(T other)
This method is part of the pre-2.0 API.
|
Field<T> |
nvl(Field<T> defaultValue)
This method is part of the pre-2.0 API.
|
Field<T> |
nvl(T defaultValue)
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
nvl2(Field<Z> valueIfNotNull,
Field<Z> valueIfNull)
This method is part of the pre-2.0 API.
|
<Z> Field<Z> |
nvl2(Z valueIfNotNull,
Z valueIfNull)
This method is part of the pre-2.0 API.
|
Field<Integer> |
octetLength()
This method is part of the pre-2.0 API.
|
Field<T> |
plus()
Turn this field into an Oracle-specific field for use in outer-join
predicates.
|
Field<T> |
plus(Field<?> value)
An alias for
add(Field) . |
Field<T> |
plus(Number value)
An alias for
add(Number) . |
Field<Integer> |
position(Field<String> search)
This method is part of the pre-2.0 API.
|
Field<Integer> |
position(String search)
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
pow(Number exponent)
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
power(Number exponent)
An alias for
power(Number) . |
Field<BigDecimal> |
rad()
This method is part of the pre-2.0 API.
|
Field<String> |
repeat(Field<? extends Number> count)
This method is part of the pre-2.0 API.
|
Field<String> |
repeat(Number count)
This method is part of the pre-2.0 API.
|
Field<String> |
replace(Field<String> search)
This method is part of the pre-2.0 API.
|
Field<String> |
replace(Field<String> search,
Field<String> replace)
This method is part of the pre-2.0 API.
|
Field<String> |
replace(String search)
This method is part of the pre-2.0 API.
|
Field<String> |
replace(String search,
String replace)
This method is part of the pre-2.0 API.
|
Field<T> |
round()
This method is part of the pre-2.0 API.
|
Field<T> |
round(int decimals)
This method is part of the pre-2.0 API.
|
Field<String> |
rpad(Field<? extends Number> length)
This method is part of the pre-2.0 API.
|
Field<String> |
rpad(Field<? extends Number> length,
Field<String> character)
This method is part of the pre-2.0 API.
|
Field<String> |
rpad(int length)
This method is part of the pre-2.0 API.
|
Field<String> |
rpad(int length,
char character)
This method is part of the pre-2.0 API.
|
Field<String> |
rtrim()
This method is part of the pre-2.0 API.
|
Field<T> |
shl(Field<? extends Number> value)
The bitwise left shift operator.
|
Field<T> |
shl(Number value)
The bitwise left shift operator.
|
Field<T> |
shr(Field<? extends Number> value)
The bitwise right shift operator.
|
Field<T> |
shr(Number value)
The bitwise right shift operator.
|
Field<Integer> |
sign()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
sin()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
sinh()
This method is part of the pre-2.0 API.
|
<Z> SortField<Z> |
sort(Map<T,Z> sortMap)
Create an indirected sort field.
|
SortField<T> |
sort(SortOrder order)
Create an ascending/descending sort field from this field.
|
SortField<Integer> |
sortAsc(Collection<T> sortList)
Create an indirected sort field.
|
SortField<Integer> |
sortAsc(T... sortList)
Create an indirected sort field.
|
SortField<Integer> |
sortDesc(Collection<T> sortList)
Create an indirected sort field.
|
SortField<Integer> |
sortDesc(T... sortList)
Create an indirected sort field.
|
Field<BigDecimal> |
sqrt()
This method is part of the pre-2.0 API.
|
Condition |
startsWith(Field<T> value)
Convenience method for
like(String, char) including proper
adding of wildcards and escaping. |
Condition |
startsWith(T value)
Convenience method for
like(String, char) including proper
adding of wildcards and escaping. |
Field<BigDecimal> |
stddevPop()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<BigDecimal> |
stddevPopOver()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
stddevSamp()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<BigDecimal> |
stddevSampOver()
This method is part of the pre-2.0 API.
|
Field<T> |
sub(Field<?> value)
An arithmetic expression subtracting value from this.
|
Field<T> |
sub(Number value)
An arithmetic expression subtracting value from this.
|
Field<String> |
substring(Field<? extends Number> startingPosition)
This method is part of the pre-2.0 API.
|
Field<String> |
substring(Field<? extends Number> startingPosition,
Field<? extends Number> length)
This method is part of the pre-2.0 API.
|
Field<String> |
substring(int startingPosition)
This method is part of the pre-2.0 API.
|
Field<String> |
substring(int startingPosition,
int length)
This method is part of the pre-2.0 API.
|
Field<T> |
subtract(Field<?> value)
An alias for
sub(Field) . |
Field<T> |
subtract(Number value)
An alias for
sub(Number) . |
Field<BigDecimal> |
sum()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<BigDecimal> |
sumOver()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
tan()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
tanh()
This method is part of the pre-2.0 API.
|
Field<String> |
trim()
This method is part of the pre-2.0 API.
|
Field<String> |
upper()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
varPop()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<BigDecimal> |
varPopOver()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
varSamp()
This method is part of the pre-2.0 API.
|
WindowPartitionByStep<BigDecimal> |
varSampOver()
This method is part of the pre-2.0 API.
|
String getName()
The name is any of these:
Param
getName
in interface SelectField<T>
String getComment()
If this Field
is a generated field from your database, it
may provide its DDL comment through this method. All other column
expressions return the empty string ""
here, never
null
.
Converter<?,T> getConverter()
Converter
.
By default, all fields reference an identity-converter
Converter<T, T>
. Custom data types may be obtained by a
custom Converter
placed on the generated TableField
.
getConverter
in interface SelectField<T>
Binding<?,T> getBinding()
Binding
.getBinding
in interface SelectField<T>
Class<T> getType()
getType
in interface SelectField<T>
DataType<T> getDataType()
getDataType
in interface SelectField<T>
DataType<T> getDataType(Configuration configuration)
getDataType
in interface SelectField<T>
@Support Field<T> as(String alias)
Note that the case-sensitivity of the returned field depends on
Settings.getRenderNameStyle()
. By default, field aliases are
quoted, and thus case-sensitive!
alias
- The alias name@Support Field<T> as(Field<?> otherField)
Note that the case-sensitivity of the returned field depends on
Settings.getRenderNameStyle()
. By default, field aliases are
quoted, and thus case-sensitive!
otherField
- The other field whose name this field is aliased with.boolean equals(Object other)
QueryPart
can be considered equal to
another QueryPart
.
In general, QueryPart
equality is defined in terms of
QueryPart.toString()
equality. In other words, two query parts are
considered equal if their rendered SQL (with inlined bind variables) is
equal. This means that the two query parts do not necessarily have to be
of the same type.
Some QueryPart
implementations may choose to override this
behaviour for improved performance, as QueryPart.toString()
is an
expensive operation, if called many times.
Watch out! This is Object.equals(Object)
, not a jOOQ DSL
feature!
@Support <Z> Field<Z> cast(Field<Z> field)
This results in the same as casting this field to
DataType.getCastTypeName()
Z
- The generic type of the cast fieldfield
- The field whose type is used for the castcast(DataType)
@Support <Z> Field<Z> cast(DataType<Z> type)
Z
- The generic type of the cast fieldtype
- The data type that is used for the cast@Support <Z> Field<Z> cast(Class<Z> type)
The actual cast may not be accurate as the DataType
has to be
"guessed" from the jOOQ-configured data types. Use
cast(DataType)
for more accurate casts.
Z
- The generic type of the cast fieldtype
- The type that is used for the castcast(DataType)
@Support <Z> Field<Z> coerce(Field<Z> field)
Unlike with casting, coercing doesn't affect the way the database sees a
Field
's type. This is how coercing affects your SQL:
// This binds an int value to a JDBC PreparedStatement
DSL.val(1).coerce(String.class);
// This binds an int value to a JDBC PreparedStatement
// and casts it to VARCHAR in SQL
DSL.val(1).cast(String.class);
// This fetches a String value for the BOOK.ID field from JDBC
BOOK.ID.coerce(String.class);
// This fetches a String value for the BOOK.ID field from JDBC
// after casting it to VARCHAR in the database
BOOK.ID.cast(String.class);
Z
- The generic type of the coerced fieldfield
- The field whose type is used for the coercioncoerce(DataType)
,
cast(Field)
@Support <Z> Field<Z> coerce(DataType<Z> type)
Unlike with casting, coercing doesn't affect the way the database sees a
Field
's type. This is how coercing affects your SQL:
// This binds an int value to a JDBC PreparedStatement
DSL.val(1).coerce(String.class);
// This binds an int value to a JDBC PreparedStatement
// and casts it to VARCHAR in SQL
DSL.val(1).cast(String.class);
// This fetches a String value for the BOOK.ID field from JDBC
BOOK.ID.coerce(String.class);
// This fetches a String value for the BOOK.ID field from JDBC
// after casting it to VARCHAR in the database
BOOK.ID.cast(String.class);
Z
- The generic type of the coerced fieldtype
- The data type that is used for the coercioncast(DataType)
@Support <Z> Field<Z> coerce(Class<Z> type)
Unlike with casting, coercing doesn't affect the way the database sees a
Field
's type. This is how coercing affects your SQL:
// This binds an int value to a JDBC PreparedStatement
DSL.val(1).coerce(String.class);
// This binds an int value to a JDBC PreparedStatement
// and casts it to VARCHAR in SQL
DSL.val(1).cast(String.class);
// This fetches a String value for the BOOK.ID field from JDBC
BOOK.ID.coerce(String.class);
// This fetches a String value for the BOOK.ID field from JDBC
// after casting it to VARCHAR in the database
BOOK.ID.cast(String.class);
Z
- The generic type of the coerced fieldtype
- The type that is used for the coercioncoerce(DataType)
,
cast(Class)
@Support SortField<T> asc()
This is the same as calling sort(SortOrder)
with
SortOrder.ASC
@Support SortField<T> desc()
This is the same as calling sort(SortOrder)
with
SortOrder.DESC
@Support SortField<T> sort(SortOrder order)
order
- The sort order@Support SortField<Integer> sortAsc(Collection<T> sortList)
Create a sort field of the form
CASE [this] WHEN [sortList.get(0)] THEN 0
WHEN [sortList.get(1)] THEN 1
...
WHEN [sortList.get(n)] THEN n
ELSE null
END ASC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast()
to specify whether the default should
have highest or lowest priority.
sortList
- The list containing sort value preferences@Support SortField<Integer> sortAsc(T... sortList)
Create a sort field of the form
CASE [this] WHEN [sortList[0]] THEN 0
WHEN [sortList[1]] THEN 1
...
WHEN [sortList[n]] THEN n
ELSE null
END ASC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast()
to specify whether the default should
have highest or lowest priority.
sortList
- The list containing sort value preferences@Support SortField<Integer> sortDesc(Collection<T> sortList)
Create a sort field of the form
CASE [this] WHEN [sortList.get(0)] THEN 0
WHEN [sortList.get(1)] THEN 1
...
WHEN [sortList.get(n)] THEN n
ELSE null
END DESC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast()
to specify whether the default should
have highest or lowest priority.
sortList
- The list containing sort value preferences@Support SortField<Integer> sortDesc(T... sortList)
Create a sort field of the form
CASE [this] WHEN [sortList[0]] THEN 0
WHEN [sortList[1]] THEN 1
...
WHEN [sortList[n]] THEN n
ELSE null
END DESC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast()
to specify whether the default should
have highest or lowest priority.
sortList
- The list containing sort value preferences@Support <Z> SortField<Z> sort(Map<T,Z> sortMap)
Create a sort field of the form (in pseudo code)
CASE [this] WHEN [sortMap.key(0)] THEN sortMap.value(0)
WHEN [sortMap.key(1)] THEN sortMap.value(1)
...
WHEN [sortMap.key(n)] THEN sortMap.value(n)
ELSE null
END DESC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast()
to specify whether the default should
have highest or lowest priority.
sortMap
- The list containing sort value preferences@Support Field<T> neg()
This renders the same on all dialects: -[this]
@Support Field<T> add(Number value)
add(Field)
@Support Field<T> add(Field<?> value)
The behaviour of this operation is as follows:
Operand 1 | Operand 2 | Result Type |
---|---|---|
Numeric | Numeric | Numeric |
Date / Time | Numeric | Date / Time |
Date / Time | Interval | Date / Time |
Interval | Interval | Interval |
@Support Field<T> plus(Number value)
add(Number)
.add(Number)
@Support Field<T> plus(Field<?> value)
add(Field)
.add(Field)
@Support Field<T> sub(Number value)
sub(Field)
@Support Field<T> sub(Field<?> value)
Operand 1 | Operand 2 | Result Type |
---|---|---|
Numeric | Numeric | Numeric |
Date / Time | Numeric | Date / Time |
Date / Time | Interval | Date / Time |
Interval | Interval | Interval |
In order to subtract one date time field from another, use any of these methods:
@Support Field<T> subtract(Number value)
sub(Number)
.sub(Number)
@Support Field<T> subtract(Field<?> value)
sub(Field)
.sub(Field)
@Support Field<T> minus(Number value)
sub(Number)
.sub(Number)
@Support Field<T> minus(Field<?> value)
sub(Field)
.sub(Field)
@Support Field<T> mul(Number value)
INTERVAL
field, then the result is also an
INTERVAL
field (see Interval
)@Support Field<T> mul(Field<? extends Number> value)
INTERVAL
field, then the result is also an
INTERVAL
field (see Interval
)@Support Field<T> multiply(Number value)
mul(Number)
.mul(Number)
@Support Field<T> multiply(Field<? extends Number> value)
mul(Field)
.mul(Field)
@Support Field<T> div(Number value)
INTERVAL
field, then the result is also an
INTERVAL
field (see Interval
)@Support Field<T> div(Field<? extends Number> value)
INTERVAL
field, then the result is also an
INTERVAL
field (see Interval
)@Support Field<T> divide(Number value)
div(Number)
.div(Number)
@Support Field<T> divide(Field<? extends Number> value)
div(Field)
.div(Field)
@Support Field<T> mod(Number value)
This renders the modulo operation where available:
... or the modulo function
elsewhere: [this] % [value]
mod([this], [value])
@Support Field<T> mod(Field<? extends Number> value)
This renders the modulo operation where available:
... or the modulo function
elsewhere: [this] % [value]
mod([this], [value])
@Support Field<T> modulo(Number value)
mod(Number)
.mod(Number)
@Support Field<T> modulo(Field<? extends Number> value)
mod(Field)
.mod(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitNot()
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitAnd(T value)
DSL.bitAnd(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitAnd(Field<T> value)
DSL.bitAnd(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitNand(T value)
DSL.bitNand(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitNand(Field<T> value)
DSL.bitNand(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitOr(T value)
DSL.bitOr(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitOr(Field<T> value)
DSL.bitOr(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitNor(T value)
DSL.bitNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitNor(Field<T> value)
DSL.bitNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitXor(T value)
DSL.bitXor(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitXor(Field<T> value)
DSL.bitXor(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitXNor(T value)
DSL.bitXNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> bitXNor(Field<T> value)
DSL.bitXNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> shl(Number value)
DSL.shl(Field, Field)
,
DSL.power(Field, Number)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> shl(Field<? extends Number> value)
DSL.shl(Field, Field)
,
DSL.power(Field, Number)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> shr(Number value)
DSL.shr(Field, Field)
,
DSL.power(Field, Number)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<T> shr(Field<? extends Number> value)
DSL.shr(Field, Field)
,
DSL.power(Field, Number)
@Support Condition isNull()
null
.
SQL: this is null
@Support Condition isNotNull()
null
.
SQL: this is not null
@Support Condition isDistinctFrom(T value)
DISTINCT
from
another value.
In SQLDialect.MYSQL
and SQLDialect.MARIADB
, this can be
emulated through not([this] <=> [value])
In SQLDialect.SQLITE
, this can be emulated through
[this] IS NOT [value]
If this is not supported by the underlying database, jOOQ will render
this instead:
SQL:
CASE WHEN [this] IS NULL AND [value] IS NULL THEN FALSE
WHEN [this] IS NULL AND [value] IS NOT NULL THEN TRUE
WHEN [this] IS NOT NULL AND [value] IS NULL THEN TRUE
WHEN [this] = [value] THEN FALSE
ELSE TRUE
END
this is distinct from value
@Support Condition isDistinctFrom(Field<T> field)
DISTINCT
from
another field.
In SQLDialect.MYSQL
and SQLDialect.MARIADB
, this can be
emulated through not([this] <=> [value])
In SQLDialect.SQLITE
, this can be emulated through
[this] IS NOT [value]
If this is not supported by the underlying database, jOOQ will render
this instead:
SQL:
CASE WHEN [this] IS NULL AND [field] IS NULL THEN FALSE
WHEN [this] IS NULL AND [field] IS NOT NULL THEN TRUE
WHEN [this] IS NOT NULL AND [field] IS NULL THEN TRUE
WHEN [this] = [field] THEN FALSE
ELSE TRUE
END
this is distinct from field
@Support Condition isNotDistinctFrom(T value)
NOT DISTINCT
from another value.
In SQLDialect.MYSQL
and SQLDialect.MARIADB
, this can be
emulated through [this] <=> [value]
In SQLDialect.SQLITE
, this can be emulated through
[this] IS [value]
If this is not supported by the underlying database, jOOQ will render
this instead:
SQL:
CASE WHEN [this] IS NULL AND [value] IS NULL THEN TRUE
WHEN [this] IS NULL AND [value] IS NOT NULL THEN FALSE
WHEN [this] IS NOT NULL AND [value] IS NULL THEN FALSE
WHEN [this] = [value] THEN TRUE
ELSE FALSE
END
this is not distinct from value
@Support Condition isNotDistinctFrom(Field<T> field)
NOT DISTINCT
from another field.
In SQLDialect.MYSQL
and SQLDialect.MARIADB
, this can be
emulated through [this] <=> [value]
In SQLDialect.SQLITE
, this can be emulated through
[this] IS [value]
If this is not supported by the underlying database, jOOQ will render
this instead:
SQL:
CASE WHEN [this] IS NULL AND [field] IS NULL THEN TRUE
WHEN [this] IS NULL AND [field] IS NOT NULL THEN FALSE
WHEN [this] IS NOT NULL AND [field] IS NULL THEN FALSE
WHEN [this] = [value] THEN TRUE
ELSE FALSE
END
this is not distinct from field
@Support(value={CUBRID,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SYBASE,VERTICA}) Condition likeRegex(String pattern)
The SQL:2008 standard specifies a <regex like predicate>
of the following form:
<regex like predicate> ::=
<row value predicand> <regex like predicate part 2>
<regex like predicate part 2> ::=
[ NOT ] LIKE_REGEX <XQuery pattern> [ FLAG <XQuery option flag> ]
This particular LIKE_REGEX
operator comes in several
flavours for various databases. jOOQ supports regular expressions as
follows:
likeRegex(String)
@Support(value={CUBRID,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SYBASE,VERTICA}) Condition likeRegex(Field<String> pattern)
See likeRegex(String)
for more details
likeRegex(String)
@Support(value={CUBRID,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SYBASE,VERTICA}) Condition notLikeRegex(String pattern)
See likeRegex(String)
for more details
likeRegex(String)
@Support(value={CUBRID,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SYBASE,VERTICA}) Condition notLikeRegex(Field<String> pattern)
See likeRegex(String)
for more details
likeRegex(Field)
@Support Condition like(Field<String> value)
SQL: this like value
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition like(Field<String> value, char escape)
SQL: this like value escape 'e'
@Support Condition like(String value)
SQL: this like value
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition like(String value, char escape)
SQL: this like value escape 'e'
@Support Condition likeIgnoreCase(Field<String> field)
This translates to this ilike field
in
SQLDialect.POSTGRES
, or to
lower(this) like lower(field)
in all other dialects.
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition likeIgnoreCase(Field<String> field, char escape)
This translates to this ilike field
in
SQLDialect.POSTGRES
, or to
lower(this) like lower(field)
in all other dialects.
@Support Condition likeIgnoreCase(String value)
This translates to this ilike value
in
SQLDialect.POSTGRES
, or to
lower(this) like lower(value)
in all other dialects.
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition likeIgnoreCase(String value, char escape)
This translates to this ilike value
in
SQLDialect.POSTGRES
, or to
lower(this) like lower(value)
in all other dialects.
@Support Condition notLike(Field<String> field)
SQL: this not like field
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notLike(Field<String> field, char escape)
SQL: this not like field escape 'e'
@Support Condition notLike(String value)
SQL: this not like value
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notLike(String value, char escape)
SQL: this not like value escape 'e'
@Support Condition notLikeIgnoreCase(Field<String> field)
This translates to this not ilike field
in
SQLDialect.POSTGRES
, or to
lower(this) not like lower(field)
in all other dialects.
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notLikeIgnoreCase(Field<String> field, char escape)
This translates to this not ilike field
in
SQLDialect.POSTGRES
, or to
lower(this) not like lower(field)
in all other dialects.
@Support Condition notLikeIgnoreCase(String value)
This translates to this not ilike value
in
SQLDialect.POSTGRES
, or to
lower(this) not like lower(value)
in all other dialects.
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notLikeIgnoreCase(String value, char escape)
This translates to this not ilike value
in
SQLDialect.POSTGRES
, or to
lower(this) not like lower(value)
in all other dialects.
@Support Condition contains(T value)
like(String, char)
including proper
adding of wildcards and escaping.
SQL: this like ('%' || escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).contains(13)
If you're using SQLDialect.POSTGRES
, then you can use this method
also to express the "ARRAY contains" operator. For example:
// Use this expression
val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 })
// ... to render this SQL
ARRAY[1, 2, 3] @> ARRAY[1, 2]
Note, this does not correspond to the Oracle Text CONTAINS()
function. Refer to OracleDSL.contains(Field, String)
instead.
DSL.escape(String, char)
,
like(String, char)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Condition contains(Field<T> value)
like(String, char)
including proper
adding of wildcards and escaping.
SQL: this like ('%' || escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).contains(13)
If you're using SQLDialect.POSTGRES
, then you can use this method
also to express the "ARRAY contains" operator. For example:
// Use this expression
val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 })
// ... to render this SQL
ARRAY[1, 2, 3] @> ARRAY[1, 2]
Note, this does not correspond to the Oracle Text CONTAINS()
function. Refer to OracleDSL.contains(Field, String)
instead.
DSL.escape(Field, char)
,
like(Field, char)
@Support Condition startsWith(T value)
like(String, char)
including proper
adding of wildcards and escaping.
SQL: this like (escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).startsWith(11)
DSL.escape(String, char)
,
like(String, char)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Condition startsWith(Field<T> value)
like(String, char)
including proper
adding of wildcards and escaping.
SQL: this like (escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).startsWith(11)
DSL.escape(Field, char)
,
like(Field, char)
@Support Condition endsWith(T value)
like(String, char)
including proper
adding of wildcards and escaping.
SQL: this like ('%' || escape(value, '\')) escape '\'
Note: This also works with numbers, for instance
val(1133).endsWith(33)
DSL.escape(String, char)
,
like(String, char)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Condition endsWith(Field<T> value)
like(String, char)
including proper
adding of wildcards and escaping.
SQL: this like ('%' || escape(value, '\')) escape '\'
Note: This also works with numbers, for instance
val(1133).endsWith(33)
DSL.escape(Field, char)
,
like(Field, char)
@Support Condition in(Collection<?> values)
SQL: this in (values...)
Condition in(Result<? extends Record1<T>> result)
SQL: this in (values...)
@Support Condition in(T... values)
SQL: this in (values...)
@Support Condition in(Field<?>... values)
SQL: this in (values...)
@Support Condition in(Select<? extends Record1<T>> query)
Note that the subquery must return exactly one field. This is not checked by jOOQ and will result in syntax errors in the database, if not used correctly.
SQL: this in (select...)
@Support Condition notIn(Collection<?> values)
Note that if any of the passed values is NULL
, then the
condition will be NULL
(or false
, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (values...)
Condition notIn(Result<? extends Record1<T>> result)
Note that if any of the passed values is NULL
, then the
condition will be NULL
(or false
, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this in (values...)
@Support Condition notIn(T... values)
Note that if any of the passed values is NULL
, then the
condition will be NULL
(or false
, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (values...)
@Support Condition notIn(Field<?>... values)
Note that if any of the passed values is NULL
, then the
condition will be NULL
(or false
, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (values...)
@Support Condition notIn(Select<? extends Record1<T>> query)
Note that the subquery must return exactly one field. This is not checked by jOOQ and will result in syntax errors in the database, if not used correctly.
Note that if any of the passed values is NULL
, then the
condition will be NULL
(or false
, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (select...)
@Support Condition between(T minValue, T maxValue)
This is the same as calling between(minValue).and(maxValue)
SQL: this between minValue and maxValue
@Support Condition between(Field<T> minValue, Field<T> maxValue)
This is the same as calling between(minValue).and(maxValue)
SQL: this between minValue and maxValue
@Support Condition betweenSymmetric(T minValue, T maxValue)
This is the same as calling
betweenSymmetric(minValue).and(maxValue)
SQL: this between symmetric minValue and maxValue
@Support Condition betweenSymmetric(Field<T> minValue, Field<T> maxValue)
This is the same as calling
betweenSymmetric(minValue).and(maxValue)
SQL: this between symmetric minValue and maxValue
@Support Condition notBetween(T minValue, T maxValue)
This is the same as calling
notBetween(minValue).and(maxValue)
SQL: this not between minValue and maxValue
@Support Condition notBetween(Field<T> minValue, Field<T> maxValue)
This is the same as calling
notBetween(minValue).and(maxValue)
SQL: this not between minValue and maxValue
@Support Condition notBetweenSymmetric(T minValue, T maxValue)
This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)
SQL: this not between symmetric minValue and maxValue
@Support Condition notBetweenSymmetric(Field<T> minValue, Field<T> maxValue)
This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)
SQL: this not between symmetric minValue and maxValue
@Support BetweenAndStep<T> between(T minValue)
SQL: this between minValue and maxValue
@Support BetweenAndStep<T> between(Field<T> minValue)
SQL: this between minValue and maxValue
@Support BetweenAndStep<T> betweenSymmetric(T minValue)
SQL: this between symmetric minValue and maxValue
@Support BetweenAndStep<T> betweenSymmetric(Field<T> minValue)
SQL: this between symmetric minValue and maxValue
@Support BetweenAndStep<T> notBetween(T minValue)
SQL: this not between minValue and maxValue
@Support BetweenAndStep<T> notBetween(Field<T> minValue)
SQL: this not between minValue and maxValue
@Support BetweenAndStep<T> notBetweenSymmetric(T minValue)
SQL: this not between symmetric minValue and maxValue
@Support BetweenAndStep<T> notBetweenSymmetric(Field<T> minValue)
SQL: this not between symmetric minValue and maxValue
@Support Condition compare(Comparator comparator, T value)
comparator
- The comparator to use for comparing this field with a
valuevalue
- The value to compare this field with@Support Condition compare(Comparator comparator, Field<T> field)
comparator
- The comparator to use for comparing this field with
another fieldfield
- The field to compare this field with@Support Condition compare(Comparator comparator, Select<? extends Record1<T>> query)
Consider Comparator.supportsSubselect()
to assess whether a
comparator can be used with this method.
comparator
- The comparator to use for comparing this field with a
subselectquery
- The subselect to compare this field with@Support Condition compare(Comparator comparator, QuantifiedSelect<? extends Record1<T>> query)
Consider Comparator.supportsQuantifier()
to assess whether a
comparator can be used with this method.
comparator
- The comparator to use for comparing this field with a
quantified subselectquery
- The quantified subselect to compare this field with@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition equal(QuantifiedSelect<? extends Record1<T>> query)
this = [quantifier] (Select<?> ...)
.@Support Condition eq(T value)
this = value
.equal(Object)
@Support Condition eq(Field<T> field)
this = field
.equal(Field)
@Support Condition eq(Select<? extends Record1<T>> query)
this = (Select<?> ...)
.equal(Select)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition eq(QuantifiedSelect<? extends Record1<T>> query)
this = [quantifier] (Select<?> ...)
.@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition notEqual(QuantifiedSelect<? extends Record1<T>> query)
this != [quantifier] (Select<?> ...)
.@Support Condition ne(T value)
this != value
.notEqual(Object)
@Support Condition ne(Field<T> field)
this != field
.notEqual(Field)
@Support Condition ne(Select<? extends Record1<T>> query)
this != (Select<?> ...)
.notEqual(Select)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition ne(QuantifiedSelect<? extends Record1<T>> query)
this != [quantifier] (Select<?> ...)
.@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition lessThan(QuantifiedSelect<? extends Record1<T>> query)
this < [quantifier] (Select<?> ...)
.@Support Condition lt(T value)
this < value
.lessThan(Object)
@Support Condition lt(Field<T> field)
this < field
.lessThan(Field)
@Support Condition lt(Select<? extends Record1<T>> query)
this < (Select<?> ...)
.lessThan(Select)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition lt(QuantifiedSelect<? extends Record1<T>> query)
this < [quantifier] (Select<?> ...)
.@Support Condition lessOrEqual(Select<? extends Record1<T>> query)
this <= (Select<?> ...)
.@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition lessOrEqual(QuantifiedSelect<? extends Record1<T>> query)
this <= [quantifier] (Select<?> ...)
.@Support Condition le(T value)
this <= value
.lessOrEqual(Object)
@Support Condition le(Field<T> field)
this <= field
.lessOrEqual(Field)
@Support Condition le(Select<? extends Record1<T>> query)
this <= (Select<?> ...)
.lessOrEqual(Select)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition le(QuantifiedSelect<? extends Record1<T>> query)
this <= [quantifier] (Select<?> ...)
.@Support Condition greaterThan(Select<? extends Record1<T>> query)
this > (Select<?> ...)
.@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition greaterThan(QuantifiedSelect<? extends Record1<T>> query)
this > [quantifier] (Select<?> ...)
.@Support Condition gt(T value)
this > value
.greaterThan(Object)
@Support Condition gt(Field<T> field)
this > field
.greaterThan(Field)
@Support Condition gt(Select<? extends Record1<T>> query)
this > (Select<?> ...)
.greaterThan(Select)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition gt(QuantifiedSelect<? extends Record1<T>> query)
this > [quantifier] (Select<?> ...)
.@Support Condition greaterOrEqual(Select<? extends Record1<T>> query)
this >= (Select<?> ...)
.@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition greaterOrEqual(QuantifiedSelect<? extends Record1<T>> query)
this >= [quantifier] (Select<?> ...)
.@Support Condition ge(T value)
this >= value
.greaterOrEqual(Object)
@Support Condition ge(Field<T> field)
this >= field
.greaterOrEqual(Field)
@Support Condition ge(Select<? extends Record1<T>> query)
this >= (Select<?> ...)
.greaterOrEqual(Select)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Condition ge(QuantifiedSelect<? extends Record1<T>> query)
this >= [quantifier] (Select<?> ...)
.@Support Condition isTrue()
true
.
SQL:
lcase(this) in ("1", "y", "yes", "true", "on", "enabled")
@Support Condition isFalse()
false
.
SQL:
lcase(this) in ("0", "n", "no", "false", "off", "disabled")
@Support Condition notEqualIgnoreCase(Field<String> value)
lower(this) != lower(value)
.@Support Field<Integer> sign()
DSLContext
DSL.sign(Field)
@Support Field<T> abs()
DSLContext
DSL.abs(Field)
@Support Field<T> round()
DSLContext
DSL.round(Field)
@Support Field<T> round(int decimals)
DSLContext
DSL.round(Field, int)
@Support Field<T> floor()
DSLContext
DSL.floor(Field)
@Support Field<T> ceil()
DSLContext
DSL.ceil(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> sqrt()
DSLContext
DSL.sqrt(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> exp()
DSLContext
DSL.exp(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> ln()
DSLContext
DSL.ln(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> log(int base)
DSLContext
DSL.log(Field, int)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> pow(Number exponent)
DSLContext
DSL.power(Field, Number)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> power(Number exponent)
power(Number)
.power(Number)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> acos()
DSLContext
DSL.acos(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> asin()
DSLContext
DSL.asin(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> atan()
DSLContext
DSL.atan(Field)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> atan2(Number y)
DSLContext
DSL.atan2(Field, Number)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> atan2(Field<? extends Number> y)
DSLContext
DSL.atan2(Field, Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> cos()
DSLContext
DSL.cos(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> sin()
DSLContext
DSL.sin(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> tan()
DSLContext
DSL.tan(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> cot()
DSLContext
DSL.cot(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> sinh()
DSLContext
DSL.sinh(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> cosh()
DSLContext
DSL.cosh(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> tanh()
DSLContext
DSL.tanh(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> coth()
DSLContext
DSL.coth(Field)
@Support Field<BigDecimal> deg()
DSLContext
DSL.deg(Field)
@Support Field<BigDecimal> rad()
DSLContext
DSL.rad(Field)
@Support Field<Integer> count()
DSLContext
DSL.count(Field)
@Support Field<Integer> countDistinct()
DSLContext
DSL.countDistinct(Field)
@Support Field<T> max()
DSLContext
DSL.max(Field)
@Support Field<T> min()
DSLContext
DSL.min(Field)
@Support Field<BigDecimal> sum()
DSLContext
DSL.sum(Field)
@Support Field<BigDecimal> avg()
DSLContext
DSL.avg(Field)
@Support(value={CUBRID,HSQLDB,ORACLE,SYBASE}) Field<BigDecimal> median()
DSLContext
DSL.median(Field)
@Support(value={ASE,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> stddevPop()
DSLContext
DSL.stddevPop(Field)
@Support(value={ASE,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> stddevSamp()
DSLContext
DSL.stddevSamp(Field)
@Support(value={ASE,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> varPop()
DSLContext
DSL.varPop(Field)
@Support(value={ASE,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<BigDecimal> varSamp()
DSLContext
DSL.varSamp(Field)
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<Integer> countOver()
DSLContext
DSL.count(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<T> maxOver()
DSLContext
DSL.max(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<T> minOver()
DSLContext
DSL.min(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<BigDecimal> sumOver()
DSLContext
DSL.sum(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<BigDecimal> avgOver()
DSLContext
DSL.avg(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE}) WindowIgnoreNullsStep<T> firstValue()
DSLContext
DSL.firstValue(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,SYBASE}) WindowIgnoreNullsStep<T> lastValue()
DSLContext
DSL.lastValue(Field)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lead()
DSLContext
DSL.lead(Field)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lead(int offset)
DSLContext
DSL.lead(Field, int)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lead(int offset, T defaultValue)
DSLContext
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lead(int offset, Field<T> defaultValue)
DSLContext
DSL.lead(Field, int, Field)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lag()
DSLContext
DSL.lag(Field)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lag(int offset)
DSLContext
DSL.lag(Field, int)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lag(int offset, T defaultValue)
DSLContext
DSL.lag(Field, int, Object)
,
WindowOverStep.over()
@Support(value={DB2,FIREBIRD_3_0,POSTGRES,ORACLE,SQLSERVER,VERTICA}) WindowIgnoreNullsStep<T> lag(int offset, Field<T> defaultValue)
DSLContext
DSL.lag(Field, int, Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<BigDecimal> stddevPopOver()
DSLContext
DSL.stddevPop(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<BigDecimal> stddevSampOver()
DSLContext
DSL.stddevSamp(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<BigDecimal> varPopOver()
DSLContext
DSL.varPop(Field)
,
WindowOverStep.over()
@Support(value={CUBRID,DB2,POSTGRES,ORACLE,SQLSERVER,SYBASE,VERTICA}) WindowPartitionByStep<BigDecimal> varSampOver()
DSLContext
DSL.varSamp(Field)
,
WindowOverStep.over()
@Support Field<String> upper()
DSLContext
DSL.upper(Field)
@Support Field<String> lower()
DSLContext
DSL.lower(Field)
@Support Field<String> trim()
DSLContext
DSL.trim(Field)
@Support Field<String> rtrim()
DSLContext
DSL.rtrim(Field)
@Support Field<String> ltrim()
DSLContext
DSL.ltrim(Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> rpad(Field<? extends Number> length)
DSLContext
DSL.rpad(Field, Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> rpad(int length)
DSLContext
DSL.rpad(Field, int)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> rpad(Field<? extends Number> length, Field<String> character)
DSLContext
DSL.rpad(Field, Field, Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> rpad(int length, char character)
DSLContext
DSL.rpad(Field, int, char)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> lpad(Field<? extends Number> length)
DSLContext
DSL.lpad(Field, Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> lpad(int length)
DSLContext
DSL.lpad(Field, int)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> lpad(Field<? extends Number> length, Field<String> character)
DSLContext
DSL.lpad(Field, Field, Field)
@Support(value={ACCESS,ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> lpad(int length, char character)
DSLContext
DSL.lpad(Field, int, char)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> repeat(Number count)
DSLContext
DSL.repeat(Field, int)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<String> repeat(Field<? extends Number> count)
DSLContext
DSL.repeat(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<String> replace(Field<String> search)
DSLContext
DSL.replace(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<String> replace(String search)
DSLContext
DSL.replace(Field, String)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<String> replace(Field<String> search, Field<String> replace)
DSLContext
DSL.replace(Field, Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,SQLITE,VERTICA}) Field<String> replace(String search, String replace)
DSLContext
DSL.replace(Field, String, String)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<Integer> position(String search)
DSLContext
DSL.position(Field, String)
@Support(value={ASE,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<Integer> position(Field<String> search)
DSLContext
DSL.position(Field, Field)
@Support(value={ASE,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,VERTICA}) Field<Integer> ascii()
DSLContext
DSL.ascii(Field)
@Support Field<String> concat(Field<?>... fields)
DSLContext
DSL.concat(Field...)
@Support Field<String> concat(String... values)
DSLContext
DSL.concat(String...)
@Support Field<String> substring(int startingPosition)
DSLContext
DSL.substring(Field, int)
@Support Field<String> substring(Field<? extends Number> startingPosition)
DSLContext
DSL.substring(Field, Field)
@Support Field<String> substring(int startingPosition, int length)
DSLContext
DSL.substring(Field, int, int)
@Support Field<String> substring(Field<? extends Number> startingPosition, Field<? extends Number> length)
DSLContext
DSL.substring(Field, Field, Field)
@Support Field<Integer> length()
DSLContext
DSL.length(Field)
@Support Field<Integer> charLength()
DSLContext
DSL.charLength(Field)
@Support Field<Integer> bitLength()
DSLContext
DSL.bitLength(Field)
@Support Field<Integer> octetLength()
DSLContext
DSL.octetLength(Field)
@Support Field<Integer> extract(DatePart datePart)
DSLContext
DSL.extract(Field, DatePart)
@Support Field<T> greatest(T... others)
DSLContext
DSL.greatest(Field, Field...)
@Support Field<T> greatest(Field<?>... others)
DSLContext
DSL.greatest(Field, Field...)
@Support Field<T> least(T... others)
DSLContext
DSL.least(Field, Field...)
@Support Field<T> least(Field<?>... others)
DSLContext
DSL.least(Field, Field...)
@Support Field<T> nvl(T defaultValue)
DSLContext
DSL.nvl(Field, Object)
@Support Field<T> nvl(Field<T> defaultValue)
DSLContext
DSL.nvl(Field, Field)
@Support <Z> Field<Z> nvl2(Z valueIfNotNull, Z valueIfNull)
DSLContext
DSL.nvl2(Field, Object, Object)
@Support <Z> Field<Z> nvl2(Field<Z> valueIfNotNull, Field<Z> valueIfNull)
DSLContext
DSL.nvl2(Field, Field, Field)
@Support Field<T> nullif(T other)
DSLContext
DSL.nullif(Field, Object)
@Support Field<T> nullif(Field<T> other)
DSLContext
DSL.nullif(Field, Field)
@Support <Z> Field<Z> decode(T search, Z result)
DSLContext
DSL.decode(Object, Object, Object)
@Support <Z> Field<Z> decode(T search, Z result, Object... more)
DSLContext
@Support <Z> Field<Z> decode(Field<T> search, Field<Z> result)
DSLContext
DSL.decode(Field, Field, Field)
@Support <Z> Field<Z> decode(Field<T> search, Field<Z> result, Field<?>... more)
DSLContext
@Support Field<T> coalesce(T option, T... options)
DSLContext
DSL.coalesce(Object, Object...)
@Support Field<T> coalesce(Field<T> option, Field<?>... options)
DSLContext
DSL.coalesce(Field, Field...)
Copyright © 2016. All Rights Reserved.