-
- All Superinterfaces:
FieldOrRow,QueryPart,Row,Serializable
public interface Row2<T1,T2> extends Row
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull BetweenAndStep2<T1,T2>between(Field<T1> minValue1, Field<T2> minValue2)Check if this row value expression is within a range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>between(Record2<T1,T2> minValue)Check if this row value expression is within a range of two records.@NotNull Conditionbetween(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)Check if this row value expression is within a range of two records.@NotNull BetweenAndStep2<T1,T2>between(Row2<T1,T2> minValue)Check if this row value expression is within a range of two other row value expressions.@NotNull Conditionbetween(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)Check if this row value expression is within a range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>between(T1 minValue1, T2 minValue2)Check if this row value expression is within a range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>betweenSymmetric(Field<T1> minValue1, Field<T2> minValue2)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>betweenSymmetric(Record2<T1,T2> minValue)Check if this row value expression is within a symmetric range of two records.@NotNull ConditionbetweenSymmetric(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)Check if this row value expression is within a symmetric range of two records.@NotNull BetweenAndStep2<T1,T2>betweenSymmetric(Row2<T1,T2> minValue)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull ConditionbetweenSymmetric(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>betweenSymmetric(T1 minValue1, T2 minValue2)Check if this row value expression is within a symmetric range of two other row value expressions.@NotNull Conditioncompare(Comparator comparator, Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, Record2<T1,T2> record)Compare this row value expression with a record using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, Row2<T1,T2> row)Compare this row value expression with another row value expression using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect using a dynamic comparator.@NotNull Conditioncompare(Comparator comparator, T1 t1, T2 t2)Compare this row value expression with another row value expression using a dynamic comparator.@NotNull Conditioneq(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for equality.@NotNull Conditioneq(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for equality.@NotNull Conditioneq(Record2<T1,T2> record)Compare this row value expression with a record for equality.@NotNull Conditioneq(Row2<T1,T2> row)Compare this row value expression with another row value expression for equality.@NotNull Conditioneq(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for equality.@NotNull Conditioneq(T1 t1, T2 t2)Compare this row value expression with another row value expression for equality.@NotNull Conditionequal(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for equality.@NotNull Conditionequal(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for equality.@NotNull Conditionequal(Record2<T1,T2> record)Compare this row value expression with a record for equality.@NotNull Conditionequal(Row2<T1,T2> row)Compare this row value expression with another row value expression for equality.@NotNull Conditionequal(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for equality.@NotNull Conditionequal(T1 t1, T2 t2)Compare this row value expression with another row value expression for equality.@NotNull Field<T1>field1()Get the first field.@NotNull Field<T2>field2()Get the second field.@NotNull Conditionge(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull Conditionge(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditionge(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull Conditionge(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull Conditionge(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditionge(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterOrEqual(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterOrEqual(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterOrEqual(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull ConditiongreaterOrEqual(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterOrEqual(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterOrEqual(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterThan(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterThan(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterThan(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull ConditiongreaterThan(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull ConditiongreaterThan(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditiongreaterThan(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull Conditiongt(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull Conditiongt(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditiongt(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull Conditiongt(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull Conditiongt(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditiongt(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull Conditionin(Collection<? extends Row2<T1,T2>> rows)Compare this row value expression with a set of row value expressions for equality.@NotNull Conditionin(Record2<T1,T2>... record)Compare this row value expression with a set of records for equality.@NotNull Conditionin(Result<? extends Record2<T1,T2>> result)Compare this row value expression with a set of records for equality.@NotNull Conditionin(Row2<T1,T2>... rows)Compare this row value expression with a set of row value expressions for equality.@NotNull Conditionin(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for equality.@NotNull ConditionisDistinctFrom(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(Record2<T1,T2> record)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(Row2<T1,T2> row)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(Select<? extends Record2<T1,T2>> select)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisDistinctFrom(T1 t1, T2 t2)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Record2<T1,T2> record)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Row2<T1,T2> row)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(Select<? extends Record2<T1,T2>> select)Compare this row value expression with another row value expression for distinctness.@NotNull ConditionisNotDistinctFrom(T1 t1, T2 t2)Compare this row value expression with another row value expression for distinctness.@NotNull Conditionle(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull Conditionle(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditionle(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull Conditionle(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull Conditionle(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditionle(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull ConditionlessOrEqual(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull ConditionlessOrEqual(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditionlessOrEqual(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull ConditionlessOrEqual(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull ConditionlessOrEqual(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditionlessOrEqual(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull ConditionlessThan(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull ConditionlessThan(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditionlessThan(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull ConditionlessThan(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull ConditionlessThan(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull ConditionlessThan(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull Conditionlt(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for order.@NotNull Conditionlt(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditionlt(Record2<T1,T2> record)Compare this row value expression with a record for order.@NotNull Conditionlt(Row2<T1,T2> row)Compare this row value expression with another row value expression for order.@NotNull Conditionlt(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for order.@NotNull Conditionlt(T1 t1, T2 t2)Compare this row value expression with another row value expression for order.@NotNull Conditionne(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for non-equality.@NotNull Conditionne(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for non-equality.@NotNull Conditionne(Record2<T1,T2> record)Compare this row value expression with a record for non-equality.@NotNull Conditionne(Row2<T1,T2> row)Compare this row value expression with another row value expression for non-equality.@NotNull Conditionne(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for non-equality.@NotNull Conditionne(T1 t1, T2 t2)Compare this row value expression with another row value expression for non-equality.@NotNull BetweenAndStep2<T1,T2>notBetween(Field<T1> minValue1, Field<T2> minValue2)Check if this row value expression is not within a range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>notBetween(Record2<T1,T2> minValue)Check if this row value expression is within a range of two records.@NotNull ConditionnotBetween(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)Check if this row value expression is within a range of two records.@NotNull BetweenAndStep2<T1,T2>notBetween(Row2<T1,T2> minValue)Check if this row value expression is not within a range of two other row value expressions.@NotNull ConditionnotBetween(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)Check if this row value expression is not within a range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>notBetween(T1 minValue1, T2 minValue2)Check if this row value expression is not within a range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>notBetweenSymmetric(Field<T1> minValue1, Field<T2> minValue2)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>notBetweenSymmetric(Record2<T1,T2> minValue)Check if this row value expression is not within a symmetric range of two records.@NotNull ConditionnotBetweenSymmetric(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)Check if this row value expression is not within a symmetric range of two records.@NotNull BetweenAndStep2<T1,T2>notBetweenSymmetric(Row2<T1,T2> minValue)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull ConditionnotBetweenSymmetric(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull BetweenAndStep2<T1,T2>notBetweenSymmetric(T1 minValue1, T2 minValue2)Check if this row value expression is not within a symmetric range of two other row value expressions.@NotNull ConditionnotEqual(Field<T1> t1, Field<T2> t2)Compare this row value expression with another row value expression for non-equality.@NotNull ConditionnotEqual(QuantifiedSelect<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for non-equality.@NotNull ConditionnotEqual(Record2<T1,T2> record)Compare this row value expression with a record for non-equality@NotNull ConditionnotEqual(Row2<T1,T2> row)Compare this row value expression with another row value expression for non-equality.@NotNull ConditionnotEqual(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for non-equality.@NotNull ConditionnotEqual(T1 t1, T2 t2)Compare this row value expression with another row value expression for.@NotNull ConditionnotIn(Collection<? extends Row2<T1,T2>> rows)Compare this row value expression with a set of row value expressions for equality.@NotNull ConditionnotIn(Record2<T1,T2>... record)Compare this row value expression with a set of records for non-equality.@NotNull ConditionnotIn(Result<? extends Record2<T1,T2>> result)Compare this row value expression with a set of records for equality.@NotNull ConditionnotIn(Row2<T1,T2>... rows)Compare this row value expression with a set of row value expressions for equality.@NotNull ConditionnotIn(Select<? extends Record2<T1,T2>> select)Compare this row value expression with a subselect for non-equality.@NotNull Conditionoverlaps(Field<T1> t1, Field<T2> t2)Check if this row value expression overlaps another row value expression.@NotNull Conditionoverlaps(Row2<T1,T2> row)Check if this row value expression overlaps another row value expression.@NotNull Conditionoverlaps(T1 t1, T2 t2)Check if this row value expression overlaps another row value expression.
-
-
-
Method Detail
-
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, Row2<T1,T2> row)
Compare this row value expression with another row value expression using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported
-
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, Record2<T1,T2> record)
Compare this row value expression with a record using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported
-
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, T1 t1, T2 t2)
Compare this row value expression with another row value expression using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported
-
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported
-
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported
-
compare
@NotNull @Support @NotNull Condition compare(Comparator comparator, QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect using a dynamic comparator.See the explicit comparison methods for details. Note, not all
Comparatortypes are supported
-
equal
@NotNull @Support @NotNull Condition equal(Row2<T1,T2> row)
Compare this row value expression with another row value expression for equality.Row equality comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) = (1, 2)is equivalent toA = 1 AND B = 2
-
equal
@NotNull @Support @NotNull Condition equal(Record2<T1,T2> record)
Compare this row value expression with a record for equality.- See Also:
equal(Row2)
-
equal
@NotNull @Support @NotNull Condition equal(T1 t1, T2 t2)
Compare this row value expression with another row value expression for equality.- See Also:
equal(Row2)
-
equal
@NotNull @Support @NotNull Condition equal(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for equality.- See Also:
equal(Row2)
-
equal
@NotNull @Support @NotNull Condition equal(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for equality.- See Also:
equal(Row2)
-
equal
@NotNull @Support @NotNull Condition equal(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for equality.
-
eq
@NotNull @Support @NotNull Condition eq(Row2<T1,T2> row)
Compare this row value expression with another row value expression for equality.- See Also:
equal(Row2)
-
eq
@NotNull @Support @NotNull Condition eq(Record2<T1,T2> record)
Compare this row value expression with a record for equality.- See Also:
equal(Row2)
-
eq
@NotNull @Support @NotNull Condition eq(T1 t1, T2 t2)
Compare this row value expression with another row value expression for equality.- See Also:
equal(Row2)
-
eq
@NotNull @Support @NotNull Condition eq(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for equality.- See Also:
equal(Row2)
-
eq
@NotNull @Support @NotNull Condition eq(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for equality.- See Also:
equal(Row2)
-
eq
@NotNull @Support @NotNull Condition eq(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for equality.
-
notEqual
@NotNull @Support @NotNull Condition notEqual(Row2<T1,T2> row)
Compare this row value expression with another row value expression for non-equality.Row non-equality comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) <> (1, 2)is equivalent toNOT(A = 1 AND B = 2)
-
notEqual
@NotNull @Support @NotNull Condition notEqual(Record2<T1,T2> record)
Compare this row value expression with a record for non-equality- See Also:
notEqual(Row2)
-
notEqual
@NotNull @Support @NotNull Condition notEqual(T1 t1, T2 t2)
Compare this row value expression with another row value expression for. non-equality- See Also:
notEqual(Row2)
-
notEqual
@NotNull @Support @NotNull Condition notEqual(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(Row2)
-
notEqual
@NotNull @Support @NotNull Condition notEqual(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for non-equality.- See Also:
notEqual(Row2)
-
notEqual
@NotNull @Support @NotNull Condition notEqual(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for non-equality.
-
ne
@NotNull @Support @NotNull Condition ne(Row2<T1,T2> row)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(Row2)
-
ne
@NotNull @Support @NotNull Condition ne(Record2<T1,T2> record)
Compare this row value expression with a record for non-equality.- See Also:
notEqual(Row2)
-
ne
@NotNull @Support @NotNull Condition ne(T1 t1, T2 t2)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(Row2)
-
ne
@NotNull @Support @NotNull Condition ne(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(Row2)
-
ne
@NotNull @Support @NotNull Condition ne(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for non-equality.- See Also:
notEqual(Row2)
-
ne
@NotNull @Support @NotNull Condition ne(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for non-equality.
-
isDistinctFrom
@NotNull @Support @NotNull Condition isDistinctFrom(Row2<T1,T2> row)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@NotNull @Support @NotNull Condition isDistinctFrom(Record2<T1,T2> record)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@NotNull @Support @NotNull Condition isDistinctFrom(T1 t1, T2 t2)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@NotNull @Support @NotNull Condition isDistinctFrom(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@NotNull @Support @NotNull Condition isDistinctFrom(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@NotNull @Support @NotNull Condition isNotDistinctFrom(Row2<T1,T2> row)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@NotNull @Support @NotNull Condition isNotDistinctFrom(Record2<T1,T2> record)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@NotNull @Support @NotNull Condition isNotDistinctFrom(T1 t1, T2 t2)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@NotNull @Support @NotNull Condition isNotDistinctFrom(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@NotNull @Support @NotNull Condition isNotDistinctFrom(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with another row value expression for distinctness.
-
lessThan
@NotNull @Support @NotNull Condition lessThan(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B, C) < (1, 2, 3)is equivalent toA < 1 OR (A = 1 AND B < 2) OR (A = 1 AND B = 2 AND C < 3)
-
lessThan
@NotNull @Support @NotNull Condition lessThan(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
lessThan(Row2)
-
lessThan
@NotNull @Support @NotNull Condition lessThan(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(Row2)
-
lessThan
@NotNull @Support @NotNull Condition lessThan(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(Row2)
-
lessThan
@NotNull @Support @NotNull Condition lessThan(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
lessThan(Row2)
-
lessThan
@NotNull @Support @NotNull Condition lessThan(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
lt
@NotNull @Support @NotNull Condition lt(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(Row2)
-
lt
@NotNull @Support @NotNull Condition lt(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
lessThan(Row2)
-
lt
@NotNull @Support @NotNull Condition lt(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(Row2)
-
lt
@NotNull @Support @NotNull Condition lt(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(Row2)
-
lt
@NotNull @Support @NotNull Condition lt(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
lessThan(Row2)
-
lt
@NotNull @Support @NotNull Condition lt(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
lessOrEqual
@NotNull @Support @NotNull Condition lessOrEqual(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) <= (1, 2)is equivalent toA < 1 OR (A = 1 AND B < 2) OR (A = 1 AND B = 2)
-
lessOrEqual
@NotNull @Support @NotNull Condition lessOrEqual(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
lessOrEqual(Row2)
-
lessOrEqual
@NotNull @Support @NotNull Condition lessOrEqual(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(Row2)
-
lessOrEqual
@NotNull @Support @NotNull Condition lessOrEqual(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(Row2)
-
lessOrEqual
@NotNull @Support @NotNull Condition lessOrEqual(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
lessOrEqual(Row2)
-
lessOrEqual
@NotNull @Support @NotNull Condition lessOrEqual(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
le
@NotNull @Support @NotNull Condition le(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(Row2)
-
le
@NotNull @Support @NotNull Condition le(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
lessOrEqual(Row2)
-
le
@NotNull @Support @NotNull Condition le(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(Row2)
-
le
@NotNull @Support @NotNull Condition le(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(Row2)
-
le
@NotNull @Support @NotNull Condition le(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
lessOrEqual(Row2)
-
le
@NotNull @Support @NotNull Condition le(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
greaterThan
@NotNull @Support @NotNull Condition greaterThan(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B, C) > (1, 2, 3)is equivalent toA > 1 OR (A = 1 AND B > 2) OR (A = 1 AND B = 2 AND C > 3)
-
greaterThan
@NotNull @Support @NotNull Condition greaterThan(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
greaterThan(Row2)
-
greaterThan
@NotNull @Support @NotNull Condition greaterThan(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(Row2)
-
greaterThan
@NotNull @Support @NotNull Condition greaterThan(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(Row2)
-
greaterThan
@NotNull @Support @NotNull Condition greaterThan(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
greaterThan(Row2)
-
greaterThan
@NotNull @Support @NotNull Condition greaterThan(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
gt
@NotNull @Support @NotNull Condition gt(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(Row2)
-
gt
@NotNull @Support @NotNull Condition gt(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
greaterThan(Row2)
-
gt
@NotNull @Support @NotNull Condition gt(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(Row2)
-
gt
@NotNull @Support @NotNull Condition gt(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(Row2)
-
gt
@NotNull @Support @NotNull Condition gt(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
greaterThan(Row2)
-
gt
@NotNull @Support @NotNull Condition gt(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
greaterOrEqual
@NotNull @Support @NotNull Condition greaterOrEqual(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.Row order comparison predicates can be emulated in those databases that do not support such predicates natively:
(A, B) >= (1, 2)is equivalent toA > 1 OR (A = 1 AND B > 2) OR (A = 1 AND B = 2)
-
greaterOrEqual
@NotNull @Support @NotNull Condition greaterOrEqual(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
greaterOrEqual(Row2)
-
greaterOrEqual
@NotNull @Support @NotNull Condition greaterOrEqual(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(Row2)
-
greaterOrEqual
@NotNull @Support @NotNull Condition greaterOrEqual(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(Row2)
-
greaterOrEqual
@NotNull @Support @NotNull Condition greaterOrEqual(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
greaterOrEqual(Row2)
-
greaterOrEqual
@NotNull @Support @NotNull Condition greaterOrEqual(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
ge
@NotNull @Support @NotNull Condition ge(Row2<T1,T2> row)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(Row2)
-
ge
@NotNull @Support @NotNull Condition ge(Record2<T1,T2> record)
Compare this row value expression with a record for order.- See Also:
greaterOrEqual(Row2)
-
ge
@NotNull @Support @NotNull Condition ge(T1 t1, T2 t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(Row2)
-
ge
@NotNull @Support @NotNull Condition ge(Field<T1> t1, Field<T2> t2)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(Row2)
-
ge
@NotNull @Support @NotNull Condition ge(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.- See Also:
greaterOrEqual(Row2)
-
ge
@NotNull @Support @NotNull Condition ge(QuantifiedSelect<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for order.
-
between
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> between(T1 minValue1, T2 minValue2)
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(Row2, Row2)
-
between
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> between(Field<T1> minValue1, Field<T2> minValue2)
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(Row2, Row2)
-
between
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> between(Row2<T1,T2> minValue)
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(Row2, Row2)
-
between
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> between(Record2<T1,T2> minValue)
Check if this row value expression is within a range of two records.- See Also:
between(Row2, Row2)
-
between
@NotNull @Support @NotNull Condition between(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)
Check if this row value expression is within a range of two other row value expressions.This is the same as calling
between(minValue).and(maxValue)The expression
A BETWEEN B AND Cis equivalent to the expressionA >= B AND A <= Cfor those SQL dialects that do not properly support theBETWEENpredicate for row value expressions
-
between
@NotNull @Support @NotNull Condition between(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)
Check if this row value expression is within a range of two records.This is the same as calling
between(minValue).and(maxValue)- See Also:
between(Row2, Row2)
-
betweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> betweenSymmetric(T1 minValue1, T2 minValue2)
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(Row2, Row2)
-
betweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> betweenSymmetric(Field<T1> minValue1, Field<T2> minValue2)
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(Row2, Row2)
-
betweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> betweenSymmetric(Row2<T1,T2> minValue)
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(Row2, Row2)
-
betweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> betweenSymmetric(Record2<T1,T2> minValue)
Check if this row value expression is within a symmetric range of two records.- See Also:
betweenSymmetric(Row2, Row2)
-
betweenSymmetric
@NotNull @Support @NotNull Condition betweenSymmetric(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)
Check if this row value expression is within a symmetric range of two other row value expressions.This is the same as calling
betweenSymmetric(minValue).and(maxValue)The expression
A BETWEEN SYMMETRIC B AND Cis equivalent to the expression(A >= B AND A <= C) OR (A >= C AND A <= B)for those SQL dialects that do not properly support theBETWEENpredicate for row value expressions
-
betweenSymmetric
@NotNull @Support @NotNull Condition betweenSymmetric(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)
Check if this row value expression is within a symmetric range of two records.This is the same as calling
betweenSymmetric(minValue).and(maxValue)- See Also:
betweenSymmetric(Row2, Row2)
-
notBetween
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetween(T1 minValue1, T2 minValue2)
Check if this row value expression is not within a range of two other row value expressions.- See Also:
between(Row2, Row2)
-
notBetween
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetween(Field<T1> minValue1, Field<T2> minValue2)
Check if this row value expression is not within a range of two other row value expressions.- See Also:
notBetween(Row2, Row2)
-
notBetween
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetween(Row2<T1,T2> minValue)
Check if this row value expression is not within a range of two other row value expressions.- See Also:
notBetween(Row2, Row2)
-
notBetween
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetween(Record2<T1,T2> minValue)
Check if this row value expression is within a range of two records.- See Also:
notBetween(Row2, Row2)
-
notBetween
@NotNull @Support @NotNull Condition notBetween(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)
Check if this row value expression is not within a range of two other row value expressions.This is the same as calling
notBetween(minValue).and(maxValue)The expression
A NOT BETWEEN B AND Cis equivalent to the expressionA < B OR A > Cfor those SQL dialects that do not properly support theBETWEENpredicate for row value expressions
-
notBetween
@NotNull @Support @NotNull Condition notBetween(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)
Check if this row value expression is within a range of two records.This is the same as calling
notBetween(minValue).and(maxValue)- See Also:
notBetween(Row2, Row2)
-
notBetweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetweenSymmetric(T1 minValue1, T2 minValue2)
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(Row2, Row2)
-
notBetweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetweenSymmetric(Field<T1> minValue1, Field<T2> minValue2)
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(Row2, Row2)
-
notBetweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetweenSymmetric(Row2<T1,T2> minValue)
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(Row2, Row2)
-
notBetweenSymmetric
@NotNull @Support @NotNull BetweenAndStep2<T1,T2> notBetweenSymmetric(Record2<T1,T2> minValue)
Check if this row value expression is not within a symmetric range of two records.- See Also:
notBetweenSymmetric(Row2, Row2)
-
notBetweenSymmetric
@NotNull @Support @NotNull Condition notBetweenSymmetric(Row2<T1,T2> minValue, Row2<T1,T2> maxValue)
Check if this row value expression is not within a symmetric range of two other row value expressions.This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)The expression
A NOT BETWEEN SYMMETRIC B AND Cis equivalent to the expression(A < B OR A > C) AND (A < C OR A > B)for those SQL dialects that do not properly support theBETWEENpredicate for row value expressions
-
notBetweenSymmetric
@NotNull @Support @NotNull Condition notBetweenSymmetric(Record2<T1,T2> minValue, Record2<T1,T2> maxValue)
Check if this row value expression is not within a symmetric range of two records.This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)- See Also:
notBetweenSymmetric(Row2, Row2)
-
in
@NotNull @Support @NotNull Condition in(Collection<? extends Row2<T1,T2>> rows)
Compare this row value expression with a set of row value expressions for equality.Row IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) IN ((1, 2), (3, 4))is equivalent to((A, B) = (1, 2)) OR ((A, B) = (3, 4)), which is equivalent to(A = 1 AND B = 2) OR (A = 3 AND B = 4)Note that generating dynamic SQL with arbitrary-length
INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
-
in
@NotNull @Support @NotNull Condition in(Result<? extends Record2<T1,T2>> result)
Compare this row value expression with a set of records for equality.Row IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) IN ((1, 2), (3, 4))is equivalent to((A, B) = (1, 2)) OR ((A, B) = (3, 4)), which is equivalent to(A = 1 AND B = 2) OR (A = 3 AND B = 4)Note that generating dynamic SQL with arbitrary-length
INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
-
in
@NotNull @Support @NotNull Condition in(Row2<T1,T2>... rows)
Compare this row value expression with a set of row value expressions for equality.Note that generating dynamic SQL with arbitrary-length
INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
- See Also:
in(Collection)
-
in
@NotNull @Support @NotNull Condition in(Record2<T1,T2>... record)
Compare this row value expression with a set of records for equality.Note that generating dynamic SQL with arbitrary-length
INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:INpredicates on temporary tablesINpredicates on unnested array bind variables
- See Also:
in(Collection)
-
in
@NotNull @Support @NotNull Condition in(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for equality.- See Also:
in(Collection)
-
notIn
@NotNull @Support @NotNull Condition notIn(Collection<? extends Row2<T1,T2>> rows)
Compare this row value expression with a set of row value expressions for equality.Row NOT IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) NOT IN ((1, 2), (3, 4))is equivalent toNOT(((A, B) = (1, 2)) OR ((A, B) = (3, 4))), which is equivalent toNOT((A = 1 AND B = 2) OR (A = 3 AND B = 4))Note that generating dynamic SQL with arbitrary-length
NOT INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
-
notIn
@NotNull @Support @NotNull Condition notIn(Result<? extends Record2<T1,T2>> result)
Compare this row value expression with a set of records for equality.Row NOT IN predicates can be emulated in those databases that do not support such predicates natively:
(A, B) NOT IN ((1, 2), (3, 4))is equivalent toNOT(((A, B) = (1, 2)) OR ((A, B) = (3, 4))), which is equivalent toNOT((A = 1 AND B = 2) OR (A = 3 AND B = 4))Note that generating dynamic SQL with arbitrary-length
NOT INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
-
notIn
@NotNull @Support @NotNull Condition notIn(Row2<T1,T2>... rows)
Compare this row value expression with a set of row value expressions for equality.Note that generating dynamic SQL with arbitrary-length
NOT INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
- See Also:
notIn(Collection)
-
notIn
@NotNull @Support @NotNull Condition notIn(Record2<T1,T2>... record)
Compare this row value expression with a set of records for non-equality.Note that generating dynamic SQL with arbitrary-length
NOT INpredicates 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 useSettings.isInListPadding()to produce less distinct SQL strings (see also [#5600]), or you could avoidINlists, and replace them with:NOT INpredicates on temporary tablesNOT INpredicates on unnested array bind variables
- See Also:
notIn(Collection)
-
notIn
@NotNull @Support @NotNull Condition notIn(Select<? extends Record2<T1,T2>> select)
Compare this row value expression with a subselect for non-equality.- See Also:
notIn(Collection)
-
overlaps
@NotNull @Support @NotNull Condition overlaps(T1 t1, T2 t2)
Check if this row value expression overlaps another row value expression.The SQL standard specifies a temporal
OVERLAPSpredicate, which comes in two flavours:(DATE, DATE) OVERLAPS (DATE, DATE)(DATE, INTERVAL) OVERLAPS (DATE, INTERVAL)
jOOQ also supports arbitrary 2-degree row value expression comparisons, by emulating them as such
-- This predicate (A, B) OVERLAPS (C, D) -- can be emulated as such (C <= B) AND (A <= D)
-
overlaps
@NotNull @Support @NotNull Condition overlaps(Field<T1> t1, Field<T2> t2)
Check if this row value expression overlaps another row value expression.The SQL standard specifies a temporal
OVERLAPSpredicate, which comes in two flavours:(DATE, DATE) OVERLAPS (DATE, DATE)(DATE, INTERVAL) OVERLAPS (DATE, INTERVAL)
jOOQ also supports arbitrary 2-degree row value expression comparisons, by emulating them as such
-- This predicate (A, B) OVERLAPS (C, D) -- can be emulated as such (C <= B) AND (A <= D)
-
overlaps
@NotNull @Support @NotNull Condition overlaps(Row2<T1,T2> row)
Check if this row value expression overlaps another row value expression.The SQL standard specifies a temporal
OVERLAPSpredicate, which comes in two flavours:(DATE, DATE) OVERLAPS (DATE, DATE)(DATE, INTERVAL) OVERLAPS (DATE, INTERVAL)
jOOQ also supports arbitrary 2-degree row value expression comparisons, by emulating them as such
-- This predicate (A, B) OVERLAPS (C, D) -- can be emulated as such (C <= B) AND (A <= D)
-
-