Top Description Methods
org.jooq

public Interface Row1<T1>

extends Row, SelectField<Record1<T1>>
Known Direct Implementers
org.jooq.impl.RowImpl1
Static Imports
org.jooq.SQLDialect.*

A row value expression.

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.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull BetweenAndStep1<T1>
between(T1 minValue1)

Check if this row value expression is within a range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
between(Field<T1> minValue1)

Deprecated as a consequence of Field being deprecated.
Check if this row value expression is within a range of two other row value expressions.
public @NotNull BetweenAndStep1<T1>
between(Row1<T1> minValue)

Check if this row value expression is within a range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
between(Record1<T1> minValue)

Check if this row value expression is within a range of two records.

public @NotNull Condition
between(Row1<T1> minValue, Row1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is within a range of two other row value expressions.
public @NotNull Condition
between(Record1<T1> minValue, Record1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is within a range of two records.
public @NotNull BetweenAndStep1<T1>
betweenSymmetric(T1 minValue1)

Check if this row value expression is within a symmetric range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
betweenSymmetric(Field<T1> minValue1)

Deprecated as a consequence of Field being deprecated.
Check if this row value expression is within a symmetric range of two other row value expressions.
public @NotNull BetweenAndStep1<T1>
betweenSymmetric(Row1<T1> minValue)

Check if this row value expression is within a symmetric range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
betweenSymmetric(Record1<T1> minValue)

Check if this row value expression is within a symmetric range of two records.

public @NotNull Condition
betweenSymmetric(Row1<T1> minValue, Row1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is within a symmetric range of two other row value expressions.
public @NotNull Condition
betweenSymmetric(Record1<T1> minValue, Record1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is within a symmetric range of two records.
public @NotNull Condition
compare(Comparator comparator, Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression using a dynamic comparator.
public @NotNull Condition
compare(Comparator comparator, Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record using a dynamic comparator.
public @NotNull Condition
compare(Comparator comparator, T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression using a dynamic comparator.
public @NotNull Condition
compare(Comparator comparator, Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression using a dynamic comparator.
public @NotNull Condition
compare(Comparator comparator, Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect using a dynamic comparator.
public @NotNull Condition
compare(Comparator comparator, QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect using a dynamic comparator.
public @NotNull Condition
eq(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for equality.
public @NotNull Condition
eq(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for equality.
public @NotNull Condition
eq(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for equality.
public @NotNull Condition
eq(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for equality.
public @NotNull Condition
eq(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for equality.
public @NotNull Condition
eq(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for equality.
public @NotNull Condition
equal(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for equality.
public @NotNull Condition
equal(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for equality.
public @NotNull Condition
equal(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for equality.
public @NotNull Condition
equal(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for equality.
public @NotNull Condition
equal(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for equality.
public @NotNull Condition
equal(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for equality.
public @NotNull Field<T1>
field1()

Deprecated as a consequence of Field being deprecated.
Get the first field.
public @NotNull Condition
ge(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
ge(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
ge(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
ge(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
ge(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
ge(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
greaterOrEqual(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
greaterOrEqual(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
greaterOrEqual(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
greaterOrEqual(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
greaterOrEqual(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
greaterOrEqual(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
greaterThan(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
greaterThan(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
greaterThan(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
greaterThan(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
greaterThan(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
greaterThan(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
gt(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
gt(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
gt(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
gt(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
gt(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
gt(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
in(Collection<? extends Row1<T1>> rows)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of row value expressions for equality.
public @NotNull Condition
in(Result<? extends Record1<T1>> result)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of records for equality.
public @NotNull Condition
in(Row1<T1>... rows)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of row value expressions for equality.
public @NotNull Condition
in(Record1<T1>... record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of records for equality.
public @NotNull Condition
in(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for equality.
public @NotNull Condition
isDistinctFrom(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isDistinctFrom(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isDistinctFrom(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isDistinctFrom(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isDistinctFrom(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isNotDistinctFrom(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isNotDistinctFrom(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isNotDistinctFrom(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isNotDistinctFrom(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
isNotDistinctFrom(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for distinctness.
public @NotNull Condition
le(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
le(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
le(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
le(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
le(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
le(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
lessOrEqual(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lessOrEqual(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
lessOrEqual(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lessOrEqual(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lessOrEqual(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
lessOrEqual(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
lessThan(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lessThan(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
lessThan(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lessThan(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lessThan(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
lessThan(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
lt(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lt(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for order.
public @NotNull Condition
lt(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lt(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for order.
public @NotNull Condition
lt(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public @NotNull Condition
lt(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for order.
public <U> @NotNull SelectField<U>
mapping(Function1<? super T1, ? extends U> function)

A convenience method to define a local Record1 to custom type RecordMapper that can be used when projecting Row types in SELECT or RETURNING clauses.

public <U> @NotNull SelectField<U>
mapping(Class<U> uType, Function1<? super T1, ? extends U> function)

A convenience method to define a local Record1 to custom type RecordMapper that can be used when projecting Row types in SELECT or RETURNING clauses.

public @NotNull Condition
ne(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for non-equality.
public @NotNull Condition
ne(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for non-equality.
public @NotNull Condition
ne(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for non-equality.
public @NotNull Condition
ne(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for non-equality.
public @NotNull Condition
ne(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for non-equality.
public @NotNull Condition
ne(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for non-equality.
public @NotNull BetweenAndStep1<T1>
notBetween(T1 minValue1)

Check if this row value expression is not within a range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
notBetween(Field<T1> minValue1)

Deprecated as a consequence of Field being deprecated.
Check if this row value expression is not within a range of two other row value expressions.
public @NotNull BetweenAndStep1<T1>
notBetween(Row1<T1> minValue)

Check if this row value expression is not within a range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
notBetween(Record1<T1> minValue)

Check if this row value expression is within a range of two records.

public @NotNull Condition
notBetween(Row1<T1> minValue, Row1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is not within a range of two other row value expressions.
public @NotNull Condition
notBetween(Record1<T1> minValue, Record1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is within a range of two records.
public @NotNull BetweenAndStep1<T1>
notBetweenSymmetric(T1 minValue1)

Check if this row value expression is not within a symmetric range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
notBetweenSymmetric(Field<T1> minValue1)

Deprecated as a consequence of Field being deprecated.
Check if this row value expression is not within a symmetric range of two other row value expressions.
public @NotNull BetweenAndStep1<T1>
notBetweenSymmetric(Row1<T1> minValue)

Check if this row value expression is not within a symmetric range of two other row value expressions.

public @NotNull BetweenAndStep1<T1>
notBetweenSymmetric(Record1<T1> minValue)

Check if this row value expression is not within a symmetric range of two records.

public @NotNull Condition
notBetweenSymmetric(Row1<T1> minValue, Row1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is not within a symmetric range of two other row value expressions.
public @NotNull Condition
notBetweenSymmetric(Record1<T1> minValue, Record1<T1> maxValue)

Deprecated as a consequence of Condition being deprecated.
Check if this row value expression is not within a symmetric range of two records.
public @NotNull Condition
notEqual(Row1<T1> row)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for non-equality.
public @NotNull Condition
notEqual(Record1<T1> record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a record for non-equality
public @NotNull Condition
notEqual(T1 t1)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with another row value expression for.
public @NotNull Condition
notEqual(Field<T1> t1)

Deprecated as a consequence of Field and Condition being deprecated.
Compare this row value expression with another row value expression for non-equality.
public @NotNull Condition
notEqual(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for non-equality.
public @NotNull Condition
notEqual(QuantifiedSelect<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for non-equality.
public @NotNull Condition
notIn(Collection<? extends Row1<T1>> rows)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of row value expressions for equality.
public @NotNull Condition
notIn(Result<? extends Record1<T1>> result)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of records for equality.
public @NotNull Condition
notIn(Row1<T1>... rows)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of row value expressions for equality.
public @NotNull Condition
notIn(Record1<T1>... record)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a set of records for non-equality.
public @NotNull Condition
notIn(Select<? extends Record1<T1>> select)

Deprecated as a consequence of Condition being deprecated.
Compare this row value expression with a subselect for non-equality.
Inherited from org.jooq.Row:
$fieldsisNotNullisNullsize
Inherited from org.jooq.SelectField:
asasasconvertconvertconvertconvertFromconvertFromconvertToconvertTo