T
- The field typepublic interface Field<T> extends SelectField<T>, GroupField, OrderField<T>, FieldOrRow, FieldOrConstraint
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.abs(Field) instead. |
Field<BigDecimal> |
acos()
Deprecated.
- 3.11 - [#7538] - Use
DSL.acos(Field) instead. |
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(Function<? super Field<T>,? extends String> aliasFunction)
Create an alias for this field.
|
Field<T> |
as(Name alias)
Create an alias for this field.
|
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.asin(Field) instead. |
Field<BigDecimal> |
atan()
Deprecated.
- 3.11 - [#7538] - Use
DSL.atan(Field) instead. |
Field<BigDecimal> |
atan2(Field<? extends Number> y)
Deprecated.
- 3.11 - [#7538] - Use
DSL.atan2(Field, Field) instead. |
Field<BigDecimal> |
atan2(Number y)
Deprecated.
- 3.11 - [#7538] - Use
DSL.atan2(Field, Number) instead. |
Field<BigDecimal> |
avg()
Deprecated.
- 3.11 - [#7538] - Use
DSL.avg(Field) instead. |
WindowPartitionByStep<BigDecimal> |
avgOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.avg(Field) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.ceil(Field) instead. |
boolean |
changed(Record record)
The inverse operation of
Record.changed(Field) . |
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.
|
Field<String> |
collate(Collation collation)
Apply a collation operator to this column expression.
|
Field<String> |
collate(Name collation)
Apply a collation operator to this column expression.
|
Field<String> |
collate(String collation)
Apply a collation operator to this column expression.
|
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(char... values)
This method is part of the pre-2.0 API.
|
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. |
Condition |
containsIgnoreCase(Field<T> value)
Convenience method for
likeIgnoreCase(String, char) including
proper adding of wildcards and escaping. |
Condition |
containsIgnoreCase(T value)
Convenience method for
likeIgnoreCase(String, char) including
proper adding of wildcards and escaping. |
Field<BigDecimal> |
cos()
Deprecated.
- 3.11 - [#7538] - Use
DSL.cos(Field) instead. |
Field<BigDecimal> |
cosh()
Deprecated.
- 3.11 - [#7538] - Use
DSL.cosh(Field) instead. |
Field<BigDecimal> |
cot()
Deprecated.
- 3.11 - [#7538] - Use
DSL.cot(Field) instead. |
Field<BigDecimal> |
coth()
Deprecated.
- 3.11 - [#7538] - Use
DSL.coth(Field) instead. |
Field<Integer> |
count()
Deprecated.
- 3.11 - [#7538] - Use
DSL.count(Field) instead. |
Field<Integer> |
countDistinct()
Deprecated.
- 3.11 - [#7538] - Use
DSL.countDistinct(Field) instead. |
WindowPartitionByStep<Integer> |
countOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.count(Field) instead. |
<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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.deg(Field) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.exp(Field) instead. |
Field<Integer> |
extract(DatePart datePart)
Deprecated.
- 3.11 - [#7538] - Use
DSL#extract(DatePart) instead. |
Field<T> |
field(Record record)
The inverse operation of
Record.field(Field) . |
WindowIgnoreNullsStep<T> |
firstValue()
Deprecated.
- 3.11 - [#7538] - Use
DSL.firstValue(Field) instead. |
Field<T> |
floor()
Deprecated.
- 3.11 - [#7538] - Use
DSL.floor(Field) instead. |
Record1<T> |
from(Record record)
The inverse operation of
Record.into(Field) . |
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 . |
T |
get(Record record)
The inverse operation of
Record.get(Field) . |
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.
|
T |
getValue(Record record)
The inverse operation of
Record.getValue(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)
Deprecated.
- 3.11 - [#7538] - Use
DSL.greatest(Field, Field...) instead. |
Field<T> |
greatest(T... others)
Deprecated.
- 3.11 - [#7538] - Use
DSL.greatest(Field, Field...) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.lag(Field) instead. |
WindowIgnoreNullsStep<T> |
lag(int offset)
Deprecated.
- 3.11 - [#7538] - Use
DSL.lag(Field, int) instead. |
WindowIgnoreNullsStep<T> |
lag(int offset,
Field<T> defaultValue)
Deprecated.
- 3.11 - [#7538] - Use
DSL.lag(Field, int, Field) instead. |
WindowIgnoreNullsStep<T> |
lag(int offset,
T defaultValue)
Deprecated.
- 3.11 - [#7538] - Use
DSL.lag(Field, int, Object) instead. |
WindowIgnoreNullsStep<T> |
lastValue()
Deprecated.
- 3.11 - [#7538] - Use
DSL.lastValue(Field) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.lead(Field) instead. |
WindowIgnoreNullsStep<T> |
lead(int offset)
Deprecated.
- 3.11 - [#7538] - Use
DSL.lead(Field, int) instead. |
WindowIgnoreNullsStep<T> |
lead(int offset,
Field<T> defaultValue)
Deprecated.
- 3.11 - [#7538] - Use
DSL.lead(Field, int, Field) instead. |
WindowIgnoreNullsStep<T> |
lead(int offset,
T defaultValue)
Deprecated.
- 3.11 - [#7538] - Use
DSL.lead(Field, int, Object) instead. |
Field<T> |
least(Field<?>... others)
Deprecated.
- 3.11 - [#7538] - Use
DSL.least(Field, Field...) instead. |
Field<T> |
least(T... others)
Deprecated.
- 3.11 - [#7538] - Use
DSL.least(Field, Field...) instead. |
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 . |
LikeEscapeStep |
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.
|
LikeEscapeStep |
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.
|
LikeEscapeStep |
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.
|
LikeEscapeStep |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.ln(Field) instead. |
Field<BigDecimal> |
log(int base)
Deprecated.
- 3.11 - [#7538] - Use
DSL.log(Field, int) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.max(Field) instead. |
WindowPartitionByStep<T> |
maxOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.max(Field) instead. |
Field<BigDecimal> |
median()
Deprecated.
- 3.11 - [#7538] - Use
DSL.median(Field) instead. |
Field<T> |
min()
Deprecated.
- 3.11 - [#7538] - Use
DSL.min(Field) instead. |
WindowPartitionByStep<T> |
minOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.min(Field) instead. |
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 |
notContains(Field<T> value)
Inverse of
contains(Field) . |
Condition |
notContains(T value)
Inverse of
contains(Object) . |
Condition |
notContainsIgnoreCase(Field<T> value)
Inverse of
containsIgnoreCase(Field) |
Condition |
notContainsIgnoreCase(T value)
Inverse of
containsIgnoreCase(Object) |
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.
|
LikeEscapeStep |
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.
|
LikeEscapeStep |
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.
|
LikeEscapeStep |
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.
|
LikeEscapeStep |
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.
|
T |
original(Record record)
The inverse operation of
Record.original(Field) . |
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(Field<? extends Number> exponent)
An arithmetic expression getting this value raised to the power of
exponent . |
Field<BigDecimal> |
pow(Number exponent)
An arithmetic expression getting this value raised to the power of
exponent . |
Field<BigDecimal> |
power(Field<? extends Number> exponent)
An alias for
power(Field) . |
Field<BigDecimal> |
power(Number exponent)
An alias for
power(Number) . |
Field<BigDecimal> |
rad()
Deprecated.
- 3.11 - [#7538] - Use
DSL.rad(Field) instead. |
Field<T> |
rem(Field<? extends Number> value)
An alias for
mod(Field) . |
Field<T> |
rem(Number value)
An alias for
mod(Number) . |
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.
|
void |
reset(Record record)
The inverse operation of
Record.reset(Field) . |
Field<T> |
round()
Deprecated.
- 3.11 - [#7538] - Use
DSL.round(Field) instead. |
Field<T> |
round(int decimals)
Deprecated.
- 3.11 - [#7538] - Use
DSL.round(Field, int) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.sign(Field) instead. |
Field<BigDecimal> |
sin()
Deprecated.
- 3.11 - [#7538] - Use
DSL.sin(Field) instead. |
Field<BigDecimal> |
sinh()
Deprecated.
- 3.11 - [#7538] - Use
DSL.sinh(Field) instead. |
<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<T> |
sortDefault()
Create a default sorted (implicit
ASC ) from this 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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.sqrt(Field) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.stddevPop(Field) instead. |
WindowPartitionByStep<BigDecimal> |
stddevPopOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.stddevPop(Field) instead. |
Field<BigDecimal> |
stddevSamp()
Deprecated.
- 3.11 - [#7538] - Use
DSL.stddevSamp(Field) instead. |
WindowPartitionByStep<BigDecimal> |
stddevSampOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.stddevSamp(Field) instead. |
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()
Deprecated.
- 3.11 - [#7538] - Use
DSL.sum(Field) instead. |
WindowPartitionByStep<BigDecimal> |
sumOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.sum(Field) instead. |
Field<BigDecimal> |
tan()
Deprecated.
- 3.11 - [#7538] - Use
DSL.tan(Field) instead. |
Field<BigDecimal> |
tanh()
Deprecated.
- 3.11 - [#7538] - Use
DSL.tanh(Field) instead. |
Field<T> |
times(Field<? extends Number> value)
An alias for
mul(Field) . |
Field<T> |
times(Number value)
An alias for
mul(Number) . |
Field<String> |
trim()
This method is part of the pre-2.0 API.
|
Field<T> |
unaryMinus()
Negate this field to get its negative value.
|
Field<T> |
unaryPlus()
Get this field as its positive value (no effect on SQL).
|
Field<String> |
upper()
This method is part of the pre-2.0 API.
|
Field<BigDecimal> |
varPop()
Deprecated.
- 3.11 - [#7538] - Use
DSL.varPop(Field) instead. |
WindowPartitionByStep<BigDecimal> |
varPopOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.varPop(Field) instead. |
Field<BigDecimal> |
varSamp()
Deprecated.
- 3.11 - [#7538] - Use
DSL.varSamp(Field) instead. |
WindowPartitionByStep<BigDecimal> |
varSampOver()
Deprecated.
- 3.11 - [#7538] - Use
DSL.varSamp(Field) instead. |
getQualifiedName, getUnqualifiedName
String getName()
The name is any of these:
Param
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
.
getComment
in interface Named
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(Name alias)
Note that the case-sensitivity of the returned field depends on
Settings.getRenderNameStyle()
and the Name
. By default,
field aliases are quoted, and thus case-sensitive - use
DSL.unquotedName(String...)
for case-insensitive aliases.
If the argument Name.getName()
is qualified, then the
Name.last()
part will be used.
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.@Support Field<T> as(Function<? super Field<T>,? extends String> aliasFunction)
Note that the case-sensitivity of the returned field depends on
Settings.getRenderNameStyle()
. By default, field aliases are
quoted, and thus case-sensitive!
This works like as(String)
, except that field aliases are
provided by a function. This is useful, for instance, to prefix all
columns with a common prefix (on Table.as(String, Function)
):
MY_TABLE.as("t1", f -> "prefix_" + f.getName());
And then to use the same function also for individual fields:
MY_TABLE.MY_COLUMN.as(f -> "prefix_" + f.getName());
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> sortDefault()
ASC
) from this field.
This is the same as calling sort(SortOrder)
with
SortOrder.DEFAULT
@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> unaryMinus()
This is an alias for neg()
, which can be recognised by the
Kotlin language for operator overloading.
@Support Field<T> unaryPlus()
This can be recognised by the Kotlin language for operator overloading.
@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> times(Number value)
mul(Number)
.mul(Number)
@Support Field<T> times(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 Field<T> rem(Number value)
mod(Number)
.mod(Number)
@Support Field<T> rem(Field<? extends Number> value)
mod(Field)
.mod(Field)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> pow(Number exponent)
exponent
.
This renders the power operation where available:
... or the power function
elsewhere: [this] ^ [value]
power([this], [value])
DSL.power(Field, Number)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> pow(Field<? extends Number> exponent)
exponent
.
This renders the power operation where available:
... or the power function
elsewhere: [this] ^ [value]
power([this], [value])
DSL.power(Field, Field)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> power(Number exponent)
power(Number)
.power(Number)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> power(Field<? extends Number> exponent)
power(Field)
.power(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitNot()
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitAnd(T value)
DSL.bitAnd(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitAnd(Field<T> value)
DSL.bitAnd(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitNand(T value)
DSL.bitNand(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitNand(Field<T> value)
DSL.bitNand(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitOr(T value)
DSL.bitOr(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitOr(Field<T> value)
DSL.bitOr(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitNor(T value)
DSL.bitNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitNor(Field<T> value)
DSL.bitNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitXor(T value)
DSL.bitXor(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitXor(Field<T> value)
DSL.bitXor(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitXNor(T value)
DSL.bitXNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> bitXNor(Field<T> value)
DSL.bitXNor(Field, Field)
,
DSL.bitNot(Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> shl(Number value)
DSL.shl(Field, Field)
,
DSL.power(Field, Number)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> shl(Field<? extends Number> value)
DSL.shl(Field, Field)
,
DSL.power(Field, Number)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<T> shr(Number value)
DSL.shr(Field, Field)
,
DSL.power(Field, Number)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,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]
In databases that support INTERSECT
(see
Select.intersect(Select)
, this predicate can be emulated as
follows:
NOT EXISTS (SELECT [this] INTERSECT SELECT [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]
In databases that support INTERSECT
(see
Select.intersect(Select)
, this predicate can be emulated as
follows:
NOT EXISTS (SELECT [this] INTERSECT SELECT [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]
In databases that support INTERSECT
(see
Select.intersect(Select)
, this predicate can be emulated as
follows:
EXISTS (SELECT [this] INTERSECT SELECT [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]
In databases that support INTERSECT
(see
Select.intersect(Select)
, this predicate can be emulated as
follows:
EXISTS (SELECT [this] INTERSECT SELECT [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={AURORA_MYSQL,AURORA_POSTGRES,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={AURORA_MYSQL,AURORA_POSTGRES,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={AURORA_MYSQL,AURORA_POSTGRES,CUBRID,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SYBASE,VERTICA}) Condition notLikeRegex(String pattern)
See likeRegex(String)
for more details
likeRegex(String)
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,CUBRID,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SYBASE,VERTICA}) Condition notLikeRegex(Field<String> pattern)
See likeRegex(String)
for more details
likeRegex(Field)
@Support LikeEscapeStep like(Field<String> value)
SQL: this like value
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition like(Field<String> value, char escape)
SQL: this like value escape 'e'
LikeEscapeStep.escape(char)
@Support LikeEscapeStep like(String value)
SQL: this like value
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition like(String value, char escape)
SQL: this like value escape 'e'
LikeEscapeStep.escape(char)
@Support LikeEscapeStep 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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,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.
LikeEscapeStep.escape(char)
@Support LikeEscapeStep 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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,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.
LikeEscapeStep.escape(char)
@Support LikeEscapeStep notLike(Field<String> field)
SQL: this not like field
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notLike(Field<String> field, char escape)
SQL: this not like field escape 'e'
LikeEscapeStep.escape(char)
@Support LikeEscapeStep notLike(String value)
SQL: this not like value
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notLike(String value, char escape)
SQL: this not like value escape 'e'
LikeEscapeStep.escape(char)
@Support LikeEscapeStep 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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,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.
LikeEscapeStep.escape(char)
@Support LikeEscapeStep 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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,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.
LikeEscapeStep.escape(char)
@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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,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 notContains(T value)
contains(Object)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notContains(Field<T> value)
contains(Field)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition containsIgnoreCase(T value)
likeIgnoreCase(String, char)
including
proper adding of wildcards and escaping.
This translates to
this ilike ('%' || escape(value, '\') || '%') escape '\'
in
SQLDialect.POSTGRES
, or to
lower(this) not like lower(('%' || escape(value, '\') || '%') escape '\')
in all other dialects.
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition containsIgnoreCase(Field<T> value)
likeIgnoreCase(String, char)
including
proper adding of wildcards and escaping.
This translates to
this ilike ('%' || escape(value, '\') || '%') escape '\'
in SQLDialect.POSTGRES
, or to
lower(this) like lower(('%' || escape(value, '\') || '%') escape '\')
in all other dialects.
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notContainsIgnoreCase(T value)
containsIgnoreCase(Object)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,VERTICA}) Condition notContainsIgnoreCase(Field<T> value)
containsIgnoreCase(Field)
@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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,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...)
Note that generating dynamic SQL with arbitrary-length IN
predicates can cause cursor cache contention in some databases that use
unique SQL strings as a statement identifier (e.g.
SQLDialect.ORACLE
). In order to prevent such problems, you could
use Settings.isInListPadding()
to produce less distinct SQL
strings (see also
[#5600]), or you
could avoid IN
lists, and replace them with:
IN
predicates on temporary tablesIN
predicates on unnested array bind variablesCondition in(Result<? extends Record1<T>> result)
SQL: this in (values...)
Note that generating dynamic SQL with arbitrary-length IN
predicates can cause cursor cache contention in some databases that use
unique SQL strings as a statement identifier (e.g.
SQLDialect.ORACLE
). In order to prevent such problems, you could
use Settings.isInListPadding()
to produce less distinct SQL
strings (see also
[#5600]), or you
could avoid IN
lists, and replace them with:
IN
predicates on temporary tablesIN
predicates on unnested array bind variables@Support Condition in(T... values)
SQL: this in (values...)
Note that generating dynamic SQL with arbitrary-length IN
predicates can cause cursor cache contention in some databases that use
unique SQL strings as a statement identifier (e.g.
SQLDialect.ORACLE
). In order to prevent such problems, you could
use Settings.isInListPadding()
to produce less distinct SQL
strings (see also
[#5600]), or you
could avoid IN
lists, and replace them with:
IN
predicates on temporary tablesIN
predicates on unnested array bind variables@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...)
Note that generating dynamic SQL with arbitrary-length
NOT IN
predicates can cause cursor cache contention in some
databases that use unique SQL strings as a statement identifier (e.g.
SQLDialect.ORACLE
). In order to prevent such problems, you could
use Settings.isInListPadding()
to produce less distinct SQL
strings (see also
[#5600]), or you
could avoid IN
lists, and replace them with:
NOT IN
predicates on temporary tablesNOT IN
predicates on unnested array bind variablesCondition 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...)
Note that generating dynamic SQL with arbitrary-length
NOT IN
predicates can cause cursor cache contention in some
databases that use unique SQL strings as a statement identifier (e.g.
SQLDialect.ORACLE
). In order to prevent such problems, you could
use Settings.isInListPadding()
to produce less distinct SQL
strings (see also
[#5600]), or you
could avoid IN
lists, and replace them with:
NOT IN
predicates on temporary tablesNOT IN
predicates on unnested array bind variables@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...)
Note that generating dynamic SQL with arbitrary-length
NOT IN
predicates can cause cursor cache contention in some
databases that use unique SQL strings as a statement identifier (e.g.
SQLDialect.ORACLE
). In order to prevent such problems, you could
use Settings.isInListPadding()
to produce less distinct SQL
strings (see also
[#5600]), or you
could avoid IN
lists, and replace them with:
NOT IN
predicates on temporary tablesNOT IN
predicates on unnested array bind variables@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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,VERTICA}) Condition eq(QuantifiedSelect<? extends Record1<T>> query)
this = [quantifier] (Select<?> ...)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,VERTICA}) Condition ne(QuantifiedSelect<? extends Record1<T>> query)
this != [quantifier] (Select<?> ...)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,VERTICA}) Condition lt(QuantifiedSelect<? extends Record1<T>> query)
this < [quantifier] (Select<?> ...)
.@Support Condition lessOrEqual(Select<? extends Record1<T>> query)
this <= (Select<?> ...)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,VERTICA}) Condition le(QuantifiedSelect<? extends Record1<T>> query)
this <= [quantifier] (Select<?> ...)
.@Support Condition greaterThan(Select<? extends Record1<T>> query)
this > (Select<?> ...)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,VERTICA}) Condition gt(QuantifiedSelect<? extends Record1<T>> query)
this > [quantifier] (Select<?> ...)
.@Support Condition greaterOrEqual(Select<? extends Record1<T>> query)
this >= (Select<?> ...)
.@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLSERVER,SYBASE,TERADATA,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)
.@Deprecated @Support Field<Integer> sign()
DSL.sign(Field)
instead.DSL.sign(Field)
@Deprecated @Support Field<T> abs()
DSL.abs(Field)
instead.DSL.abs(Field)
@Deprecated @Support Field<T> round()
DSL.round(Field)
instead.DSL.round(Field)
@Deprecated @Support Field<T> round(int decimals)
DSL.round(Field, int)
instead.DSL.round(Field, int)
@Deprecated @Support Field<T> floor()
DSL.floor(Field)
instead.DSL.floor(Field)
@Deprecated @Support Field<T> ceil()
DSL.ceil(Field)
instead.DSL.ceil(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> sqrt()
DSL.sqrt(Field)
instead.DSL.sqrt(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> exp()
DSL.exp(Field)
instead.DSL.exp(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> ln()
DSL.ln(Field)
instead.DSL.ln(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> log(int base)
DSL.log(Field, int)
instead.DSL.log(Field, int)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> acos()
DSL.acos(Field)
instead.DSL.acos(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> asin()
DSL.asin(Field)
instead.DSL.asin(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> atan()
DSL.atan(Field)
instead.DSL.atan(Field)
@Deprecated @Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> atan2(Number y)
DSL.atan2(Field, Number)
instead.DSL.atan2(Field, Number)
@Deprecated @Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> atan2(Field<? extends Number> y)
DSL.atan2(Field, Field)
instead.DSL.atan2(Field, Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> cos()
DSL.cos(Field)
instead.DSL.cos(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> sin()
DSL.sin(Field)
instead.DSL.sin(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> tan()
DSL.tan(Field)
instead.DSL.tan(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> cot()
DSL.cot(Field)
instead.DSL.cot(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> sinh()
DSL.sinh(Field)
instead.DSL.sinh(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> cosh()
DSL.cosh(Field)
instead.DSL.cosh(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> tanh()
DSL.tanh(Field)
instead.DSL.tanh(Field)
@Deprecated @Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,REDSHIFT,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> coth()
DSL.coth(Field)
instead.DSL.coth(Field)
@Deprecated @Support Field<BigDecimal> deg()
DSL.deg(Field)
instead.DSL.deg(Field)
@Deprecated @Support Field<BigDecimal> rad()
DSL.rad(Field)
instead.DSL.rad(Field)
@Deprecated @Support Field<Integer> count()
DSL.count(Field)
instead.DSL.count(Field)
@Deprecated @Support Field<Integer> countDistinct()
DSL.countDistinct(Field)
instead.DSL.countDistinct(Field)
@Deprecated @Support Field<T> max()
DSL.max(Field)
instead.DSL.max(Field)
@Deprecated @Support Field<T> min()
DSL.min(Field)
instead.DSL.min(Field)
@Deprecated @Support Field<BigDecimal> sum()
DSL.sum(Field)
instead.DSL.sum(Field)
@Deprecated @Support Field<BigDecimal> avg()
DSL.avg(Field)
instead.DSL.avg(Field)
@Deprecated @Support(value={CUBRID,HSQLDB,ORACLE,SYBASE,TERADATA}) Field<BigDecimal> median()
DSL.median(Field)
instead.DSL.median(Field)
@Deprecated @Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> stddevPop()
DSL.stddevPop(Field)
instead.DSL.stddevPop(Field)
@Deprecated @Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> stddevSamp()
DSL.stddevSamp(Field)
instead.DSL.stddevSamp(Field)
@Deprecated @Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> varPop()
DSL.varPop(Field)
instead.DSL.varPop(Field)
@Deprecated @Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<BigDecimal> varSamp()
DSL.varSamp(Field)
instead.DSL.varSamp(Field)
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<Integer> countOver()
DSL.count(Field)
instead.DSL.count(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<T> maxOver()
DSL.max(Field)
instead.DSL.max(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<T> minOver()
DSL.min(Field)
instead.DSL.min(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<BigDecimal> sumOver()
DSL.sum(Field)
instead.DSL.sum(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<BigDecimal> avgOver()
DSL.avg(Field)
instead.DSL.avg(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) WindowIgnoreNullsStep<T> firstValue()
DSL.firstValue(Field)
instead.DSL.firstValue(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA}) WindowIgnoreNullsStep<T> lastValue()
DSL.lastValue(Field)
instead.DSL.lastValue(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lead()
DSL.lead(Field)
instead.DSL.lead(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lead(int offset)
DSL.lead(Field, int)
instead.DSL.lead(Field, int)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lead(int offset, T defaultValue)
DSL.lead(Field, int, Object)
instead.@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lead(int offset, Field<T> defaultValue)
DSL.lead(Field, int, Field)
instead.DSL.lead(Field, int, Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lag()
DSL.lag(Field)
instead.DSL.lag(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lag(int offset)
DSL.lag(Field, int)
instead.DSL.lag(Field, int)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lag(int offset, T defaultValue)
DSL.lag(Field, int, Object)
instead.DSL.lag(Field, int, Object)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,DB2,FIREBIRD_3_0,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,TERADATA,VERTICA}) WindowIgnoreNullsStep<T> lag(int offset, Field<T> defaultValue)
DSL.lag(Field, int, Field)
instead.DSL.lag(Field, int, Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<BigDecimal> stddevPopOver()
DSL.stddevPop(Field)
instead.DSL.stddevPop(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<BigDecimal> stddevSampOver()
DSL.stddevSamp(Field)
instead.DSL.stddevSamp(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<BigDecimal> varPopOver()
DSL.varPop(Field)
instead.DSL.varPop(Field)
,
WindowOverStep.over()
@Deprecated @Support(value={AURORA_POSTGRES,CUBRID,DB2,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) WindowPartitionByStep<BigDecimal> varSampOver()
DSL.varSamp(Field)
instead.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,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> rpad(Field<? extends Number> length)
DSLContext
DSL.rpad(Field, Field)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> rpad(int length)
DSLContext
DSL.rpad(Field, int)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> rpad(Field<? extends Number> length, Field<String> character)
DSLContext
DSL.rpad(Field, Field, Field)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> rpad(int length, char character)
DSLContext
DSL.rpad(Field, int, char)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> lpad(Field<? extends Number> length)
DSLContext
DSL.lpad(Field, Field)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> lpad(int length)
DSLContext
DSL.lpad(Field, int)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> lpad(Field<? extends Number> length, Field<String> character)
DSLContext
DSL.lpad(Field, Field, Field)
@Support(value={ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> lpad(int length, char character)
DSLContext
DSL.lpad(Field, int, char)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> repeat(Number count)
DSLContext
DSL.repeat(Field, int)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> repeat(Field<? extends Number> count)
DSLContext
DSL.repeat(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> replace(Field<String> search)
DSLContext
DSL.replace(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> replace(String search)
DSLContext
DSL.replace(Field, String)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> replace(Field<String> search, Field<String> replace)
DSLContext
DSL.replace(Field, Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLITE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<String> replace(String search, String replace)
DSLContext
DSL.replace(Field, String, String)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<Integer> position(String search)
DSLContext
DSL.position(Field, String)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INGRES,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<Integer> position(Field<String> search)
DSLContext
DSL.position(Field, Field)
@Support(value={ASE,AURORA_MYSQL,AURORA_POSTGRES,CUBRID,DB2,FIREBIRD,H2,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) Field<Integer> ascii()
DSLContext
DSL.ascii(Field)
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER}) Field<String> collate(String collation)
DSL.collation(String)
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER}) Field<String> collate(Name collation)
DSL.collation(Name)
@Support(value={AURORA_MYSQL,AURORA_POSTGRES,HSQLDB,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER}) Field<String> collate(Collation collation)
@Support Field<String> concat(Field<?>... fields)
DSLContext
DSL.concat(Field...)
@Support Field<String> concat(String... values)
DSLContext
DSL.concat(String...)
@Support Field<String> concat(char... 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)
@Deprecated @Support Field<Integer> extract(DatePart datePart)
DSL#extract(DatePart)
instead.DSL.extract(Field, DatePart)
@Deprecated @Support Field<T> greatest(T... others)
DSL.greatest(Field, Field...)
instead.DSL.greatest(Field, Field...)
@Deprecated @Support Field<T> greatest(Field<?>... others)
DSL.greatest(Field, Field...)
instead.DSL.greatest(Field, Field...)
@Deprecated @Support Field<T> least(T... others)
DSL.least(Field, Field...)
instead.DSL.least(Field, Field...)
@Deprecated @Support Field<T> least(Field<?>... others)
DSL.least(Field, Field...)
instead.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...)
@Support(value={DB2,ORACLE}) Field<T> plus()
Example:
TABLE1.COL.plus().eq(TABLE2.COL);
TABLE1.COL.eq(TABLE2.COL.plus());
The above will generate
TABLE1.COL(+) = TABLE2.COL
TABLE1.COL = TABLE2.COL(+)
Field<T> field(Record record)
Record.field(Field)
.
This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream.
T get(Record record)
Record.get(Field)
.
This method can be used in its method reference form conveniently on a
generated table, for instance, when mapping records in a stream:
DSL.using(configuration)
.fetch("select * from t")
.stream()
.map(MY_TABLE.ID::get)
.forEach(System.out::println);
T getValue(Record record)
Record.getValue(Field)
.
This method can be used in its method reference form conveniently on a
generated table, for instance, when mapping records in a stream:
DSL.using(configuration)
.fetch("select * from t")
.stream()
.map(MY_TABLE.ID::getValue)
.forEach(System.out::println);
T original(Record record)
Record.original(Field)
.
This method can be used in its method reference form conveniently on a
generated table, for instance, when mapping records in a stream:
DSL.using(configuration)
.fetch("select * from t")
.stream()
.map(MY_TABLE.ID::original)
.forEach(System.out::println);
boolean changed(Record record)
Record.changed(Field)
.
This method can be used in its method reference form conveniently on a
generated table, for instance, when mapping records in a stream:
DSL.using(configuration)
.fetch("select * from t")
.stream()
.map(MY_TABLE.ID::changed)
.forEach(System.out::println);
void reset(Record record)
Record.reset(Field)
.
This method can be used in its method reference form conveniently on a
generated table, for instance, when mapping records in a stream:
DSL.using(configuration)
.fetch("select * from t")
.stream()
.forEach(MY_TABLE.ID::reset);
Record1<T> from(Record record)
Record.into(Field)
.
This method can be used in its method reference form conveniently on a
generated table, for instance, when mapping records in a stream:
DSL.using(configuration)
.fetch("select * from t")
.stream()
.map(MY_TABLE.ID::from)
.forEach(System.out::println);
Copyright © 2019. All rights reserved.