Top Description Methods
org.jooq

public Interface Condition

extends Field<Boolean>
Known Direct Subinterfaces
org.jooq.JSONExistsOnStep, org.jooq.Null, org.jooq.LikeEscapeStep, org.jooq.impl.QOM.True, org.jooq.impl.QOM.False, org.jooq.impl.QOM.Null, org.jooq.impl.QOM.CombinedCondition, org.jooq.impl.QOM.CompareCondition, org.jooq.impl.QOM.Between, org.jooq.impl.QOM.InList, org.jooq.impl.QOM.NotInList, org.jooq.impl.QOM.RegexpLike, org.jooq.impl.QOM.RowIsNull, org.jooq.impl.QOM.RowIsNotNull, org.jooq.impl.QOM.RowOverlaps, org.jooq.impl.QOM.SelectIsNull, org.jooq.impl.QOM.SelectIsNotNull, org.jooq.impl.QOM.XMLExists, org.jooq.impl.QOM.TableEq, org.jooq.impl.QOM.EqQuantified, org.jooq.impl.QOM.Exists, org.jooq.impl.QOM.GeQuantified, org.jooq.impl.QOM.GtQuantified, org.jooq.impl.QOM.In, org.jooq.impl.QOM.IsNull, org.jooq.impl.QOM.IsNotNull, org.jooq.impl.QOM.LeQuantified, org.jooq.impl.QOM.Like, org.jooq.impl.QOM.LikeQuantified, org.jooq.impl.QOM.LikeIgnoreCase, org.jooq.impl.QOM.LtQuantified, org.jooq.impl.QOM.TableNe, org.jooq.impl.QOM.NeQuantified, org.jooq.impl.QOM.Not, org.jooq.impl.QOM.NotIn, org.jooq.impl.QOM.NotLike, org.jooq.impl.QOM.NotLikeQuantified, org.jooq.impl.QOM.NotLikeIgnoreCase, org.jooq.impl.QOM.NotSimilarTo, org.jooq.impl.QOM.NotSimilarToQuantified, org.jooq.impl.QOM.SimilarTo, org.jooq.impl.QOM.SimilarToQuantified, org.jooq.impl.QOM.Unique, org.jooq.impl.QOM.RowEq, org.jooq.impl.QOM.RowNe, org.jooq.impl.QOM.RowGt, org.jooq.impl.QOM.RowGe, org.jooq.impl.QOM.RowLt, org.jooq.impl.QOM.RowLe, org.jooq.impl.QOM.IsDocument, org.jooq.impl.QOM.IsNotDocument, org.jooq.impl.QOM.IsJson, org.jooq.impl.QOM.IsNotJson, org.jooq.impl.QOM.ArrayOverlap, org.jooq.impl.QOM.FieldCondition, org.jooq.impl.QOM.UEmptyCondition, org.jooq.False, org.jooq.True
Known Direct Implementers
org.jooq.impl.AbstractCondition, org.jooq.impl.ConditionProviderImpl
Imports
org.jooq.impl.DSL, org.jetbrains.annotations.NotNull

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

A condition or predicate.

Conditions can be used in a variety of SQL clauses. They're mainly used in a Select statement's WHERE clause, but can also appear in (non-exhaustive list):

Example:


// Assuming import static org.jooq.impl.DSL.*;

using(configuration)
   .select()
   .from(ACTOR)
   .where(ACTOR.ACTOR_ID.eq(1)) // The eq operator produces a Condition from two Fields
   .fetch();

Instances can be created using DSL#condition(Field) and overloads, or by calling a comparison operator method on Field, such as Field#eq(Field).

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull Condition

Returns:

The combined condition
and
(Field<Boolean>
The other condition
other
)

