Row value expressions are mainly useful for use in predicates, when comparing several values in one go, which can be more elegant than expanding the row value expression predicate in other equivalent syntaxes. This is especially true for non-equality predicates. For instance, the following two predicates are equivalent in SQL:
(A, B) > (X, Y)
(A > X) OR (A = X AND B > Y)
Example:
// Assuming import static org.jooq.impl.DSL.*;
using(configuration)
.select()
.from(CUSTOMER)
.where(row(CUSTOMER.FIRST_NAME, CUSTOMER.LAST_NAME).in(
select(ACTOR.FIRST_NAME, ACTOR.LAST_NAME).from(ACTOR)
))
.fetch();
Note
Not all databases support row value expressions, but many row value expression operations can be emulated on all databases. See relevant row value expression method Javadocs for details.
Instances can be created using DSL#row(Object. and overloads.
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull BetweenAndStep4 | between(T1 minValue1, T2 minValue2, T3 minValue3, T4 minValue4)
Check if this row value expression is within a range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | |
| public @NotNull BetweenAndStep4 | |
| public @NotNull BetweenAndStep4 | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull BetweenAndStep4 | betweenSymmetric(T1 minValue1, T2 minValue2, T3 minValue3, T4 minValue4)
Check if this row value expression is within a symmetric range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | |
| public @NotNull BetweenAndStep4 | betweenSymmetric(Row4<T1, T2, T3, T4> minValue)
Check if this row value expression is within a symmetric range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | betweenSymmetric(Record4<T1, T2, T3, T4> minValue)
Check if this row value expression is within a symmetric range of two records. |
| public @NotNull Condition | betweenSymmetric(Row4<T1, T2, T3, T4> minValue, Row4<T1, T2, T3, T4> maxValue)
Deprecated
as a consequence of
Check if this row value expression is within a symmetric range of two
other row value expressions.
Condition being deprecated.
|
| public @NotNull Condition | betweenSymmetric(Record4<T1, T2, T3, T4> minValue, Record4<T1, T2, T3, T4> maxValue)
Deprecated
as a consequence of
Check if this row value expression is within a symmetric range of two
records.
Condition being deprecated.
|
| public @NotNull Condition | compare(Comparator comparator, Row4<T1, T2, T3, T4> row)
Deprecated
as a consequence of
Compare this row value expression with another row value expression
using a dynamic comparator.
Condition being deprecated.
|
| public @NotNull Condition | compare(Comparator comparator, Record4<T1, T2, T3, T4> record)
Deprecated
as a consequence of
Compare this row value expression with a record
using a dynamic comparator.
Condition being deprecated.
|
| public @NotNull Condition | compare(Comparator comparator, T1 t1, T2 t2, T3 t3, T4 t4)
Deprecated
as a consequence of
Compare this row value expression with another row value expression
using a dynamic comparator.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | compare(Comparator comparator, Select<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect
using a dynamic comparator.
Condition being deprecated.
|
| public @NotNull Condition | compare(Comparator comparator, QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect
using a dynamic comparator.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | eq(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for equality.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | equal(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for equality.
Condition being deprecated.
|
| public @NotNull Field | |
| public @NotNull Field | |
| public @NotNull Field | |
| public @NotNull Field | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | ge(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | greaterOrEqual(Row4<T1, T2, T3, T4> row)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
order.
Condition being deprecated.
|
| public @NotNull Condition | greaterOrEqual(Record4<T1, T2, T3, T4> record)
Deprecated
as a consequence of
Compare this row value expression with a record for order.
Condition being deprecated.
|
| public @NotNull Condition | greaterOrEqual(T1 t1, T2 t2, T3 t3, T4 t4)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
order.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | greaterOrEqual(Select<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | greaterOrEqual(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | greaterThan(Row4<T1, T2, T3, T4> row)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
order.
Condition being deprecated.
|
| public @NotNull Condition | greaterThan(Record4<T1, T2, T3, T4> record)
Deprecated
as a consequence of
Compare this row value expression with a record for order.
Condition being deprecated.
|
| public @NotNull Condition | greaterThan(T1 t1, T2 t2, T3 t3, T4 t4)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
order.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | greaterThan(Select<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | greaterThan(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | gt(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | in(Collection<? extends Row4<T1, T2, T3, T4>> rows)
Deprecated
as a consequence of
Compare this row value expression with a set of row value expressions for
equality.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | isDistinctFrom(Row4<T1, T2, T3, T4> row)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | isDistinctFrom(Record4<T1, T2, T3, T4> record)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | isDistinctFrom(T1 t1, T2 t2, T3 t3, T4 t4)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | isDistinctFrom(Select<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | isNotDistinctFrom(Row4<T1, T2, T3, T4> row)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | isNotDistinctFrom(Record4<T1, T2, T3, T4> record)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | isNotDistinctFrom(T1 t1, T2 t2, T3 t3, T4 t4)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | isNotDistinctFrom(Select<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
distinctness.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | le(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | lessOrEqual(Row4<T1, T2, T3, T4> row)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
order.
Condition being deprecated.
|
| public @NotNull Condition | lessOrEqual(Record4<T1, T2, T3, T4> record)
Deprecated
as a consequence of
Compare this row value expression with a record for order.
Condition being deprecated.
|
| public @NotNull Condition | lessOrEqual(T1 t1, T2 t2, T3 t3, T4 t4)
Deprecated
as a consequence of
Compare this row value expression with another row value expression for
order.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | lessOrEqual(Select<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | lessOrEqual(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | lessThan(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | lt(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for order.
Condition being deprecated.
|
| public <U> @NotNull SelectField | mapping(Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends U> function)
A convenience method to define a local |
| public <U> @NotNull SelectField | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | ne(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for non-equality.
Condition being deprecated.
|
| public @NotNull BetweenAndStep4 | notBetween(T1 minValue1, T2 minValue2, T3 minValue3, T4 minValue4)
Check if this row value expression is not within a range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | |
| public @NotNull BetweenAndStep4 | notBetween(Row4<T1, T2, T3, T4> minValue)
Check if this row value expression is not within a range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | notBetween(Record4<T1, T2, T3, T4> minValue)
Check if this row value expression is within a range of two records. |
| public @NotNull Condition | notBetween(Row4<T1, T2, T3, T4> minValue, Row4<T1, T2, T3, T4> maxValue)
Deprecated
as a consequence of
Check if this row value expression is not within a range of two other
row value expressions.
Condition being deprecated.
|
| public @NotNull Condition | notBetween(Record4<T1, T2, T3, T4> minValue, Record4<T1, T2, T3, T4> maxValue)
Deprecated
as a consequence of
Check if this row value expression is within a range of two records.
Condition being deprecated.
|
| public @NotNull BetweenAndStep4 | notBetweenSymmetric(T1 minValue1, T2 minValue2, T3 minValue3, T4 minValue4)
Check if this row value expression is not within a symmetric range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | |
| public @NotNull BetweenAndStep4 | notBetweenSymmetric(Row4<T1, T2, T3, T4> minValue)
Check if this row value expression is not within a symmetric range of two other row value expressions. |
| public @NotNull BetweenAndStep4 | notBetweenSymmetric(Record4<T1, T2, T3, T4> minValue)
Check if this row value expression is not within a symmetric range of two records. |
| public @NotNull Condition | notBetweenSymmetric(Row4<T1, T2, T3, T4> minValue, Row4<T1, T2, T3, T4> maxValue)
Deprecated
as a consequence of
Check if this row value expression is not within a symmetric range of two
other row value expressions.
Condition being deprecated.
|
| public @NotNull Condition | notBetweenSymmetric(Record4<T1, T2, T3, T4> minValue, Record4<T1, T2, T3, T4> maxValue)
Deprecated
as a consequence of
Check if this row value expression is not within a symmetric range of two
records.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | notEqual(QuantifiedSelect<? extends Record4<T1, T2, T3, T4>> select)
Deprecated
as a consequence of
Compare this row value expression with a subselect for non-equality.
Condition being deprecated.
|
| public @NotNull Condition | notIn(Collection<? extends Row4<T1, T2, T3, T4>> rows)
Deprecated
as a consequence of
Compare this row value expression with a set of row value expressions for
equality.
Condition being deprecated.
|
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition | |
| public @NotNull Condition |