-
- All Superinterfaces:
FieldOrRow,QueryPart,Row,Serializable
public interface RowN 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 BetweenAndStepNbetween(Object... minValues)Check if this row value expression is within a range of two other row value expressions.BetweenAndStepNbetween(Field<?>... minValues)Check if this row value expression is within a range of two other row value expressions.BetweenAndStepNbetween(Record minValue)Check if this row value expression is within a range of two records.Conditionbetween(Record minValue, Record maxValue)Check if this row value expression is within a range of two records.BetweenAndStepNbetween(RowN minValue)Check if this row value expression is within a range of two other row value expressions.Conditionbetween(RowN minValue, RowN maxValue)Check if this row value expression is within a range of two other row value expressions.BetweenAndStepNbetweenSymmetric(Object... minValues)Check if this row value expression is within a symmetric range of two other row value expressions.BetweenAndStepNbetweenSymmetric(Field<?>... minValues)Check if this row value expression is within a symmetric range of two other row value expressions.BetweenAndStepNbetweenSymmetric(Record minValue)Check if this row value expression is within a symmetric range of two records.ConditionbetweenSymmetric(Record minValue, Record maxValue)Check if this row value expression is within a symmetric range of two records.BetweenAndStepNbetweenSymmetric(RowN minValue)Check if this row value expression is within a symmetric range of two other row value expressions.ConditionbetweenSymmetric(RowN minValue, RowN maxValue)Check if this row value expression is within a symmetric range of two other row value expressions.Conditioncompare(Comparator comparator, Object... values)Compare this row value expression with another row value expression using a dynamic comparator.Conditioncompare(Comparator comparator, Field<?>... values)Compare this row value expression with another row value expression using a dynamic comparator.Conditioncompare(Comparator comparator, QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect using a dynamic comparator.Conditioncompare(Comparator comparator, Record record)Compare this row value expression with a record using a dynamic comparator.Conditioncompare(Comparator comparator, RowN row)Compare this row value expression with another row value expression using a dynamic comparator.Conditioncompare(Comparator comparator, Select<? extends Record> select)Compare this row value expression with a subselect using a dynamic comparator.Conditioneq(Object... values)Compare this row value expression with another row value expression for equality.Conditioneq(Field<?>... values)Compare this row value expression with another row value expression for equality.Conditioneq(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for equality.Conditioneq(Record record)Compare this row value expression with a record for equality.Conditioneq(RowN row)Compare this row value expression with another row value expression for equality.Conditioneq(Select<? extends Record> select)Compare this row value expression with a subselect for equality.Conditionequal(Object... values)Compare this row value expression with another row value expression for equality.Conditionequal(Field<?>... values)Compare this row value expression with another row value expression for equality.Conditionequal(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for equality.Conditionequal(Record record)Compare this row value expression with a record for equality.Conditionequal(RowN row)Compare this row value expression with another row value expression for equality.Conditionequal(Select<? extends Record> select)Compare this row value expression with a subselect for equality.Conditionge(Object... values)Compare this row value expression with another row value expression for order.Conditionge(Field<?>... values)Compare this row value expression with another row value expression for order.Conditionge(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.Conditionge(Record record)Compare this row value expression with a record for order.Conditionge(RowN row)Compare this row value expression with another row value expression for order.Conditionge(Select<? extends Record> select)Compare this row value expression with a subselect for order.ConditiongreaterOrEqual(Object... values)Compare this row value expression with another row value expression for order.ConditiongreaterOrEqual(Field<?>... values)Compare this row value expression with another row value expression for order.ConditiongreaterOrEqual(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.ConditiongreaterOrEqual(Record record)Compare this row value expression with a record for order.ConditiongreaterOrEqual(RowN row)Compare this row value expression with another row value expression for order.ConditiongreaterOrEqual(Select<? extends Record> select)Compare this row value expression with a subselect for order.ConditiongreaterThan(Object... values)Compare this row value expression with another row value expression for order.ConditiongreaterThan(Field<?>... values)Compare this row value expression with another row value expression for order.ConditiongreaterThan(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.ConditiongreaterThan(Record record)Compare this row value expression with a record for order.ConditiongreaterThan(RowN row)Compare this row value expression with another row value expression for order.ConditiongreaterThan(Select<? extends Record> select)Compare this row value expression with a subselect for order.Conditiongt(Object... values)Compare this row value expression with another row value expression for order.Conditiongt(Field<?>... values)Compare this row value expression with another row value expression for order.Conditiongt(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.Conditiongt(Record record)Compare this row value expression with a record for order.Conditiongt(RowN row)Compare this row value expression with another row value expression for order.Conditiongt(Select<? extends Record> select)Compare this row value expression with a subselect for order.Conditionin(Collection<? extends RowN> rows)Compare this row value expression with a set of row value expressions for equality.Conditionin(Record... record)Compare this row value expression with a set of records for equality.Conditionin(Result<? extends Record> result)Compare this row value expression with a set of records for equality.Conditionin(RowN... rows)Compare this row value expression with a set of row value expressions for equality.Conditionin(Select<? extends Record> select)Compare this row value expression with a subselect for equality.ConditionisDistinctFrom(Object... values)Compare this row value expression with another row value expression for distinctness.ConditionisDistinctFrom(Field<?>... values)Compare this row value expression with another row value expression for distinctness.ConditionisDistinctFrom(Record record)Compare this row value expression with another row value expression for distinctness.ConditionisDistinctFrom(RowN row)Compare this row value expression with another row value expression for distinctness.ConditionisNotDistinctFrom(Object... values)Compare this row value expression with another row value expression for distinctness.ConditionisNotDistinctFrom(Field<?>... values)Compare this row value expression with another row value expression for distinctness.ConditionisNotDistinctFrom(Record record)Compare this row value expression with another row value expression for distinctness.ConditionisNotDistinctFrom(RowN row)Compare this row value expression with another row value expression for distinctness.Conditionle(Object... values)Compare this row value expression with another row value expression for order.Conditionle(Field<?>... values)Compare this row value expression with another row value expression for order.Conditionle(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.Conditionle(Record record)Compare this row value expression with a record for order.Conditionle(RowN row)Compare this row value expression with another row value expression for order.Conditionle(Select<? extends Record> select)Compare this row value expression with a subselect for order.ConditionlessOrEqual(Object... values)Compare this row value expression with another row value expression for order.ConditionlessOrEqual(Field<?>... values)Compare this row value expression with another row value expression for order.ConditionlessOrEqual(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.ConditionlessOrEqual(Record record)Compare this row value expression with a record for order.ConditionlessOrEqual(RowN row)Compare this row value expression with another row value expression for order.ConditionlessOrEqual(Select<? extends Record> select)Compare this row value expression with a subselect for order.ConditionlessThan(Object... values)Compare this row value expression with another row value expression for order.ConditionlessThan(Field<?>... values)Compare this row value expression with another row value expression for order.ConditionlessThan(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.ConditionlessThan(Record record)Compare this row value expression with a record for order.ConditionlessThan(RowN row)Compare this row value expression with another row value expression for order.ConditionlessThan(Select<? extends Record> select)Compare this row value expression with a subselect for order.Conditionlt(Object... values)Compare this row value expression with another row value expression for order.Conditionlt(Field<?>... values)Compare this row value expression with another row value expression for order.Conditionlt(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for order.Conditionlt(Record record)Compare this row value expression with a record for order.Conditionlt(RowN row)Compare this row value expression with another row value expression for order.Conditionlt(Select<? extends Record> select)Compare this row value expression with a subselect for order.Conditionne(Object... values)Compare this row value expression with another row value expression for non-equality.Conditionne(Field<?>... values)Compare this row value expression with another row value expression for non-equality.Conditionne(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for non-equality.Conditionne(Record record)Compare this row value expression with a record for non-equality.Conditionne(RowN row)Compare this row value expression with another row value expression for non-equality.Conditionne(Select<? extends Record> select)Compare this row value expression with a subselect for non-equality.BetweenAndStepNnotBetween(Object... minValues)Check if this row value expression is not within a range of two other row value expressions.BetweenAndStepNnotBetween(Field<?>... minValues)Check if this row value expression is not within a range of two other row value expressions.BetweenAndStepNnotBetween(Record minValue)Check if this row value expression is within a range of two records.ConditionnotBetween(Record minValue, Record maxValue)Check if this row value expression is within a range of two records.BetweenAndStepNnotBetween(RowN minValue)Check if this row value expression is not within a range of two other row value expressions.ConditionnotBetween(RowN minValue, RowN maxValue)Check if this row value expression is not within a range of two other row value expressions.BetweenAndStepNnotBetweenSymmetric(Object... minValues)Check if this row value expression is not within a symmetric range of two other row value expressions.BetweenAndStepNnotBetweenSymmetric(Field<?>... minValues)Check if this row value expression is not within a symmetric range of two other row value expressions.BetweenAndStepNnotBetweenSymmetric(Record minValue)Check if this row value expression is not within a symmetric range of two records.ConditionnotBetweenSymmetric(Record minValue, Record maxValue)Check if this row value expression is not within a symmetric range of two records.BetweenAndStepNnotBetweenSymmetric(RowN minValue)Check if this row value expression is not within a symmetric range of two other row value expressions.ConditionnotBetweenSymmetric(RowN minValue, RowN maxValue)Check if this row value expression is not within a symmetric range of two other row value expressions.ConditionnotEqual(Object... values)Compare this row value expression with another row value expression for.ConditionnotEqual(Field<?>... values)Compare this row value expression with another row value expression for non-equality.ConditionnotEqual(QuantifiedSelect<? extends Record> select)Compare this row value expression with a subselect for non-equality.ConditionnotEqual(Record record)Compare this row value expression with a record for non-equalityConditionnotEqual(RowN row)Compare this row value expression with another row value expression for non-equality.ConditionnotEqual(Select<? extends Record> select)Compare this row value expression with a subselect for non-equality.ConditionnotIn(Collection<? extends RowN> rows)Compare this row value expression with a set of row value expressions for equality.ConditionnotIn(Record... record)Compare this row value expression with a set of records for non-equality.ConditionnotIn(Result<? extends Record> result)Compare this row value expression with a set of records for equality.ConditionnotIn(RowN... rows)Compare this row value expression with a set of row value expressions for equality.ConditionnotIn(Select<? extends Record> select)Compare this row value expression with a subselect for non-equality.
-
-
-
Method Detail
-
compare
@Support Condition compare(Comparator comparator, RowN 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
@Support Condition compare(Comparator comparator, Record 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
@Support Condition compare(Comparator comparator, Object... values)
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
@Support Condition compare(Comparator comparator, Field<?>... values)
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
@Support Condition compare(Comparator comparator, Select<? extends Record> 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
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,ORACLE,POSTGRES,SYBASE,VERTICA}) Condition compare(Comparator comparator, QuantifiedSelect<? extends Record> 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
@Support Condition equal(RowN 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
@Support Condition equal(Record record)
Compare this row value expression with a record for equality.- See Also:
equal(RowN)
-
equal
@Support Condition equal(Object... values)
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
equal
@Support Condition equal(Field<?>... values)
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
equal
@Support Condition equal(Select<? extends Record> select)
Compare this row value expression with a subselect for equality.- See Also:
equal(RowN)
-
equal
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,ORACLE,POSTGRES,SYBASE,VERTICA}) Condition equal(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for equality.
-
eq
@Support Condition eq(RowN row)
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
eq
@Support Condition eq(Record record)
Compare this row value expression with a record for equality.- See Also:
equal(RowN)
-
eq
@Support Condition eq(Object... values)
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
eq
@Support Condition eq(Field<?>... values)
Compare this row value expression with another row value expression for equality.- See Also:
equal(RowN)
-
eq
@Support Condition eq(Select<? extends Record> select)
Compare this row value expression with a subselect for equality.- See Also:
equal(RowN)
-
eq
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INGRES,ORACLE,POSTGRES,SYBASE,VERTICA}) Condition eq(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for equality.
-
notEqual
@Support Condition notEqual(RowN 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
@Support Condition notEqual(Record record)
Compare this row value expression with a record for non-equality- See Also:
notEqual(RowN)
-
notEqual
@Support Condition notEqual(Object... values)
Compare this row value expression with another row value expression for. non-equality- See Also:
notEqual(RowN)
-
notEqual
@Support Condition notEqual(Field<?>... values)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
notEqual
@Support Condition notEqual(Select<? extends Record> select)
Compare this row value expression with a subselect for non-equality.- See Also:
notEqual(RowN)
-
notEqual
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INGRES,ORACLE,POSTGRES,REDSHIFT,SYBASE}) Condition notEqual(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for non-equality.
-
ne
@Support Condition ne(RowN row)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
ne
@Support Condition ne(Record record)
Compare this row value expression with a record for non-equality.- See Also:
notEqual(RowN)
-
ne
@Support Condition ne(Object... values)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
ne
@Support Condition ne(Field<?>... values)
Compare this row value expression with another row value expression for non-equality.- See Also:
notEqual(RowN)
-
ne
@Support Condition ne(Select<? extends Record> select)
Compare this row value expression with a subselect for non-equality.- See Also:
notEqual(RowN)
-
ne
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HANA,HSQLDB,INGRES,ORACLE,POSTGRES,REDSHIFT,SYBASE}) Condition ne(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for non-equality.
-
isDistinctFrom
@Support Condition isDistinctFrom(RowN row)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@Support Condition isDistinctFrom(Record record)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@Support Condition isDistinctFrom(Object... values)
Compare this row value expression with another row value expression for distinctness.
-
isDistinctFrom
@Support Condition isDistinctFrom(Field<?>... values)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@Support Condition isNotDistinctFrom(RowN row)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@Support Condition isNotDistinctFrom(Record record)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@Support Condition isNotDistinctFrom(Object... values)
Compare this row value expression with another row value expression for distinctness.
-
isNotDistinctFrom
@Support Condition isNotDistinctFrom(Field<?>... values)
Compare this row value expression with another row value expression for distinctness.
-
lessThan
@Support Condition lessThan(RowN 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
@Support Condition lessThan(Record record)
Compare this row value expression with a record for order.- See Also:
lessThan(RowN)
-
lessThan
@Support Condition lessThan(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lessThan
@Support Condition lessThan(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lessThan
@Support Condition lessThan(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
lessThan(RowN)
-
lessThan
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition lessThan(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
lt
@Support Condition lt(RowN row)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lt
@Support Condition lt(Record record)
Compare this row value expression with a record for order.- See Also:
lessThan(RowN)
-
lt
@Support Condition lt(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lt
@Support Condition lt(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
lessThan(RowN)
-
lt
@Support Condition lt(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
lessThan(RowN)
-
lt
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition lt(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
lessOrEqual
@Support Condition lessOrEqual(RowN 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
@Support Condition lessOrEqual(Record record)
Compare this row value expression with a record for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
@Support Condition lessOrEqual(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
@Support Condition lessOrEqual(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
@Support Condition lessOrEqual(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
lessOrEqual(RowN)
-
lessOrEqual
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition lessOrEqual(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
le
@Support Condition le(RowN row)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
le
@Support Condition le(Record record)
Compare this row value expression with a record for order.- See Also:
lessOrEqual(RowN)
-
le
@Support Condition le(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
le
@Support Condition le(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
lessOrEqual(RowN)
-
le
@Support Condition le(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
lessOrEqual(RowN)
-
le
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition le(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
greaterThan
@Support Condition greaterThan(RowN 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
@Support Condition greaterThan(Record record)
Compare this row value expression with a record for order.- See Also:
greaterThan(RowN)
-
greaterThan
@Support Condition greaterThan(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
greaterThan
@Support Condition greaterThan(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
greaterThan
@Support Condition greaterThan(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
greaterThan(RowN)
-
greaterThan
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition greaterThan(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
gt
@Support Condition gt(RowN row)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
gt
@Support Condition gt(Record record)
Compare this row value expression with a record for order.- See Also:
greaterThan(RowN)
-
gt
@Support Condition gt(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
gt
@Support Condition gt(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterThan(RowN)
-
gt
@Support Condition gt(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
greaterThan(RowN)
-
gt
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition gt(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
greaterOrEqual
@Support Condition greaterOrEqual(RowN 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
@Support Condition greaterOrEqual(Record record)
Compare this row value expression with a record for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
@Support Condition greaterOrEqual(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
@Support Condition greaterOrEqual(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
@Support Condition greaterOrEqual(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
greaterOrEqual(RowN)
-
greaterOrEqual
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition greaterOrEqual(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
ge
@Support Condition ge(RowN row)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
ge
@Support Condition ge(Record record)
Compare this row value expression with a record for order.- See Also:
greaterOrEqual(RowN)
-
ge
@Support Condition ge(Object... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
ge
@Support Condition ge(Field<?>... values)
Compare this row value expression with another row value expression for order.- See Also:
greaterOrEqual(RowN)
-
ge
@Support Condition ge(Select<? extends Record> select)
Compare this row value expression with a subselect for order.- See Also:
greaterOrEqual(RowN)
-
ge
@Support({ASE,AURORA_POSTGRES,COCKROACHDB,CUBRID,FIREBIRD,H2,HSQLDB,INGRES,POSTGRES,SYBASE}) Condition ge(QuantifiedSelect<? extends Record> select)
Compare this row value expression with a subselect for order.
-
between
@Support BetweenAndStepN between(Object... minValues)
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
between
@Support BetweenAndStepN between(Field<?>... minValues)
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
between
@Support BetweenAndStepN between(RowN minValue)
Check if this row value expression is within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
between
@Support BetweenAndStepN between(Record minValue)
Check if this row value expression is within a range of two records.- See Also:
between(RowN, RowN)
-
between
@Support Condition between(RowN minValue, RowN 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
@Support Condition between(Record minValue, Record 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(RowN, RowN)
-
betweenSymmetric
@Support BetweenAndStepN betweenSymmetric(Object... minValues)
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
@Support BetweenAndStepN betweenSymmetric(Field<?>... minValues)
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
@Support BetweenAndStepN betweenSymmetric(RowN minValue)
Check if this row value expression is within a symmetric range of two other row value expressions.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
@Support BetweenAndStepN betweenSymmetric(Record minValue)
Check if this row value expression is within a symmetric range of two records.- See Also:
betweenSymmetric(RowN, RowN)
-
betweenSymmetric
@Support Condition betweenSymmetric(RowN minValue, RowN 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
@Support Condition betweenSymmetric(Record minValue, Record 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(RowN, RowN)
-
notBetween
@Support BetweenAndStepN notBetween(Object... minValues)
Check if this row value expression is not within a range of two other row value expressions.- See Also:
between(RowN, RowN)
-
notBetween
@Support BetweenAndStepN notBetween(Field<?>... minValues)
Check if this row value expression is not within a range of two other row value expressions.- See Also:
notBetween(RowN, RowN)
-
notBetween
@Support BetweenAndStepN notBetween(RowN minValue)
Check if this row value expression is not within a range of two other row value expressions.- See Also:
notBetween(RowN, RowN)
-
notBetween
@Support BetweenAndStepN notBetween(Record minValue)
Check if this row value expression is within a range of two records.- See Also:
notBetween(RowN, RowN)
-
notBetween
@Support Condition notBetween(RowN minValue, RowN 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
@Support Condition notBetween(Record minValue, Record 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(RowN, RowN)
-
notBetweenSymmetric
@Support BetweenAndStepN notBetweenSymmetric(Object... minValues)
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
@Support BetweenAndStepN notBetweenSymmetric(Field<?>... minValues)
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
@Support BetweenAndStepN notBetweenSymmetric(RowN minValue)
Check if this row value expression is not within a symmetric range of two other row value expressions.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
@Support BetweenAndStepN notBetweenSymmetric(Record minValue)
Check if this row value expression is not within a symmetric range of two records.- See Also:
notBetweenSymmetric(RowN, RowN)
-
notBetweenSymmetric
@Support Condition notBetweenSymmetric(RowN minValue, RowN 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
@Support Condition notBetweenSymmetric(Record minValue, Record 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(RowN, RowN)
-
in
@Support Condition in(Collection<? extends RowN> 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
@Support Condition in(Result<? extends Record> 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
@Support Condition in(RowN... 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
@Support Condition in(Record... 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
@Support Condition in(Select<? extends Record> select)
Compare this row value expression with a subselect for equality.- See Also:
in(Collection)
-
notIn
@Support Condition notIn(Collection<? extends RowN> 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
@Support Condition notIn(Result<? extends Record> 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
@Support Condition notIn(RowN... 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
@Support Condition notIn(Record... 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
@Support Condition notIn(Select<? extends Record> select)
Compare this row value expression with a subselect for non-equality.- See Also:
notIn(Collection)
-
-