Deprecated as a consequence of Field and Condition being deprecated.
Combine this condition with another one using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
and
(SQL
The other condition
sql
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
and
(String
The other condition
sql
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
and
(String
The other condition
sql
,
Object...
The bindings
bindings
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
and
(String
The SQL clause, containing {numbered placeholders} where query parts can be injected
sql
,
QueryPart...
The QueryPart objects that are rendered at the {numbered placeholder} locations
parts
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#AND operator.
public @NotNull Condition
and(Condition arg2)

Deprecated as a consequence of Condition being deprecated.
The AND operator.
public @NotNull Condition

Returns:

The combined condition
andExists
(Select<?>
The EXISTS's subquery
select
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with an EXISTS clause using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
andNot
(Condition
The other condition
other
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with a negated other one using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
andNot
(Field<Boolean>
The other condition
other
)

Deprecated as a consequence of Field and Condition being deprecated.
Combine this condition with a negated other one using the Operator#AND operator.
public @NotNull Condition

Returns:

The combined condition
andNotExists
(Select<?>
The EXISTS's subquery
select
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with a NOT EXIST clause using the Operator#AND operator.
public @NotNull Condition
not()

Deprecated as a consequence of Condition being deprecated.
The NOT operator.
public @NotNull Condition

Returns:

The combined condition
or
(Field<Boolean>
The other condition
other
)

Deprecated as a consequence of Field and Condition being deprecated.
Combine this condition with another one using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
or
(SQL
The other condition
sql
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
or
(String
The other condition
sql
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
or
(String
The other condition
sql
,
Object...
The bindings
bindings
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
or
(String
The SQL clause, containing {numbered placeholders} where query parts can be injected
sql
,
QueryPart...
The QueryPart objects that are rendered at the {numbered placeholder} locations
parts
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#OR operator.
public @NotNull Condition
or(Condition arg2)

Deprecated as a consequence of Condition being deprecated.
The OR operator.
public @NotNull Condition

Returns:

The combined condition
orExists
(Select<?>
The EXISTS's subquery
select
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with an EXISTS clause using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
orNot
(Condition
The other condition
other
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with a negated other one using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
orNot
(Field<Boolean>
The other condition
other
)

Deprecated as a consequence of Field and Condition being deprecated.
Combine this condition with a negated other one using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
orNotExists
(Select<?>
The EXISTS's subquery
select
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with a NOT EXIST clause using the Operator#OR operator.
public @NotNull Condition

Returns:

The combined condition
xor
(Field<Boolean>
The other condition
other
)

Deprecated as a consequence of Field and Condition being deprecated.
Combine this condition with another one using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xor
(SQL
The other condition
sql
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xor
(String
The other condition
sql
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xor
(String
The other condition
sql
,
Object...
The bindings
bindings
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xor
(String
The SQL clause, containing {numbered placeholders} where query parts can be injected
sql
,
QueryPart...
The QueryPart objects that are rendered at the {numbered placeholder} locations
parts
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with another one using the Operator#XOR operator.
public @NotNull Condition
xor(Condition arg2)

Deprecated as a consequence of Condition being deprecated.
The XOR operator.
public @NotNull Condition

Returns:

The combined condition
xorExists
(Select<?>
The EXISTS's subquery
select
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with an EXISTS clause using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xorNot
(Condition
The other condition
other
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with a negated other one using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xorNot
(Field<Boolean>
The other condition
other
)

Deprecated as a consequence of Field and Condition being deprecated.
Combine this condition with a negated other one using the Operator#XOR operator.
public @NotNull Condition

Returns:

The combined condition
xorNotExists
(Select<?>
The EXISTS's subquery
select
)

Deprecated as a consequence of Condition being deprecated.
Combine this condition with a NOT EXIST clause using the Operator#XOR operator.
Inherited from org.jooq.Field:
absacosaddaddasasasasascasciiasinatanatan2atan2avgavgOverbetweenbetweenbetweenbetweenbetweenSymmetricbetweenSymmetricbetweenSymmetricbetweenSymmetricbitAndbitAndbitLengthbitNandbitNandbitNorbitNorbitNotbitOrbitOrbitXNorbitXNorbitXorbitXorcastcastcastceilchangedcharLengthcoalescecoalescecoercecoercecoercecollatecollatecollatecommentcommentcomparecomparecomparecompareconcatconcatconcatcontainscontainscontainsIgnoreCasecontainsIgnoreCaseconvertconvertconvertconvertFromconvertFromconvertToconvertTocoscoshcotcothcountcountDistinctcountOverdecodedecodedecodedecodedegdescdivdivdividedivideendsWithendsWithendsWithIgnoreCaseendsWithIgnoreCaseeqeqeqeqequalequalequalequalequalIgnoreCaseequalIgnoreCaseequalsexpextractfieldfirstValuefloorfromgegegegegetgetCommentgetNamegetValuegreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterThangreaterThangreaterThangreaterThangreatestgreatestgtgtgtgtinininininisDistinctFromisDistinctFromisDistinctFromisDocumentisFalseisJsonisNotDistinctFromisNotDistinctFromisNotDistinctFromisNotDocumentisNotJsonisNotNullisNullisTruelaglaglaglaglastValueleleleleleadleadleadleadleastleastlengthlessOrEquallessOrEquallessOrEquallessOrEquallessThanlessThanlessThanlessThanlikelikelikelikelikelikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeRegexlikeRegexlnloglowerlpadlpadlpadlpadltltltltltrimmaxmaxOvermedianminminOverminusminusmodmodmodulomodulomulmulmultiplymultiplynenenenenegnotBetweennotBetweennotBetweennotBetweennotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotContainsnotContainsnotContainsIgnoreCasenotContainsIgnoreCasenotEqualnotEqualnotEqualnotEqualnotEqualIgnoreCasenotEqualIgnoreCasenotInnotInnotInnotInnotInnotLikenotLikenotLikenotLikenotLikenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeRegexnotLikeRegexnotSimilarTonotSimilarTonotSimilarTonotSimilarTonotSimilarTonullifnullifnullsFirstnullsLastnvlnvlnvl2nvl2octetLengthoriginalpluspluspositionpositionpowpowpowerpowerradremremrepeatrepeatreplacereplacereplacereplaceresetroundroundrpadrpadrpadrpadrtrimshlshlshrshrsignsimilarTosimilarTosimilarTosimilarTosimilarTosinsinhsortsortsortAscsortAscsortDefaultsortDescsortDescsqrtstartsWithstartsWithstartsWithIgnoreCasestartsWithIgnoreCasestddevPopstddevPopOverstddevSampstddevSampOversubsubsubstringsubstringsubstringsubstringsubtractsubtractsumsumOvertantanhtimestimestrimunaryMinusunaryPlusuppervarPopvarPopOvervarSampvarSampOver

Method Detail

andback to summary
public @NotNull Condition and(Field<Boolean> other)

Deprecated

as a consequence of Field and Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#AND operator.

Parameters
other:Field<Boolean>

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
andback to summary
public @NotNull Condition and(SQL sql)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#AND operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:SQL

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(SQL), SQL
andback to summary
public @NotNull Condition and(String sql)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#AND operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String), SQL
andback to summary
public @NotNull Condition and(String sql, Object... bindings)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#AND operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The other condition

bindings:Object[]

The bindings

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String, Object...), DSL#sql(String, Object...), SQL
andback to summary
public @NotNull Condition and(String sql, QueryPart... parts)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#AND operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The SQL clause, containing {numbered placeholders} where query parts can be injected

parts:QueryPart[]

The QueryPart objects that are rendered at the {numbered placeholder} locations

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String, QueryPart...), DSL#sql(String, QueryPart...), SQL
andback to summary
public @NotNull Condition and(Condition arg2)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

The AND operator.

Annotations
@NotNull
@Support
andExistsback to summary
public @NotNull Condition andExists(Select<?> select)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with an EXISTS clause using the Operator#AND operator.

Parameters
select:Select<?>

The EXISTS's subquery

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
andNotback to summary
public @NotNull Condition andNot(Condition other)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with a negated other one using the Operator#AND operator.

Parameters
other:Condition

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
andNotback to summary
public @NotNull Condition andNot(Field<Boolean> other)

Deprecated

as a consequence of Field and Condition being deprecated. See corresponding docs for further information.

Combine this condition with a negated other one using the Operator#AND operator.

Parameters
other:Field<Boolean>

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
andNotExistsback to summary
public @NotNull Condition andNotExists(Select<?> select)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with a NOT EXIST clause using the Operator#AND operator.

Parameters
select:Select<?>

The EXISTS's subquery

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
notback to summary
public @NotNull Condition not()

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

The NOT operator.

Annotations
@NotNull
@Support
orback to summary
public @NotNull Condition or(Field<Boolean> other)

Deprecated

as a consequence of Field and Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#OR operator.

Parameters
other:Field<Boolean>

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
orback to summary
public @NotNull Condition or(SQL sql)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#OR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:SQL

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(SQL), SQL
orback to summary
public @NotNull Condition or(String sql)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#OR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String), SQL
orback to summary
public @NotNull Condition or(String sql, Object... bindings)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#OR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The other condition

bindings:Object[]

The bindings

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String, Object...), DSL#sql(String, Object...), SQL
orback to summary
public @NotNull Condition or(String sql, QueryPart... parts)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#OR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The SQL clause, containing {numbered placeholders} where query parts can be injected

parts:QueryPart[]

The QueryPart objects that are rendered at the {numbered placeholder} locations

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String, Object...), DSL#sql(String, QueryPart...), SQL
orback to summary
public @NotNull Condition or(Condition arg2)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

The OR operator.

Annotations
@NotNull
@Support
orExistsback to summary
public @NotNull Condition orExists(Select<?> select)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with an EXISTS clause using the Operator#OR operator.

Parameters
select:Select<?>

The EXISTS's subquery

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
orNotback to summary
public @NotNull Condition orNot(Condition other)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with a negated other one using the Operator#OR operator.

Parameters
other:Condition

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
orNotback to summary
public @NotNull Condition orNot(Field<Boolean> other)

Deprecated

as a consequence of Field and Condition being deprecated. See corresponding docs for further information.

Combine this condition with a negated other one using the Operator#OR operator.

Parameters
other:Field<Boolean>

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
orNotExistsback to summary
public @NotNull Condition orNotExists(Select<?> select)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with a NOT EXIST clause using the Operator#OR operator.

Parameters
select:Select<?>

The EXISTS's subquery

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
xorback to summary
public @NotNull Condition xor(Field<Boolean> other)

Deprecated

as a consequence of Field and Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#XOR operator.

Parameters
other:Field<Boolean>

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
xorback to summary
public @NotNull Condition xor(SQL sql)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#XOR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:SQL

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(SQL), SQL
xorback to summary
public @NotNull Condition xor(String sql)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#XOR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String), SQL
xorback to summary
public @NotNull Condition xor(String sql, Object... bindings)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#XOR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The other condition

bindings:Object[]

The bindings

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String, Object...), DSL#sql(String, Object...), SQL
xorback to summary
public @NotNull Condition xor(String sql, QueryPart... parts)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with another one using the Operator#XOR operator.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The SQL clause, containing {numbered placeholders} where query parts can be injected

parts:QueryPart[]

The QueryPart objects that are rendered at the {numbered placeholder} locations

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
@PlainSQL
See Also
DSL#condition(String, Object...), DSL#sql(String, QueryPart...), SQL
xorback to summary
public @NotNull Condition xor(Condition arg2)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

The XOR operator.

Annotations
@NotNull
@Support
xorExistsback to summary
public @NotNull Condition xorExists(Select<?> select)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with an EXISTS clause using the Operator#XOR operator.

Parameters
select:Select<?>

The EXISTS's subquery

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
xorNotback to summary
public @NotNull Condition xorNot(Condition other)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with a negated other one using the Operator#XOR operator.

Parameters
other:Condition

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
xorNotback to summary
public @NotNull Condition xorNot(Field<Boolean> other)

Deprecated

as a consequence of Field and Condition being deprecated. See corresponding docs for further information.

Combine this condition with a negated other one using the Operator#XOR operator.

Parameters
other:Field<Boolean>

The other condition

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support
xorNotExistsback to summary
public @NotNull Condition xorNotExists(Select<?> select)

Deprecated

as a consequence of Condition being deprecated. See corresponding docs for further information.

Combine this condition with a NOT EXIST clause using the Operator#XOR operator.

Parameters
select:Select<?>

The EXISTS's subquery

Returns:@NotNull Condition

The combined condition

Annotations
@NotNull
@Support