- All Implemented Interfaces:
Serializable,Field<T>,FieldOrConstraint,FieldOrRow,FieldOrRowOrSelect,GroupField,QOM.Aliasable<Field<?>>,Named,OrderField<T>,QueryPart,QueryPartInternal,SelectField<T>,SelectFieldOrAsterisk,TableElement,Typed<T>
Field implementations in client code.
Client code may provide proper Condition implementations extending
this useful base class. All necessary parts of the Condition
interface are already implemented. Only this method needs further
implementation: accept(Context).
Refer to that methods' Javadoc for further details about their expected behaviour.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCustomField(String name, DataType<T> type) protectedCustomField(Name name, DataType<T> type) -
Method Summary
Modifier and TypeMethodDescription$alias()The alias if any.Field<?>$aliased()Experimental query object model accessor method, see alsoQOM.final Name$name()Experimental query object model accessor method, see alsoQOM.default QueryPartTraverse aQueryParthierarchy and recursively replace its elements by alternatives.default <R> Rabs()Deprecated.abstract voidSubclasses must implement this method.final Field<BigDecimal>acos()Deprecated.An arithmetic expression adding this to value.An arithmetic expression to add value to this.Create an alias for this field.Create an alias for this field.Create an alias for this field based on another field's name.Create an alias for this field.asc()Create an ascending sort field from this field.ascii()Deprecated.final Field<BigDecimal>asin()Deprecated.final Field<BigDecimal>atan()Deprecated.final Field<BigDecimal>Deprecated.final Field<BigDecimal>Deprecated.final Field<BigDecimal>avg()Deprecated.final WindowPartitionByStep<BigDecimal>avgOver()Deprecated.final BetweenAndStep<T>Create a condition to check this field against some bounds.final ConditionCreate a condition to check this field against some bounds.final BetweenAndStep<T>Create a condition to check this field against some bounds.final ConditionCreate a condition to check this field against some bounds.final BetweenAndStep<T>betweenSymmetric(Field<T> minValue) Create a condition to check this field against some bounds.final ConditionbetweenSymmetric(Field<T> minValue, Field<T> maxValue) Create a condition to check this field against some bounds.final BetweenAndStep<T>betweenSymmetric(T minValue) Create a condition to check this field against some bounds.final ConditionbetweenSymmetric(T minValue, T maxValue) Create a condition to check this field against some bounds.TheBIT_ANDoperator.TheBIT_ANDoperator.Deprecated.TheBIT_NANDoperator.TheBIT_NANDoperator.TheBIT_NORoperator.TheBIT_NORoperator.bitNot()TheBIT_NOToperator.TheBIT_ORoperator.TheBIT_ORoperator.TheBIT_XNORoperator.TheBIT_XNORoperator.TheBIT_XORoperator.TheBIT_XORoperator.final <Z> Field<Z>Cast this field to another type.final <Z> Field<Z>Cast this field to a dialect-specific data type.final <Z> Field<Z>Cast this field to the type of another field.ceil()Deprecated.final booleanThe inverse operation ofRecord.changed(Field).Deprecated.final Clause[]TheClauses that are represented by this query part.Deprecated.Deprecated.final <Z> Field<Z>Coerce this field to another type.final <Z> Field<Z>Coerce this field to a dialect-specific data type.final <Z> Field<Z>Coerce this field to the type of another field.Apply a collation operator to this column expression.Apply a collation operator to this column expression.Apply a collation operator to this column expression.Attach aCommentto this field, for use in DDL statements, such asDSLContext.createTable(Table).Attach aCommentto this field, for use in DDL statements, such asDSLContext.createTable(Table).final Conditioncompare(Comparator comparator, Field<T> field) Compare this field with another field using a dynamic comparator.final Conditioncompare(Comparator comparator, QuantifiedSelect<? extends Record1<T>> query) Compare this field with a quantified subselect using a dynamic comparator.final Conditioncompare(Comparator comparator, Select<? extends Record1<T>> query) Compare this field with a subselect using a dynamic comparator.final Conditioncompare(Comparator comparator, T value) Compare this field with a value using a dynamic comparator.concat(char... values) This method is part of the pre-2.0 API.Deprecated.Deprecated.final ConditionTheCONTAINSoperator.final ConditionTheCONTAINSoperator.final ConditioncontainsIgnoreCase(Field<T> content) TheCONTAINS_IGNORE_CASEoperator.final ConditioncontainsIgnoreCase(T content) TheCONTAINS_IGNORE_CASEoperator.final <U> Field<U>Apply an ad-hoc data typeConverterto this field expression.final <U> Field<U>Apply an ad-hoc data typeBindingto this field expression.final <U> Field<U>Apply an ad-hoc data typeConverterto this field expression.final <U> Field<U>convertFrom(Class<U> toType, Function<? super T, ? extends U> from) Apply an ad-hoc read-only data typeConverterto this field expression.final <U> Field<U>convertFrom(Function<? super T, ? extends U> from) Apply an ad-hoc read-only data typeConverterto this field expression.final <U> Field<U>Apply an ad-hoc write-only data typeConverterto this field expression.final <U> Field<U>Apply an ad-hoc write-only data typeConverterto this field expression.final Field<BigDecimal>cos()Deprecated.final Field<BigDecimal>cosh()Deprecated.final Field<BigDecimal>cot()Deprecated.final Field<BigDecimal>coth()Deprecated.count()Deprecated.Deprecated.final WindowPartitionByStep<Integer>Deprecated.protected final DSLContextcreate()Deprecated.protected final DSLContextcreate(Configuration configuration) Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.protected final DSLContextDeprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.booleanSubclasses may override thisfinal booleanSubclasses may override thisbooleanSubclasses may override thisfinal booleanSubclasses may override thisbooleanSubclasses may override thisfinal <Z> Field<Z>Deprecated.final <Z> Field<Z>Deprecated.final <Z> Field<Z>Deprecated.final <Z> Field<Z>Deprecated.final Field<BigDecimal>deg()Deprecated.desc()Create a descending sort field from this field.An arithmetic expression dividing this by value.An arithmetic expression dividing this by value.An alias forField.div(Number).An alias forField.div(Field).final ConditionTheENDS_WITHoperator.final ConditionTheENDS_WITHoperator.final ConditionendsWithIgnoreCase(Field<T> suffix) TheENDS_WITH_IGNORE_CASEoperator.final ConditionendsWithIgnoreCase(T suffix) TheENDS_WITH_IGNORE_CASEoperator.final ConditionTheEQoperator.final Conditioneq(QuantifiedSelect<? extends Record1<T>> arg2) TheEQoperator.final ConditionTheEQoperator.final ConditionTheEQoperator.final ConditionTheEQUALoperator, an alias for theEQoperator.final Conditionequal(QuantifiedSelect<? extends Record1<T>> arg2) TheEQUALoperator, an alias for theEQoperator.final ConditionTheEQUALoperator, an alias for theEQoperator.final ConditionTheEQUALoperator, an alias for theEQoperator.final ConditionequalIgnoreCase(String value) lower(this) = lower(value).final ConditionequalIgnoreCase(Field<String> value) lower(this) = lower(value).booleanCheck whether thisQueryPartcan be considered equal to anotherQueryPart.final Field<BigDecimal>exp()Deprecated.Deprecated.The inverse operation ofFields.field(Field).final WindowIgnoreNullsStep<T>Deprecated.floor()Deprecated.The inverse operation ofRecord.into(Field).final ConditionTheGEoperator.final Conditionge(QuantifiedSelect<? extends Record1<T>> arg2) TheGEoperator.final ConditionTheGEoperator.final ConditionTheGEoperator.booleanSubclasses may override thisfinal TThe inverse operation ofRecord.get(Field).The object's underlyingBinding.final StringThe comment on this object.final CommentThe comment on this object as aQueryPart.final ContextConverter<?,T> The object's underlyingConverter.The type of this object (might not be dialect-specific).getDataType(Configuration configuration) The dialect-specific type of this object.final StringgetName()The unqualified name of this object.The qualified name of this object.getType()The Java type of the object.final NameThe unqualified name of this object.final TThe inverse operation ofRecord.getValue(Field).final ConditiongreaterOrEqual(Field<T> arg2) TheGREATER_OR_EQUALoperator, an alias for theGEoperator.final ConditiongreaterOrEqual(QuantifiedSelect<? extends Record1<T>> arg2) TheGREATER_OR_EQUALoperator, an alias for theGEoperator.final ConditiongreaterOrEqual(Select<? extends Record1<T>> arg2) TheGREATER_OR_EQUALoperator, an alias for theGEoperator.final ConditiongreaterOrEqual(T arg2) TheGREATER_OR_EQUALoperator, an alias for theGEoperator.final ConditiongreaterThan(Field<T> arg2) TheGREATER_THANoperator, an alias for theGToperator.final ConditiongreaterThan(QuantifiedSelect<? extends Record1<T>> arg2) TheGREATER_THANoperator, an alias for theGToperator.final ConditiongreaterThan(Select<? extends Record1<T>> arg2) TheGREATER_THANoperator, an alias for theGToperator.final ConditiongreaterThan(T arg2) TheGREATER_THANoperator, an alias for theGToperator.Deprecated.Deprecated.final ConditionTheGToperator.final Conditiongt(QuantifiedSelect<? extends Record1<T>> arg2) TheGToperator.final ConditionTheGToperator.final ConditionTheGToperator.inthashCode()Generate a hash code from thisQueryPart.final Conditionin(Collection<?> values) Create a condition to check this field against several values.final ConditionCreate a condition to check this field against several values.final ConditionCreate a condition to check this field against several values from a previous query.final ConditionTheINoperator.final ConditionCreate a condition to check this field against several values.final ConditionisDistinctFrom(Field<T> arg2) TheIS_DISTINCT_FROMoperator.final ConditionisDistinctFrom(Select<? extends Record1<T>> arg2) TheIS_DISTINCT_FROMoperator.final ConditionisDistinctFrom(T arg2) TheIS_DISTINCT_FROMoperator.final ConditionTheIS_DOCUMENToperator.final ConditionisFalse()Create a condition to check this field against known string literals forfalse.final ConditionisJson()TheIS_JSONoperator.final ConditionisNotDistinctFrom(Field<T> arg2) TheIS_NOT_DISTINCT_FROMoperator.final ConditionisNotDistinctFrom(Select<? extends Record1<T>> arg2) TheIS_NOT_DISTINCT_FROMoperator.final ConditionisNotDistinctFrom(T arg2) TheIS_NOT_DISTINCT_FROMoperator.final ConditionTheIS_NOT_DOCUMENToperator.final ConditionTheIS_NOT_JSONoperator.final ConditionTheIS_NOT_NULLoperator.final ConditionisNull()TheIS_NULLoperator.final ConditionisTrue()Create a condition to check this field against known string literals fortrue.final WindowIgnoreNullsStep<T>lag()Deprecated.final WindowIgnoreNullsStep<T>lag(int offset) Deprecated.final WindowIgnoreNullsStep<T>Deprecated.final WindowIgnoreNullsStep<T>Deprecated.final WindowIgnoreNullsStep<T>Deprecated.final ConditionTheLEoperator.final Conditionle(QuantifiedSelect<? extends Record1<T>> arg2) TheLEoperator.final ConditionTheLEoperator.final ConditionTheLEoperator.final WindowIgnoreNullsStep<T>lead()Deprecated.final WindowIgnoreNullsStep<T>lead(int offset) Deprecated.final WindowIgnoreNullsStep<T>Deprecated.final WindowIgnoreNullsStep<T>Deprecated.Deprecated.Deprecated.length()Deprecated.final ConditionlessOrEqual(Field<T> arg2) TheLESS_OR_EQUALoperator, an alias for theLEoperator.final ConditionlessOrEqual(QuantifiedSelect<? extends Record1<T>> arg2) TheLESS_OR_EQUALoperator, an alias for theLEoperator.final ConditionlessOrEqual(Select<? extends Record1<T>> arg2) TheLESS_OR_EQUALoperator, an alias for theLEoperator.final ConditionlessOrEqual(T arg2) TheLESS_OR_EQUALoperator, an alias for theLEoperator.final ConditionTheLESS_THANoperator, an alias for theLToperator.final ConditionlessThan(QuantifiedSelect<? extends Record1<T>> arg2) TheLESS_THANoperator, an alias for theLToperator.final ConditionTheLESS_THANoperator, an alias for theLToperator.final ConditionTheLESS_THANoperator, an alias for theLToperator.final LikeEscapeStepTheLIKEoperator.final ConditionCreate a condition to pattern-check this field against a value.final LikeEscapeStepTheLIKEoperator.final ConditionCreate a condition to pattern-check this field against a value.final LikeEscapeSteplike(QuantifiedSelect<? extends Record1<String>> pattern) TheLIKEoperator.final LikeEscapeSteplikeIgnoreCase(String pattern) TheLIKE_IGNORE_CASEoperator.final ConditionlikeIgnoreCase(String value, char escape) Create a condition to case-insensitively pattern-check this field against a value.final LikeEscapeSteplikeIgnoreCase(Field<String> pattern) TheLIKE_IGNORE_CASEoperator.final ConditionlikeIgnoreCase(Field<String> field, char escape) Create a condition to case-insensitively pattern-check this field against a field.final ConditionCreate a condition to regex-pattern-check this field against a pattern.final ConditionCreate a condition to regex-pattern-check this field against a pattern.final Field<BigDecimal>ln()Deprecated.final Field<BigDecimal>log(int base) Deprecated.lower()Deprecated.lpad(int length) Deprecated.lpad(int length, char character) Deprecated.Deprecated.Deprecated.final ConditionTheLToperator.final Conditionlt(QuantifiedSelect<? extends Record1<T>> arg2) TheLToperator.final ConditionTheLToperator.final ConditionTheLToperator.ltrim()Deprecated.max()Deprecated.final WindowPartitionByStep<T>maxOver()Deprecated.final Field<BigDecimal>median()Deprecated.min()Deprecated.final WindowPartitionByStep<T>minOver()Deprecated.An alias forField.sub(Number).An alias forField.sub(Field).TheMODoperator.TheMODoperator.TheMODULOoperator, an alias for theMODoperator.TheMODULOoperator, an alias for theMODoperator.An arithmetic expression multiplying this with value.An arithmetic expression multiplying this with value.An alias forField.mul(Number).An alias forField.mul(Field).final ConditionTheNEoperator.final Conditionne(QuantifiedSelect<? extends Record1<T>> arg2) TheNEoperator.final ConditionTheNEoperator.final ConditionTheNEoperator.neg()Negate this field to get its negative value.final BetweenAndStep<T>notBetween(Field<T> minValue) Create a condition to check this field against some bounds.final ConditionnotBetween(Field<T> minValue, Field<T> maxValue) Create a condition to check this field against some bounds.final BetweenAndStep<T>notBetween(T minValue) Create a condition to check this field against some bounds.final ConditionnotBetween(T minValue, T maxValue) Create a condition to check this field against some bounds.final BetweenAndStep<T>notBetweenSymmetric(Field<T> minValue) Create a condition to check this field against some bounds.final ConditionnotBetweenSymmetric(Field<T> minValue, Field<T> maxValue) Create a condition to check this field against some bounds.final BetweenAndStep<T>notBetweenSymmetric(T minValue) Create a condition to check this field against some bounds.final ConditionnotBetweenSymmetric(T minValue, T maxValue) Create a condition to check this field against some bounds.final ConditionnotContains(Field<T> value) Inverse ofField.contains(Field).final ConditionnotContains(T value) Inverse ofField.contains(Object).final ConditionnotContainsIgnoreCase(Field<T> value) Inverse ofField.containsIgnoreCase(Field)final ConditionnotContainsIgnoreCase(T value) Inverse ofField.containsIgnoreCase(Object)final ConditionTheNOT_EQUALoperator, an alias for theNEoperator.final ConditionnotEqual(QuantifiedSelect<? extends Record1<T>> arg2) TheNOT_EQUALoperator, an alias for theNEoperator.final ConditionTheNOT_EQUALoperator, an alias for theNEoperator.final ConditionTheNOT_EQUALoperator, an alias for theNEoperator.final ConditionnotEqualIgnoreCase(String value) lower(this) != lower(value).final ConditionnotEqualIgnoreCase(Field<String> value) lower(this) != lower(value).final ConditionnotIn(Collection<?> values) Create a condition to check this field against several values.final ConditionCreate a condition to check this field against several values.final ConditionCreate a condition to check this field against several values from a previous query.final ConditionTheNOT_INoperator.final ConditionCreate a condition to check this field against several values.final LikeEscapeStepTheNOT_LIKEoperator.final ConditionCreate a condition to pattern-check this field against a value.final LikeEscapeStepTheNOT_LIKEoperator.final ConditionCreate a condition to pattern-check this field against a field.final LikeEscapeStepnotLike(QuantifiedSelect<? extends Record1<String>> pattern) TheNOT_LIKEoperator.final LikeEscapeStepnotLikeIgnoreCase(String pattern) TheNOT_LIKE_IGNORE_CASEoperator.final ConditionnotLikeIgnoreCase(String value, char escape) Create a condition to case-insensitively pattern-check this field against a value.final LikeEscapeStepnotLikeIgnoreCase(Field<String> pattern) TheNOT_LIKE_IGNORE_CASEoperator.final ConditionnotLikeIgnoreCase(Field<String> field, char escape) Create a condition to case-insensitively pattern-check this field against a field.final ConditionnotLikeRegex(String pattern) Create a condition to regex-pattern-check this field against a pattern.final ConditionnotLikeRegex(Field<String> pattern) Create a condition to regex-pattern-check this field against a pattern.final LikeEscapeStepnotSimilarTo(String pattern) TheNOT_SIMILAR_TOoperator.final ConditionnotSimilarTo(String value, char escape) Create a condition to pattern-check this field against a value.final LikeEscapeStepnotSimilarTo(Field<String> pattern) TheNOT_SIMILAR_TOoperator.final ConditionnotSimilarTo(Field<String> field, char escape) Create a condition to pattern-check this field against a field.final LikeEscapeStepnotSimilarTo(QuantifiedSelect<? extends Record1<String>> pattern) TheNOT_SIMILAR_TOoperator.Deprecated.Deprecated.Convenience method forField.sortDefault()and thenSortField.nullsFirst().Convenience method forField.sortDefault()and thenSortField.nullsLast().Deprecated.Deprecated.final <Z> Field<Z>Deprecated.final <Z> Field<Z>nvl2(Z valueIfNotNull, Z valueIfNull) Deprecated.Deprecated.static final <T> CustomField<T>Create aCustomFieldfrom a lambda expression.static final <T> CustomField<T>Create aCustomFieldfrom a lambda expression.final TThe inverse operation ofRecord.original(Field).plus()ThePLUSoperator.An alias forField.add(Number).An alias forField.add(Field).Deprecated.Deprecated.final Field<BigDecimal>ThePOWoperator, an alias for thePOWERoperator.final Field<BigDecimal>ThePOWoperator, an alias for thePOWERoperator.final Field<BigDecimal>ThePOWERoperator.final Field<BigDecimal>ThePOWERoperator.final Field<BigDecimal>rad()Deprecated.TheREMoperator, an alias for theMODoperator.TheREMoperator, an alias for theMODoperator.booleanrendersContent(Context<?> ctx) Subclasses may override thisDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.final voidThe inverse operation ofRecord.reset(Field).round()Deprecated.round(int decimals) Deprecated.rpad(int length) Deprecated.rpad(int length, char character) Deprecated.Deprecated.Deprecated.rtrim()Deprecated.TheSHLoperator.TheSHLoperator.TheSHRoperator.TheSHRoperator.sign()Deprecated.final LikeEscapeStepTheSIMILAR_TOoperator.final ConditionCreate a condition to pattern-check this field against a value.final LikeEscapeStepTheSIMILAR_TOoperator.final ConditionCreate a condition to pattern-check this field against a value.final LikeEscapeStepsimilarTo(QuantifiedSelect<? extends Record1<String>> pattern) TheSIMILAR_TOoperator.final Field<BigDecimal>sin()Deprecated.final Field<BigDecimal>sinh()Deprecated.final <Z> SortField<Z>Create an indirected sort field.Create an ascending/descending sort field from this field.sortAsc(Collection<T> sortList) Create an indirected sort field.Create an indirected sort field.Create a default sorted (implicitASC) from this field.sortDesc(Collection<T> sortList) Create an indirected sort field.Create an indirected sort field.final Field<BigDecimal>sqrt()Deprecated.final ConditionstartsWith(Field<T> prefix) TheSTARTS_WITHoperator.final ConditionstartsWith(T prefix) TheSTARTS_WITHoperator.final ConditionstartsWithIgnoreCase(Field<T> prefix) TheSTARTS_WITH_IGNORE_CASEoperator.final ConditionstartsWithIgnoreCase(T prefix) TheSTARTS_WITH_IGNORE_CASEoperator.final Field<BigDecimal>Deprecated.final WindowPartitionByStep<BigDecimal>Deprecated.final Field<BigDecimal>Deprecated.final WindowPartitionByStep<BigDecimal>Deprecated.An arithmetic expression subtracting value from this.An arithmetic expression subtracting value from this.substring(int startingPosition) Deprecated.substring(int startingPosition, int length) Deprecated.Deprecated.Deprecated.An alias forField.sub(Number).An alias forField.sub(Field).final Field<BigDecimal>sum()Deprecated.final WindowPartitionByStep<BigDecimal>sumOver()Deprecated.final Field<BigDecimal>tan()Deprecated.final Field<BigDecimal>tanh()Deprecated.An alias forField.mul(Number).An alias forField.mul(Field).toString()Render a SQL string representation of thisQueryPart.protected final DataAccessExceptiontranslate(String sql, SQLException e) Internal convenience methodtrim()Deprecated.Negate this field to get its negative value.Get this field as its positive value (no effect on SQL).upper()Deprecated.final Field<BigDecimal>varPop()Deprecated.final WindowPartitionByStep<BigDecimal>Deprecated.final Field<BigDecimal>varSamp()Deprecated.final WindowPartitionByStep<BigDecimal>Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jooq.Field
abs, acos, add, add, as, as, as, asc, ascii, asin, atan, atan2, atan2, avg, avgOver, between, between, between, between, betweenSymmetric, betweenSymmetric, betweenSymmetric, betweenSymmetric, bitAnd, bitAnd, bitLength, bitNand, bitNand, bitNor, bitNor, bitNot, bitOr, bitOr, bitXNor, bitXNor, bitXor, bitXor, cast, cast, cast, ceil, changed, charLength, coalesce, coalesce, coerce, coerce, coerce, collate, collate, collate, comment, comment, compare, compare, compare, compare, concat, concat, concat, contains, contains, containsIgnoreCase, containsIgnoreCase, convert, convert, convert, convertFrom, convertFrom, convertTo, convertTo, cos, cosh, cot, coth, count, countDistinct, countOver, decode, decode, decode, decode, deg, desc, div, div, divide, divide, endsWith, endsWith, endsWithIgnoreCase, endsWithIgnoreCase, eq, eq, eq, eq, equal, equal, equal, equal, equalIgnoreCase, equalIgnoreCase, equals, exp, extract, field, firstValue, floor, from, ge, ge, ge, ge, get, getComment, getName, getValue, greaterOrEqual, greaterOrEqual, greaterOrEqual, greaterOrEqual, greaterThan, greaterThan, greaterThan, greaterThan, greatest, greatest, gt, gt, gt, gt, in, in, in, in, in, isDistinctFrom, isDistinctFrom, isDistinctFrom, isDocument, isFalse, isJson, isNotDistinctFrom, isNotDistinctFrom, isNotDistinctFrom, isNotDocument, isNotJson, isNotNull, isNull, isTrue, lag, lag, lag, lag, lastValue, le, le, le, le, lead, lead, lead, lead, least, least, length, lessOrEqual, lessOrEqual, lessOrEqual, lessOrEqual, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, likeIgnoreCase, likeIgnoreCase, likeIgnoreCase, likeIgnoreCase, likeRegex, likeRegex, ln, log, lower, lpad, lpad, lpad, lpad, lt, lt, lt, lt, ltrim, max, maxOver, median, min, minOver, minus, minus, mod, mod, modulo, modulo, mul, mul, multiply, multiply, ne, ne, ne, ne, neg, notBetween, notBetween, notBetween, notBetween, notBetweenSymmetric, notBetweenSymmetric, notBetweenSymmetric, notBetweenSymmetric, notContains, notContains, notContainsIgnoreCase, notContainsIgnoreCase, notEqual, notEqual, notEqual, notEqual, notEqualIgnoreCase, notEqualIgnoreCase, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notLike, notLikeIgnoreCase, notLikeIgnoreCase, notLikeIgnoreCase, notLikeIgnoreCase, notLikeRegex, notLikeRegex, notSimilarTo, notSimilarTo, notSimilarTo, notSimilarTo, notSimilarTo, nullif, nullif, nullsFirst, nullsLast, nvl, nvl, nvl2, nvl2, octetLength, original, plus, plus, plus, position, position, pow, pow, power, power, rad, rem, rem, repeat, repeat, replace, replace, replace, replace, reset, round, round, rpad, rpad, rpad, rpad, rtrim, shl, shl, shr, shr, sign, similarTo, similarTo, similarTo, similarTo, similarTo, sin, sinh, sort, sort, sortAsc, sortAsc, sortDefault, sortDesc, sortDesc, sqrt, startsWith, startsWith, startsWithIgnoreCase, startsWithIgnoreCase, stddevPop, stddevPopOver, stddevSamp, stddevSampOver, sub, sub, substring, substring, substring, substring, subtract, subtract, sum, sumOver, tan, tanh, times, times, trim, unaryMinus, unaryPlus, upper, varPop, varPopOver, varSamp, varSampOverMethods inherited from interface org.jooq.Named
$name, getCommentPart, getQualifiedName, getUnqualifiedNameMethods inherited from interface org.jooq.Typed
$dataType, getBinding, getConverter, getDataType, getDataType, getType
-
Constructor Details
-
CustomField
-
CustomField
-
-
Method Details
-
of
public static final <T> CustomField<T> of(String name, DataType<T> type, Consumer<? super Context<?>> consumer) Create aCustomFieldfrom a lambda expression. -
of
public static final <T> CustomField<T> of(Name name, DataType<T> type, Consumer<? super Context<?>> consumer) Create aCustomFieldfrom a lambda expression. -
accept
Subclasses must implement this method.
ThisQueryPartcanacceptaContextobject in order to render a SQL string or to bind its variables.- Specified by:
acceptin interfaceQueryPartInternal
-
clauses
Description copied from interface:QueryPartInternalTheClauses that are represented by this query part.QueryParts can specify severalClauses for which an event will be emittedbefore(in forward order) andafter(in reverse order) visiting the the query part throughContext.visit(QueryPart)This method is for JOOQ INTERNAL USE only. Do not reference directly
- Specified by:
clausesin interfaceQueryPartInternal- Returns:
- The
Clauses represented by this query part ornullor an empty array if this query part does not represent a clause.
-
as
Description copied from interface:SelectFieldCreate an alias for this field.Note that the case-sensitivity of the returned field depends on
Settings.getRenderQuotedNames()and theName. By default, field aliases are quoted, and thus case-sensitive in many SQL dialects - useDSL.unquotedName(String...)for case-insensitive aliases.If the argument
Name.getName()is qualified, then theName.last()part will be used. -
declaresFields
public final boolean declaresFields()Subclasses may override this- Specified by:
declaresFieldsin interfaceQueryPartInternal
-
declaresTables
public final boolean declaresTables()Subclasses may override this- Specified by:
declaresTablesin interfaceQueryPartInternal
-
$traverse
Description copied from interface:QueryPartTraverser thisQueryPartexpression tree using a composableTraverser, producing a result.This offers a generic way to traverse expression trees to translate the tree to arbitrary other data structures. The simplest traversal would just count all the tree elements:
int count = CUSTOMER.NAME.eq(1).$traverse(0, (i, p) -> i + 1);The same can be achieved by translating the JDK
CollectorAPI to theTraverserAPI usingTraversers.collecting(Collector).CUSTOMER.NAME.eq(1).$traverse(Traversers.collecting(Collectors.counting()));Unlike a
Collector, aTraverseris optimised for tree traversal, not stream traversal:- Is not designed for parallelism
- It can
Traverser.abort()traversal early when the result can be produced early (e.g. when runningTraversers.containing(QueryPart), and a result has been found). - It can decide whether to
Traverser.recurse()into aQueryPartsubtree, or whether that is not necessary or even undesirable, e.g. to prevent entering new subquery scopes. - Unlike a Collector, which can use its
Collector.accumulator()to accumulate each element only once, in tree traversal, it's desirable to be able to distinguish between accumulating an itemTraverser.before()orTraverser.after()recursing into it. This is useful e.g. to wrap each tree node in XML opening and closing tags.
This is a commercial jOOQ edition only feature.
-
$replace
Description copied from interface:QueryPart -
field
Description copied from interface:FieldThe inverse operation ofFields.field(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream.
-
get
Description copied from interface:FieldThe inverse operation ofRecord.get(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream:
DSL.using(configuration) .fetch("select * from t") .stream() .map(MY_TABLE.ID::get) .forEach(System.out::println); -
getValue
Description copied from interface:FieldThe inverse operation ofRecord.getValue(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream:
DSL.using(configuration) .fetch("select * from t") .stream() .map(MY_TABLE.ID::getValue) .forEach(System.out::println); -
original
Description copied from interface:FieldThe inverse operation ofRecord.original(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream:
DSL.using(configuration) .fetch("select * from t") .stream() .map(MY_TABLE.ID::original) .forEach(System.out::println); -
changed
Description copied from interface:FieldThe inverse operation ofRecord.changed(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream:
DSL.using(configuration) .fetch("select * from t") .stream() .map(MY_TABLE.ID::changed) .forEach(System.out::println); -
reset
Description copied from interface:FieldThe inverse operation ofRecord.reset(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream:
DSL.using(configuration) .fetch("select * from t") .stream() .forEach(MY_TABLE.ID::reset); -
from
Description copied from interface:FieldThe inverse operation ofRecord.into(Field).This method can be used in its method reference form conveniently on a generated table, for instance, when mapping records in a stream:
DSL.using(configuration) .fetch("select * from t") .stream() .map(MY_TABLE.ID::from) .forEach(System.out::println); -
$alias
Description copied from interface:QOM.AliasableThe alias if any.- Specified by:
$aliasin interfaceQOM.Aliasable<T>
-
$aliased
Description copied from interface:QOM.Aliasable- Specified by:
$aliasedin interfaceQOM.Aliasable<T>
-
convert
Description copied from interface:SelectFieldApply an ad-hoc data typeBindingto this field expression.Rather than attaching data type bindings at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataType(Binding), this method allows for creating a derived field expression with an ad-hoc data type binding for single query usage.- Specified by:
convertin interfaceField<T>- Specified by:
convertin interfaceSelectField<T>- Type Parameters:
U- The user type.- Parameters:
binding- The binding to be applied on any operations using this field.- Returns:
- A derived field expression using a new binding.
-
convert
Description copied from interface:SelectFieldApply an ad-hoc data typeConverterto this field expression.Rather than attaching data type converters at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataType(Converter), this method allows for creating a derived field expression with an ad-hoc data type converter for single query usage.- Specified by:
convertin interfaceField<T>- Specified by:
convertin interfaceSelectField<T>- Type Parameters:
U- The user type.- Parameters:
converter- The converter to be applied on any operations using this field.- Returns:
- A derived field expression using a new converter.
-
convert
public final <U> Field<U> convert(Class<U> toType, Function<? super T, ? extends U> from, Function<? super U, ? extends T> to) Description copied from interface:SelectFieldApply an ad-hoc data typeConverterto this field expression.Rather than attaching data type converters at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataType(Class, Function, Function), this method allows for creating a derived field expression with an ad-hoc data type converter for single query usage.- Specified by:
convertin interfaceField<T>- Specified by:
convertin interfaceSelectField<T>- Type Parameters:
U- The user type.- Returns:
- A derived field expression using a new converter.
-
convertFrom
Description copied from interface:SelectFieldApply an ad-hoc read-only data typeConverterto this field expression.Rather than attaching data type converters at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataTypeFrom(Class, Function), this method allows for creating a derived field expression with an ad-hoc data type converter for single query usage.- Specified by:
convertFromin interfaceField<T>- Specified by:
convertFromin interfaceSelectField<T>- Type Parameters:
U- The user type.- Returns:
- A derived field expression using a new converter.
-
convertFrom
Description copied from interface:SelectFieldApply an ad-hoc read-only data typeConverterto this field expression.Rather than attaching data type converters at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataTypeFrom(Class, Function), this method allows for creating a derived field expression with an ad-hoc data type converter for single query usage.Unlike
SelectField.convertFrom(Class, Function), this method attempts to work without an explicitClassreference for the underlyingConverter.toType(). There may be some edge cases where this doesn't work, e.g. when nesting rows in arrays, the class literal is required for reflective array creation.- Specified by:
convertFromin interfaceField<T>- Specified by:
convertFromin interfaceSelectField<T>- Type Parameters:
U- The user type.- Returns:
- A derived field expression using a new converter.
-
convertTo
Description copied from interface:SelectFieldApply an ad-hoc write-only data typeConverterto this field expression.Rather than attaching data type converters at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataTypeTo(Class, Function), this method allows for creating a derived field expression with an ad-hoc data type converter for single query usage.- Specified by:
convertToin interfaceField<T>- Specified by:
convertToin interfaceSelectField<T>- Type Parameters:
U- The user type.- Returns:
- A derived field expression using a new converter.
-
convertTo
Description copied from interface:SelectFieldApply an ad-hoc write-only data typeConverterto this field expression.Rather than attaching data type converters at code generation time, or creating cumbersome expressions using
DataType.asConvertedDataTypeTo(Class, Function), this method allows for creating a derived field expression with an ad-hoc data type converter for single query usage.Unlike
SelectField.convertTo(Class, Function), this method attempts to work without an explicitClassreference for the underlyingConverter.toType(). There may be some edge cases where this doesn't work, e.g. when nesting rows in arrays, the class literal is required for reflective array creation.- Specified by:
convertToin interfaceField<T>- Specified by:
convertToin interfaceSelectField<T>- Type Parameters:
U- The user type.- Returns:
- A derived field expression using a new converter.
-
as
Description copied from interface:SelectFieldCreate an alias for this field.Note that the case-sensitivity of the returned field depends on
Settings.getRenderQuotedNames(). By default, field aliases are quoted, and thus case-sensitive in many SQL dialects!- Specified by:
asin interfaceField<T>- Specified by:
asin interfaceSelectField<T>- Parameters:
alias- The alias name- Returns:
- The field alias
-
as
Description copied from interface:SelectFieldCreate an alias for this field based on another field's name.- Specified by:
asin interfaceField<T>- Specified by:
asin interfaceSelectField<T>- Parameters:
otherField- The other field whose name this field is aliased with.- Returns:
- The field alias.
-
as
Description copied from interface:FieldCreate an alias for this field.Note that the case-sensitivity of the returned field depends on
Settings.getRenderQuotedNames(). By default, field aliases are quoted, and thus case-sensitive in many SQL dialects!This works like
Field.as(String), except that field aliases are provided by a function. This is useful, for instance, to prefix all columns with a common prefix (onTable.as(String, Function)):MY_TABLE.as("t1", f -> "prefix_" + f.getName());And then to use the same function also for individual fields:
MY_TABLE.MY_COLUMN.as(f -> "prefix_" + f.getName()); -
comment
Description copied from interface:FieldAttach aCommentto this field, for use in DDL statements, such asDSLContext.createTable(Table). -
comment
Description copied from interface:FieldAttach aCommentto this field, for use in DDL statements, such asDSLContext.createTable(Table). -
cast
Description copied from interface:FieldCast this field to the type of another field.This results in the same as casting this field to
DataType.getCastTypeName() -
cast
Description copied from interface:FieldCast this field to a dialect-specific data type. -
cast
Description copied from interface:FieldCast this field to another type.The actual cast may not be accurate as the
DataTypehas to be "guessed" from the jOOQ-configured data types. UseField.cast(DataType)for more accurate casts.NOTE [#15286]: It is strongly recommended to pass only
Classreferences of types supported by jOOQ internally, i.e. types fromSQLDataType. If you're using any custom data types by means of aConverterorBinding, it's better to pass that convertedDataTypereference explicitly toField.cast(DataType). -
coerce
Description copied from interface:FieldCoerce this field to the type of another field.Unlike with casting, coercing doesn't affect the way the database sees a
Field's type. This is how coercing affects your SQL:Bind values
// This binds an int value to a JDBC PreparedStatement DSL.val(1).coerce(String.class); // This binds an int value to a JDBC PreparedStatement // and casts it to VARCHAR in SQL DSL.val(1).cast(String.class);Other Field types
// This fetches a String value for the BOOK.ID field from JDBC BOOK.ID.coerce(String.class); // This fetches a String value for the BOOK.ID field from JDBC // after casting it to VARCHAR in the database BOOK.ID.cast(String.class); -
coerce
Description copied from interface:FieldCoerce this field to a dialect-specific data type.Unlike with casting, coercing doesn't affect the way the database sees a
Field's type. This is how coercing affects your SQL:Bind values
// This binds an int value to a JDBC PreparedStatement DSL.val(1).coerce(String.class); // This binds an int value to a JDBC PreparedStatement // and casts it to VARCHAR in SQL DSL.val(1).cast(String.class);Other Field types
// This fetches a String value for the BOOK.ID field from JDBC BOOK.ID.coerce(String.class); // This fetches a String value for the BOOK.ID field from JDBC // after casting it to VARCHAR in the database BOOK.ID.cast(String.class); -
coerce
Description copied from interface:FieldCoerce this field to another type.Unlike with casting, coercing doesn't affect the way the database sees a
Field's type. This is how coercing affects your SQL:Bind values
// This binds an int value to a JDBC PreparedStatement DSL.val(1).coerce(String.class); // This binds an int value to a JDBC PreparedStatement // and casts it to VARCHAR in SQL DSL.val(1).cast(String.class);Other Field types
// This fetches a String value for the BOOK.ID field from JDBC BOOK.ID.coerce(String.class); // This fetches a String value for the BOOK.ID field from JDBC // after casting it to VARCHAR in the database BOOK.ID.cast(String.class);NOTE [#15286]: It is strongly recommended to pass only
Classreferences of types supported by jOOQ internally, i.e. types fromSQLDataType. If you're using any custom data types by means of aConverterorBinding, it's better to pass that convertedDataTypereference explicitly toField.coerce(DataType). -
asc
Description copied from interface:FieldCreate an ascending sort field from this field.This is the same as calling
Field.sort(SortOrder)withSortOrder.ASC -
desc
Description copied from interface:FieldCreate a descending sort field from this field.This is the same as calling
Field.sort(SortOrder)withSortOrder.DESC -
sortDefault
Description copied from interface:FieldCreate a default sorted (implicitASC) from this field.This is the same as calling
Field.sort(SortOrder)withSortOrder.DEFAULT- Specified by:
sortDefaultin interfaceField<T>- Returns:
- This field as a default sorted sort field
-
sort
Description copied from interface:FieldCreate an ascending/descending sort field from this field. -
sortAsc
Description copied from interface:FieldCreate an indirected sort field.Create a sort field of the form
CASE [this] WHEN [sortList.get(0)] THEN 0 WHEN [sortList.get(1)] THEN 1 ... WHEN [sortList.get(n)] THEN n ELSE null END ASCNote: You can use this in combination with
SortField.nullsFirst()orSortField.nullsLast()to specify whether the default should have highest or lowest priority. -
sortAsc
Description copied from interface:FieldCreate an indirected sort field.Create a sort field of the form
CASE [this] WHEN [sortList[0]] THEN 0 WHEN [sortList[1]] THEN 1 ... WHEN [sortList[n]] THEN n ELSE null END ASCNote: You can use this in combination with
SortField.nullsFirst()orSortField.nullsLast()to specify whether the default should have highest or lowest priority. -
sortDesc
Description copied from interface:FieldCreate an indirected sort field.Create a sort field of the form
CASE [this] WHEN [sortList.get(0)] THEN 0 WHEN [sortList.get(1)] THEN 1 ... WHEN [sortList.get(n)] THEN n ELSE null END DESCNote: You can use this in combination with
SortField.nullsFirst()orSortField.nullsLast()to specify whether the default should have highest or lowest priority. -
sortDesc
Description copied from interface:FieldCreate an indirected sort field.Create a sort field of the form
CASE [this] WHEN [sortList[0]] THEN 0 WHEN [sortList[1]] THEN 1 ... WHEN [sortList[n]] THEN n ELSE null END DESCNote: You can use this in combination with
SortField.nullsFirst()orSortField.nullsLast()to specify whether the default should have highest or lowest priority. -
sort
Description copied from interface:FieldCreate an indirected sort field.Create a sort field of the form (in pseudo code)
CASE [this] WHEN [sortMap.key(0)] THEN sortMap.value(0) WHEN [sortMap.key(1)] THEN sortMap.value(1) ... WHEN [sortMap.key(n)] THEN sortMap.value(n) ELSE null END DESCNote: You can use this in combination with
SortField.nullsFirst()orSortField.nullsLast()to specify whether the default should have highest or lowest priority. -
nullsFirst
Description copied from interface:FieldConvenience method forField.sortDefault()and thenSortField.nullsFirst().- Specified by:
nullsFirstin interfaceField<T>
-
nullsLast
Description copied from interface:FieldConvenience method forField.sortDefault()and thenSortField.nullsLast(). -
eq
Description copied from interface:FieldTheEQoperator. -
eq
Description copied from interface:FieldTheEQoperator. -
eq
Description copied from interface:FieldTheEQoperator. -
eq
Description copied from interface:FieldTheEQoperator. -
equal
Description copied from interface:FieldTheEQUALoperator, an alias for theEQoperator. -
equal
Description copied from interface:FieldTheEQUALoperator, an alias for theEQoperator. -
equal
Description copied from interface:FieldTheEQUALoperator, an alias for theEQoperator. -
equal
Description copied from interface:FieldTheEQUALoperator, an alias for theEQoperator. -
ge
Description copied from interface:FieldTheGEoperator. -
ge
Description copied from interface:FieldTheGEoperator. -
ge
Description copied from interface:FieldTheGEoperator. -
ge
Description copied from interface:FieldTheGEoperator. -
greaterOrEqual
Description copied from interface:FieldTheGREATER_OR_EQUALoperator, an alias for theGEoperator.- Specified by:
greaterOrEqualin interfaceField<T>
-
greaterOrEqual
Description copied from interface:FieldTheGREATER_OR_EQUALoperator, an alias for theGEoperator.- Specified by:
greaterOrEqualin interfaceField<T>
-
greaterOrEqual
Description copied from interface:FieldTheGREATER_OR_EQUALoperator, an alias for theGEoperator.- Specified by:
greaterOrEqualin interfaceField<T>
-
greaterOrEqual
Description copied from interface:FieldTheGREATER_OR_EQUALoperator, an alias for theGEoperator.- Specified by:
greaterOrEqualin interfaceField<T>
-
greaterThan
Description copied from interface:FieldTheGREATER_THANoperator, an alias for theGToperator.- Specified by:
greaterThanin interfaceField<T>
-
greaterThan
Description copied from interface:FieldTheGREATER_THANoperator, an alias for theGToperator.- Specified by:
greaterThanin interfaceField<T>
-
greaterThan
Description copied from interface:FieldTheGREATER_THANoperator, an alias for theGToperator.- Specified by:
greaterThanin interfaceField<T>
-
greaterThan
Description copied from interface:FieldTheGREATER_THANoperator, an alias for theGToperator.- Specified by:
greaterThanin interfaceField<T>
-
gt
Description copied from interface:FieldTheGToperator. -
gt
Description copied from interface:FieldTheGToperator. -
gt
Description copied from interface:FieldTheGToperator. -
gt
Description copied from interface:FieldTheGToperator. -
in
Description copied from interface:FieldTheINoperator.The subquery must return exactly one field. This is not checked by jOOQ and will result in syntax errors in the database, if not used correctly.
-
isDistinctFrom
Description copied from interface:FieldTheIS_DISTINCT_FROMoperator.The DISTINCT predicate allows for creating NULL safe comparisons where the two operands are tested for non-equality
- Specified by:
isDistinctFromin interfaceField<T>
-
isDistinctFrom
Description copied from interface:FieldTheIS_DISTINCT_FROMoperator.The DISTINCT predicate allows for creating NULL safe comparisons where the two operands are tested for non-equality
- Specified by:
isDistinctFromin interfaceField<T>
-
isDistinctFrom
Description copied from interface:FieldTheIS_DISTINCT_FROMoperator.The DISTINCT predicate allows for creating NULL safe comparisons where the two operands are tested for non-equality
- Specified by:
isDistinctFromin interfaceField<T>
-
isNull
Description copied from interface:FieldTheIS_NULLoperator. -
isNotDistinctFrom
Description copied from interface:FieldTheIS_NOT_DISTINCT_FROMoperator.The NOT DISTINCT predicate allows for creating NULL safe comparisons where the two operands are tested for equality
- Specified by:
isNotDistinctFromin interfaceField<T>
-
isNotDistinctFrom
Description copied from interface:FieldTheIS_NOT_DISTINCT_FROMoperator.The NOT DISTINCT predicate allows for creating NULL safe comparisons where the two operands are tested for equality
- Specified by:
isNotDistinctFromin interfaceField<T>
-
isNotDistinctFrom
Description copied from interface:FieldTheIS_NOT_DISTINCT_FROMoperator.The NOT DISTINCT predicate allows for creating NULL safe comparisons where the two operands are tested for equality
- Specified by:
isNotDistinctFromin interfaceField<T>
-
isNotNull
Description copied from interface:FieldTheIS_NOT_NULLoperator. -
le
Description copied from interface:FieldTheLEoperator. -
le
Description copied from interface:FieldTheLEoperator. -
le
Description copied from interface:FieldTheLEoperator. -
le
Description copied from interface:FieldTheLEoperator. -
lessOrEqual
Description copied from interface:FieldTheLESS_OR_EQUALoperator, an alias for theLEoperator.- Specified by:
lessOrEqualin interfaceField<T>
-
lessOrEqual
Description copied from interface:FieldTheLESS_OR_EQUALoperator, an alias for theLEoperator.- Specified by:
lessOrEqualin interfaceField<T>
-
lessOrEqual
Description copied from interface:FieldTheLESS_OR_EQUALoperator, an alias for theLEoperator.- Specified by:
lessOrEqualin interfaceField<T>
-
lessOrEqual
Description copied from interface:FieldTheLESS_OR_EQUALoperator, an alias for theLEoperator.- Specified by:
lessOrEqualin interfaceField<T>
-
lessThan
Description copied from interface:FieldTheLESS_THANoperator, an alias for theLToperator. -
lessThan
Description copied from interface:FieldTheLESS_THANoperator, an alias for theLToperator. -
lessThan
Description copied from interface:FieldTheLESS_THANoperator, an alias for theLToperator. -
lessThan
Description copied from interface:FieldTheLESS_THANoperator, an alias for theLToperator. -
like
Description copied from interface:FieldTheLIKEoperator. -
like
Description copied from interface:FieldTheLIKEoperator. -
like
Description copied from interface:FieldTheLIKEoperator. -
likeIgnoreCase
Description copied from interface:FieldTheLIKE_IGNORE_CASEoperator.Create a condition to case-insensitively pattern-check this field against a value.
This translates to
this ilike valueinSQLDialect.POSTGRES, or tolower(this) like lower(value)in all other dialects.- Specified by:
likeIgnoreCasein interfaceField<T>- Parameters:
pattern- is wrapped as.invalid @link
#val(Object)
-
likeIgnoreCase
Description copied from interface:FieldTheLIKE_IGNORE_CASEoperator.Create a condition to case-insensitively pattern-check this field against a value.
This translates to
this ilike valueinSQLDialect.POSTGRES, or tolower(this) like lower(value)in all other dialects.- Specified by:
likeIgnoreCasein interfaceField<T>
-
lt
Description copied from interface:FieldTheLToperator. -
lt
Description copied from interface:FieldTheLToperator. -
lt
Description copied from interface:FieldTheLToperator. -
lt
Description copied from interface:FieldTheLToperator. -
ne
Description copied from interface:FieldTheNEoperator. -
ne
Description copied from interface:FieldTheNEoperator. -
ne
Description copied from interface:FieldTheNEoperator. -
ne
Description copied from interface:FieldTheNEoperator. -
notEqual
Description copied from interface:FieldTheNOT_EQUALoperator, an alias for theNEoperator. -
notEqual
Description copied from interface:FieldTheNOT_EQUALoperator, an alias for theNEoperator. -
notEqual
Description copied from interface:FieldTheNOT_EQUALoperator, an alias for theNEoperator. -
notEqual
Description copied from interface:FieldTheNOT_EQUALoperator, an alias for theNEoperator. -
notIn
Description copied from interface:FieldTheNOT_INoperator.The subquery must return exactly one field. This is not checked by jOOQ and will result in syntax errors in the database, if not used correctly.
If any of the passed values is
NULL, then the condition will beNULL(orfalse, depending on the dialect) as well. This is standard SQL behaviour. -
notLike
Description copied from interface:FieldTheNOT_LIKEoperator. -
notLike
Description copied from interface:FieldTheNOT_LIKEoperator. -
notLike
Description copied from interface:FieldTheNOT_LIKEoperator. -
notLikeIgnoreCase
Description copied from interface:FieldTheNOT_LIKE_IGNORE_CASEoperator.Create a condition to case-insensitively pattern-check this field against a value.
This translates to
this not ilike valueinSQLDialect.POSTGRES, or tolower(this) not like lower(value)in all other dialects.- Specified by:
notLikeIgnoreCasein interfaceField<T>- Parameters:
pattern- is wrapped as.invalid @link
#val(Object)
-
notLikeIgnoreCase
Description copied from interface:FieldTheNOT_LIKE_IGNORE_CASEoperator.Create a condition to case-insensitively pattern-check this field against a value.
This translates to
this not ilike valueinSQLDialect.POSTGRES, or tolower(this) not like lower(value)in all other dialects.- Specified by:
notLikeIgnoreCasein interfaceField<T>
-
notSimilarTo
Description copied from interface:FieldTheNOT_SIMILAR_TOoperator.- Specified by:
notSimilarToin interfaceField<T>- Parameters:
pattern- is wrapped as.invalid @link
#val(Object)
-
notSimilarTo
Description copied from interface:FieldTheNOT_SIMILAR_TOoperator.- Specified by:
notSimilarToin interfaceField<T>
-
notSimilarTo
Description copied from interface:FieldTheNOT_SIMILAR_TOoperator.- Specified by:
notSimilarToin interfaceField<T>
-
similarTo
Description copied from interface:FieldTheSIMILAR_TOoperator. -
similarTo
Description copied from interface:FieldTheSIMILAR_TOoperator. -
similarTo
Description copied from interface:FieldTheSIMILAR_TOoperator. -
isDocument
Description copied from interface:FieldTheIS_DOCUMENToperator.Create a condition to check if this field contains XML data.
- Specified by:
isDocumentin interfaceField<T>
-
isNotDocument
Description copied from interface:FieldTheIS_NOT_DOCUMENToperator.Create a condition to check if this field does not contain XML data.
- Specified by:
isNotDocumentin interfaceField<T>
-
isJson
Description copied from interface:FieldTheIS_JSONoperator.Create a condition to check if this field contains JSON data.
-
isNotJson
Description copied from interface:FieldTheIS_NOT_JSONoperator.Create a condition to check if this field does not contain JSON data.
-
bitAnd
Description copied from interface:FieldTheBIT_ANDoperator. -
bitAnd
Description copied from interface:FieldTheBIT_ANDoperator. -
bitNand
Description copied from interface:FieldTheBIT_NANDoperator. -
bitNand
Description copied from interface:FieldTheBIT_NANDoperator. -
bitNor
Description copied from interface:FieldTheBIT_NORoperator. -
bitNor
Description copied from interface:FieldTheBIT_NORoperator. -
bitNot
Description copied from interface:FieldTheBIT_NOToperator. -
bitOr
Description copied from interface:FieldTheBIT_ORoperator. -
bitOr
Description copied from interface:FieldTheBIT_ORoperator. -
bitXNor
Description copied from interface:FieldTheBIT_XNORoperator. -
bitXNor
Description copied from interface:FieldTheBIT_XNORoperator. -
bitXor
Description copied from interface:FieldTheBIT_XORoperator. -
bitXor
Description copied from interface:FieldTheBIT_XORoperator. -
mod
Description copied from interface:FieldTheMODoperator. -
mod
Description copied from interface:FieldTheMODoperator. -
modulo
Description copied from interface:FieldTheMODULOoperator, an alias for theMODoperator. -
modulo
Description copied from interface:FieldTheMODULOoperator, an alias for theMODoperator. -
rem
Description copied from interface:FieldTheREMoperator, an alias for theMODoperator. -
rem
Description copied from interface:FieldTheREMoperator, an alias for theMODoperator. -
power
Description copied from interface:FieldThePOWERoperator. -
power
Description copied from interface:FieldThePOWERoperator. -
pow
Description copied from interface:FieldThePOWoperator, an alias for thePOWERoperator. -
pow
Description copied from interface:FieldThePOWoperator, an alias for thePOWERoperator. -
shl
Description copied from interface:FieldTheSHLoperator.Left shift all bits in a number
-
shl
Description copied from interface:FieldTheSHLoperator.Left shift all bits in a number
-
shr
Description copied from interface:FieldTheSHRoperator.Right shift all bits in a number
-
shr
Description copied from interface:FieldTheSHRoperator.Right shift all bits in a number
-
contains
Description copied from interface:FieldTheCONTAINSoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
this like ('%' || escape(value, '\') || '%') escape '\'Note: This also works with numbers, for instance
val(1133).contains(13)If you're using
SQLDialect.POSTGRES, then you can use this method also to express the "ARRAY contains" operator. For example:// Use this expression val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 }) // ... to render this SQL ARRAY[1, 2, 3] @> ARRAY[1, 2]Note, this does not correspond to the Oracle Text
CONTAINS()function. Refer toOracleDSL.contains(Field, String)instead. -
contains
Description copied from interface:FieldTheCONTAINSoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
this like ('%' || escape(value, '\') || '%') escape '\'Note: This also works with numbers, for instance
val(1133).contains(13)If you're using
SQLDialect.POSTGRES, then you can use this method also to express the "ARRAY contains" operator. For example:// Use this expression val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 }) // ... to render this SQL ARRAY[1, 2, 3] @> ARRAY[1, 2]Note, this does not correspond to the Oracle Text
CONTAINS()function. Refer toOracleDSL.contains(Field, String)instead. -
containsIgnoreCase
Description copied from interface:FieldTheCONTAINS_IGNORE_CASEoperator.Convenience method for
Field.likeIgnoreCase(String, char)including proper adding of wildcards and escaping.This translates to
this ilike ('%' || escape(value, '\') || '%') escape '\'inSQLDialect.POSTGRES, or tolower(this) like lower(('%' || escape(value, '\') || '%') escape '\')in all other dialects.- Specified by:
containsIgnoreCasein interfaceField<T>- Parameters:
content- is wrapped as.invalid @link
#val(Object)
-
containsIgnoreCase
Description copied from interface:FieldTheCONTAINS_IGNORE_CASEoperator.Convenience method for
Field.likeIgnoreCase(String, char)including proper adding of wildcards and escaping.This translates to
this ilike ('%' || escape(value, '\') || '%') escape '\'inSQLDialect.POSTGRES, or tolower(this) like lower(('%' || escape(value, '\') || '%') escape '\')in all other dialects.- Specified by:
containsIgnoreCasein interfaceField<T>
-
endsWith
Description copied from interface:FieldTheENDS_WITHoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
this like ('%' || escape(value, '\')) escape '\'Note: This also works with numbers, for instance
val(1133).endsWith(33) -
endsWith
Description copied from interface:FieldTheENDS_WITHoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
this like ('%' || escape(value, '\')) escape '\'Note: This also works with numbers, for instance
val(1133).endsWith(33) -
endsWithIgnoreCase
Description copied from interface:FieldTheENDS_WITH_IGNORE_CASEoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
lower(this) like ('%' || lower(escape(value, '\'))) escape '\'Note: This also works with numbers, for instance
val(1133).endsWithIgnoreCase(33)- Specified by:
endsWithIgnoreCasein interfaceField<T>- Parameters:
suffix- is wrapped as.invalid @link
#val(Object)
-
endsWithIgnoreCase
Description copied from interface:FieldTheENDS_WITH_IGNORE_CASEoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
lower(this) like ('%' || lower(escape(value, '\'))) escape '\'Note: This also works with numbers, for instance
val(1133).endsWithIgnoreCase(33)- Specified by:
endsWithIgnoreCasein interfaceField<T>
-
startsWith
Description copied from interface:FieldTheSTARTS_WITHoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
this like (escape(value, '\') || '%') escape '\'Note: This also works with numbers, for instance
val(1133).startsWith(11)- Specified by:
startsWithin interfaceField<T>- Parameters:
prefix- is wrapped as.invalid @link
#val(Object)
-
startsWith
Description copied from interface:FieldTheSTARTS_WITHoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
this like (escape(value, '\') || '%') escape '\'Note: This also works with numbers, for instance
val(1133).startsWith(11)- Specified by:
startsWithin interfaceField<T>
-
startsWithIgnoreCase
Description copied from interface:FieldTheSTARTS_WITH_IGNORE_CASEoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
lower(this) like (lower(escape(value, '\')) || '%') escape '\'Note: This also works with numbers, for instance
val(1133).startsWithIgnoreCase(11)- Specified by:
startsWithIgnoreCasein interfaceField<T>- Parameters:
prefix- is wrapped as.invalid @link
#val(Object)
-
startsWithIgnoreCase
Description copied from interface:FieldTheSTARTS_WITH_IGNORE_CASEoperator.Convenience method for
Field.like(String, char)including proper adding of wildcards and escaping.SQL:
lower(this) like (lower(escape(value, '\')) || '%') escape '\'Note: This also works with numbers, for instance
val(1133).startsWithIgnoreCase(11)- Specified by:
startsWithIgnoreCasein interfaceField<T>
-
plus
Description copied from interface:FieldThePLUSoperator.Turn this field into an Oracle-specific field for use in outer-join predicates. It can be emulated using
Settings.isTransformTableListsToAnsiJoin().Example:
TABLE1.COL.plus().eq(TABLE2.COL); TABLE1.COL.eq(TABLE2.COL.plus());The above will generate
TABLE1.COL(+) = TABLE2.COL TABLE1.COL = TABLE2.COL(+) -
neg
Description copied from interface:FieldNegate this field to get its negative value.This renders the same on all dialects:
-[this] -
unaryMinus
Description copied from interface:FieldNegate this field to get its negative value.This is an alias for
Field.neg(), which can be recognised by the Kotlin language for operator overloading.- Specified by:
unaryMinusin interfaceField<T>
-
unaryPlus
Description copied from interface:FieldGet this field as its positive value (no effect on SQL).This can be recognised by the Kotlin language for operator overloading.
-
add
Description copied from interface:FieldAn arithmetic expression adding this to value. -
add
Description copied from interface:FieldAn arithmetic expression to add value to this.The behaviour of this operation is as follows:
Operand 1 Operand 2 Result Type Numeric Numeric Numeric Date / Time Numeric Date / Time Date / Time Interval Date / Time Interval Interval Interval -
sub
Description copied from interface:FieldAn arithmetic expression subtracting value from this. -
sub
Description copied from interface:FieldAn arithmetic expression subtracting value from this.Operand 1 Operand 2 Result Type Numeric Numeric Numeric Date / Time Numeric Date / Time Date / Time Interval Date / Time Interval Interval Interval In order to subtract one date time field from another, use any of these methods:
-
mul
Description copied from interface:FieldAn arithmetic expression multiplying this with value.- If this is a numeric field, then the result is a number of the same type as this field.
- If this is an
INTERVALfield, then the result is also anINTERVALfield (seeInterval)
-
mul
Description copied from interface:FieldAn arithmetic expression multiplying this with value.- If this is a numeric field, then the result is a number of the same type as this field.
- If this is an
INTERVALfield, then the result is also anINTERVALfield (seeInterval)
-
div
Description copied from interface:FieldAn arithmetic expression dividing this by value.- If this is a numeric field, then the result is a number of the same type as this field.
- If this is an
INTERVALfield, then the result is also anINTERVALfield (seeInterval)
-
div
Description copied from interface:FieldAn arithmetic expression dividing this by value.- If this is a numeric field, then the result is a number of the same type as this field.
- If this is an
INTERVALfield, then the result is also anINTERVALfield (seeInterval)
-
plus
Description copied from interface:FieldAn alias forField.add(Number). -
plus
Description copied from interface:FieldAn alias forField.add(Field). -
subtract
Description copied from interface:FieldAn alias forField.sub(Number). -
subtract
Description copied from interface:FieldAn alias forField.sub(Field). -
minus
Description copied from interface:FieldAn alias forField.sub(Number). -
minus
Description copied from interface:FieldAn alias forField.sub(Field). -
multiply
Description copied from interface:FieldAn alias forField.mul(Number). -
multiply
Description copied from interface:FieldAn alias forField.mul(Field). -
times
Description copied from interface:FieldAn alias forField.mul(Number). -
times
Description copied from interface:FieldAn alias forField.mul(Field). -
divide
Description copied from interface:FieldAn alias forField.div(Number). -
divide
Description copied from interface:FieldAn alias forField.div(Field). -
isTrue
Description copied from interface:FieldCreate a condition to check this field against known string literals fortrue.SQL:
lcase(this) in ("1", "y", "yes", "true", "on", "enabled") -
isFalse
Description copied from interface:FieldCreate a condition to check this field against known string literals forfalse.SQL:
lcase(this) in ("0", "n", "no", "false", "off", "disabled") -
similarTo
Description copied from interface:FieldCreate a condition to pattern-check this field against a value.SQL:
this similar to value escape 'e' -
similarTo
Description copied from interface:FieldCreate a condition to pattern-check this field against a value.SQL:
this similar to value escape 'e' -
notSimilarTo
Description copied from interface:FieldCreate a condition to pattern-check this field against a value.SQL:
this not similar to value escape 'e'- Specified by:
notSimilarToin interfaceField<T>- See Also:
-
notSimilarTo
Description copied from interface:FieldCreate a condition to pattern-check this field against a field.SQL:
this not similar to field escape 'e'- Specified by:
notSimilarToin interfaceField<T>- See Also:
-
like
Description copied from interface:FieldCreate a condition to pattern-check this field against a value.SQL:
this like value escape 'e' -
like
Description copied from interface:FieldCreate a condition to pattern-check this field against a value.SQL:
this like value escape 'e' -
likeIgnoreCase
Description copied from interface:FieldCreate a condition to case-insensitively pattern-check this field against a value.This translates to
this ilike valueinSQLDialect.POSTGRES, or tolower(this) like lower(value)in all other dialects.- Specified by:
likeIgnoreCasein interfaceField<T>- See Also:
-
likeIgnoreCase
Description copied from interface:FieldCreate a condition to case-insensitively pattern-check this field against a field.This translates to
this ilike fieldinSQLDialect.POSTGRES, or tolower(this) like lower(field)in all other dialects.- Specified by:
likeIgnoreCasein interfaceField<T>- See Also:
-
likeRegex
Description copied from interface:FieldCreate a condition to regex-pattern-check this field against a pattern.The SQL:2008 standard specifies a
<regex like predicate>of the following form:<regex like predicate> ::= <row value predicand> <regex like predicate part 2> <regex like predicate part 2> ::= [ NOT ] LIKE_REGEX <XQuery pattern> [ FLAG <XQuery option flag> ]This particular
LIKE_REGEXoperator comes in several flavours for various databases. jOOQ supports regular expressions as follows: -
likeRegex
Description copied from interface:FieldCreate a condition to regex-pattern-check this field against a pattern.See
Field.likeRegex(String)for more details -
notLike
Description copied from interface:FieldCreate a condition to pattern-check this field against a value.SQL:
this not like value escape 'e' -
notLike
Description copied from interface:FieldCreate a condition to pattern-check this field against a field.SQL:
this not like field escape 'e' -
notLikeIgnoreCase
Description copied from interface:FieldCreate a condition to case-insensitively pattern-check this field against a value.This translates to
this not ilike valueinSQLDialect.POSTGRES, or tolower(this) not like lower(value)in all other dialects.- Specified by:
notLikeIgnoreCasein interfaceField<T>- See Also:
-
notLikeIgnoreCase
Description copied from interface:FieldCreate a condition to case-insensitively pattern-check this field against a field.This translates to
this not ilike fieldinSQLDialect.POSTGRES, or tolower(this) not like lower(field)in all other dialects.- Specified by:
notLikeIgnoreCasein interfaceField<T>- See Also:
-
notLikeRegex
Description copied from interface:FieldCreate a condition to regex-pattern-check this field against a pattern.See
Field.likeRegex(String)for more details- Specified by:
notLikeRegexin interfaceField<T>- See Also:
-
notLikeRegex
Description copied from interface:FieldCreate a condition to regex-pattern-check this field against a pattern.See
Field.likeRegex(String)for more details- Specified by:
notLikeRegexin interfaceField<T>- See Also:
-
notContains
Description copied from interface:FieldInverse ofField.contains(Object).- Specified by:
notContainsin interfaceField<T>
-
notContains
Description copied from interface:FieldInverse ofField.contains(Field).- Specified by:
notContainsin interfaceField<T>
-
notContainsIgnoreCase
Description copied from interface:FieldInverse ofField.containsIgnoreCase(Object)- Specified by:
notContainsIgnoreCasein interfaceField<T>
-
notContainsIgnoreCase
Description copied from interface:FieldInverse ofField.containsIgnoreCase(Field)- Specified by:
notContainsIgnoreCasein interfaceField<T>
-
in
Description copied from interface:FieldCreate a condition to check this field against several values.SQL:
this in (values…)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
Description copied from interface:FieldCreate a condition to check this field against several values.SQL:
this in (values…) -
in
Description copied from interface:FieldCreate a condition to check this field against several values.SQL:
this in (values…)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
Description copied from interface:FieldCreate a condition to check this field against several values from a previous query.SQL:
this in (values…)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
-
notIn
Description copied from interface:FieldCreate a condition to check this field against several values.Note that if any of the passed values is
NULL, then the condition will beNULL(orfalse, depending on the dialect) as well. This is standard SQL behaviour.SQL:
this not in (values…)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
Description copied from interface:FieldCreate a condition to check this field against several values.Note that if any of the passed values is
NULL, then the condition will beNULL(orfalse, depending on the dialect) as well. This is standard SQL behaviour.SQL:
this not in (values…) -
notIn
Description copied from interface:FieldCreate a condition to check this field against several values.Note that if any of the passed values is
NULL, then the condition will beNULL(orfalse, depending on the dialect) as well. This is standard SQL behaviour.SQL:
this not in (values…)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
Description copied from interface:FieldCreate a condition to check this field against several values from a previous query.Note that if any of the passed values is
NULL, then the condition will beNULL(orfalse, depending on the dialect) as well. This is standard SQL behaviour.SQL:
this in (values…)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
-
between
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
between(minValue).and(maxValue)SQL:
this between minValue and maxValue -
between
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
between(minValue).and(maxValue)SQL:
this between minValue and maxValue -
betweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
betweenSymmetric(minValue).and(maxValue)SQL:
this between symmetric minValue and maxValue- Specified by:
betweenSymmetricin interfaceField<T>
-
betweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
betweenSymmetric(minValue).and(maxValue)SQL:
this between symmetric minValue and maxValue- Specified by:
betweenSymmetricin interfaceField<T>
-
notBetween
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
notBetween(minValue).and(maxValue)SQL:
this not between minValue and maxValue- Specified by:
notBetweenin interfaceField<T>
-
notBetween
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
notBetween(minValue).and(maxValue)SQL:
this not between minValue and maxValue- Specified by:
notBetweenin interfaceField<T>
-
notBetweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)SQL:
this not between symmetric minValue and maxValue- Specified by:
notBetweenSymmetricin interfaceField<T>
-
notBetweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.This is the same as calling
notBetweenSymmetric(minValue).and(maxValue)SQL:
this not between symmetric minValue and maxValue- Specified by:
notBetweenSymmetricin interfaceField<T>
-
between
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this between minValue and maxValue -
between
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this between minValue and maxValue -
betweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this between symmetric minValue and maxValue- Specified by:
betweenSymmetricin interfaceField<T>
-
betweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this between symmetric minValue and maxValue- Specified by:
betweenSymmetricin interfaceField<T>
-
notBetween
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this not between minValue and maxValue- Specified by:
notBetweenin interfaceField<T>
-
notBetween
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this not between minValue and maxValue- Specified by:
notBetweenin interfaceField<T>
-
notBetweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this not between symmetric minValue and maxValue- Specified by:
notBetweenSymmetricin interfaceField<T>
-
notBetweenSymmetric
Description copied from interface:FieldCreate a condition to check this field against some bounds.SQL:
this not between symmetric minValue and maxValue- Specified by:
notBetweenSymmetricin interfaceField<T>
-
equalIgnoreCase
Description copied from interface:Fieldlower(this) = lower(value).- Specified by:
equalIgnoreCasein interfaceField<T>
-
equalIgnoreCase
Description copied from interface:Fieldlower(this) = lower(value).- Specified by:
equalIgnoreCasein interfaceField<T>
-
notEqualIgnoreCase
Description copied from interface:Fieldlower(this) != lower(value).- Specified by:
notEqualIgnoreCasein interfaceField<T>
-
notEqualIgnoreCase
Description copied from interface:Fieldlower(this) != lower(value).- Specified by:
notEqualIgnoreCasein interfaceField<T>
-
compare
Description copied from interface:FieldCompare this field with a value using a dynamic comparator. -
compare
Description copied from interface:FieldCompare this field with another field using a dynamic comparator. -
compare
Description copied from interface:FieldCompare this field with a subselect using a dynamic comparator.Consider
Comparator.supportsSubselect()to assess whether a comparator can be used with this method. -
compare
Description copied from interface:FieldCompare this field with a quantified subselect using a dynamic comparator.Consider
Comparator.supportsQuantifier()to assess whether a comparator can be used with this method. -
sign
Deprecated. -
abs
Deprecated. -
round
Deprecated. -
round
Deprecated. -
floor
Deprecated. -
ceil
Deprecated. -
sqrt
Deprecated. -
exp
Deprecated. -
ln
Deprecated. -
log
Deprecated. -
acos
Deprecated. -
asin
Deprecated. -
atan
Deprecated. -
atan2
Deprecated. -
atan2
Deprecated. -
cos
Deprecated. -
sin
Deprecated. -
tan
Deprecated. -
cot
Deprecated. -
sinh
Deprecated. -
cosh
Deprecated. -
tanh
Deprecated. -
coth
Deprecated. -
deg
Deprecated. -
rad
Deprecated. -
count
Deprecated. -
countDistinct
Deprecated.- Specified by:
countDistinctin interfaceField<T>- See Also:
-
max
Deprecated. -
min
Deprecated. -
sum
Deprecated. -
avg
Deprecated. -
median
Deprecated. -
stddevPop
Deprecated. -
stddevSamp
Deprecated.- Specified by:
stddevSampin interfaceField<T>- See Also:
-
varPop
Deprecated. -
varSamp
Deprecated. -
countOver
Deprecated. -
maxOver
Deprecated. -
minOver
Deprecated. -
sumOver
Deprecated. -
avgOver
Deprecated. -
firstValue
Deprecated.- Specified by:
firstValuein interfaceField<T>- See Also:
-
lastValue
Deprecated. -
lead
Deprecated. -
lead
Deprecated. -
lead
Deprecated. -
lead
Deprecated. -
lag
Deprecated. -
lag
Deprecated. -
lag
Deprecated. -
lag
Deprecated. -
stddevPopOver
Deprecated.- Specified by:
stddevPopOverin interfaceField<T>- See Also:
-
stddevSampOver
Deprecated.- Specified by:
stddevSampOverin interfaceField<T>- See Also:
-
varPopOver
Deprecated.- Specified by:
varPopOverin interfaceField<T>- See Also:
-
varSampOver
Deprecated.- Specified by:
varSampOverin interfaceField<T>- See Also:
-
upper
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
lower
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
trim
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
rtrim
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
ltrim
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
rpad
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
rpad
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
rpad
@Deprecated public final Field<String> rpad(Field<? extends Number> length, Field<String> character) Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
rpad
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
lpad
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
lpad
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
lpad
@Deprecated public final Field<String> lpad(Field<? extends Number> length, Field<String> character) Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
lpad
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
repeat
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
repeat
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
replace
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
replace
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
replace
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
replace
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
position
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
position
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
ascii
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
collate
Description copied from interface:FieldApply a collation operator to this column expression. -
collate
Description copied from interface:FieldApply a collation operator to this column expression. -
collate
Description copied from interface:FieldApply a collation operator to this column expression. -
concat
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
concat
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
concat
Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
substring
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
substring
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
substring
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
substring
@Deprecated public final Field<String> substring(Field<? extends Number> startingPosition, Field<? extends Number> length) Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
length
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
charLength
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext- Specified by:
charLengthin interfaceField<T>- See Also:
-
bitLength
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
octetLength
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext- Specified by:
octetLengthin interfaceField<T>- See Also:
-
extract
Deprecated. -
greatest
Deprecated. -
greatest
Deprecated. -
least
Deprecated. -
least
Deprecated. -
nvl
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
nvl
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
nvl2
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
nvl2
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
nullif
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
nullif
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
decode
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
decode
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
decode
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
decode
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
coalesce
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
coalesce
Deprecated.Description copied from interface:FieldThis method is part of the pre-2.0 API. This API is maintained for backwards-compatibility. It may be removed in the future. Consider using equivalent methods fromDSLContext -
getConverter
Description copied from interface:TypedThe object's underlyingConverter.By default, all typed objects reference an identity-converter
Converter<T, T>. If an implementation is generated, custom data types may be obtained by a customConverterplaced on the generated object.- Specified by:
getConverterin interfaceTyped<T>
-
getBinding
Description copied from interface:TypedThe object's underlyingBinding.- Specified by:
getBindingin interfaceTyped<T>
-
getType
Description copied from interface:TypedThe Java type of the object. -
getDataType
Description copied from interface:TypedThe type of this object (might not be dialect-specific).- Specified by:
getDataTypein interfaceTyped<T>
-
getDataType
Description copied from interface:TypedThe dialect-specific type of this object.- Specified by:
getDataTypein interfaceTyped<T>
-
$dataType
Description copied from interface:TypedExperimental query object model accessor method, see alsoQOM. Subject to change in future jOOQ versions, use at your own risk. -
getName
Description copied from interface:NamedThe unqualified name of this object. -
getQualifiedName
Description copied from interface:NamedThe qualified name of this object.- Specified by:
getQualifiedNamein interfaceNamed
-
getUnqualifiedName
Description copied from interface:NamedThe unqualified name of this object.- Specified by:
getUnqualifiedNamein interfaceNamed
-
getComment
Description copied from interface:NamedThe comment on this object.This is the same as calling
Named.getCommentPart()and thenComment.getComment().- Specified by:
getCommentin interfaceNamed
-
getCommentPart
Description copied from interface:NamedThe comment on this object as aQueryPart.- Specified by:
getCommentPartin interfaceNamed
-
hashCode
public int hashCode()Description copied from interface:QueryPartGenerate a hash code from thisQueryPart.In general,
QueryParthash codes are the same as the hash codes generated fromQueryPart.toString(). This guarantees consistent behaviour withQueryPart.equals(Object)Some
QueryPartimplementations may choose to override this behaviour for improved performance, asQueryPart.toString()is an expensive operation, if called many times. -
equals
Description copied from interface:QueryPartCheck whether thisQueryPartcan be considered equal to anotherQueryPart.In general,
QueryPartequality is defined in terms ofQueryPart.toString()equality. In other words, two query parts are considered equal if their rendered SQL (with inlined bind variables) is equal. This means that the two query parts do not necessarily have to be of the same type.Some
QueryPartimplementations may choose to override this behaviour for improved performance, asQueryPart.toString()is an expensive operation, if called many times. -
$name
Description copied from interface:NamedExperimental query object model accessor method, see alsoQOM. Subject to change in future jOOQ versions, use at your own risk. -
rendersContent
Subclasses may override this- Specified by:
rendersContentin interfaceQueryPartInternal
-
declaresWindows
public boolean declaresWindows()Subclasses may override this- Specified by:
declaresWindowsin interfaceQueryPartInternal
-
declaresCTE
public boolean declaresCTE()Subclasses may override this- Specified by:
declaresCTEin interfaceQueryPartInternal
-
declaresParameters
Subclasses may override this- Specified by:
declaresParametersin interfaceQueryPartInternal
-
generatesCast
public boolean generatesCast()Subclasses may override this- Specified by:
generatesCastin interfaceQueryPartInternal
-
toString
Description copied from interface:QueryPartRender a SQL string representation of thisQueryPart.For improved debugging, this renders a SQL string of this
QueryPartwith inlined bind variables. If thisQueryPartisAttachable, then the attachedConfigurationmay be used for rendering the SQL string, includingSQLDialectandSettings. Do note that mostQueryPartinstances are not attached to aConfiguration, and thus there is no guarantee that the SQL string will make sense in the context of a specific database. -
create
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.Internal convenience method -
create
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.Internal convenience method -
create
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.Internal convenience method -
translate
Internal convenience method
-
Attachable.configuration()andConfiguration.dsl()instead.