Package org.jooq.impl

Class ConvertDateTime<T>

    • Method Detail

      • clauses

        public Clause[] clauses​(Context<?> ctx)
        Description copied from interface: QueryPartInternal
        The Clauses that are represented by this query part.

        QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context.visit(QueryPart)

        This method is for JOOQ INTERNAL USE only. Do not reference directly

        Specified by:
        clauses in interface QueryPartInternal
        Returns:
        The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.
      • field

        public final Field<T> field​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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.

        Specified by:
        field in interface Field<T>
      • get

        public final T get​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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);
         
        Specified by:
        get in interface Field<T>
      • getValue

        public final T getValue​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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);
         
        Specified by:
        getValue in interface Field<T>
      • original

        public final T original​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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);
         
        Specified by:
        original in interface Field<T>
      • changed

        public final boolean changed​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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);
         
        Specified by:
        changed in interface Field<T>
      • reset

        public final void reset​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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);
         
        Specified by:
        reset in interface Field<T>
      • from

        public final Record1<T> from​(Record record)
        Description copied from interface: Field
        The inverse operation of Record.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);
         
        Specified by:
        from in interface Field<T>
      • as

        public final Field<T> as​(java.lang.String alias)
        Description copied from interface: Field
        Create 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:
        as in interface Field<T>
        Parameters:
        alias - The alias name
        Returns:
        The field alias
      • as

        public Field<T> as​(Name alias)
        Description copied from interface: Field
        Create an alias for this field.

        Note that the case-sensitivity of the returned field depends on Settings.getRenderQuotedNames() and the Name. By default, field aliases are quoted, and thus case-sensitive in many SQL dialects - use DSL.unquotedName(String...) for case-insensitive aliases.

        If the argument Name.getName() is qualified, then the Name.last() part will be used.

        Specified by:
        as in interface Field<T>
        Parameters:
        alias - The alias name
        Returns:
        The field alias
      • as

        public final Field<T> as​(Field<?> otherField)
        Description copied from interface: Field
        Create an alias for this field based on another field's name.
        Specified by:
        as in interface Field<T>
        Parameters:
        otherField - The other field whose name this field is aliased with.
        Returns:
        The field alias.
      • as

        public final Field<T> as​(java.util.function.Function<? super Field<T>,​? extends java.lang.String> aliasFunction)
        Description copied from interface: Field
        Create 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 (on Table.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());
         
        Specified by:
        as in interface Field<T>
      • getConverter

        public final Converter<?,​T> getConverter()
        Description copied from interface: Field
        The field's underlying Converter.

        By default, all fields reference an identity-converter Converter<T, T>. Custom data types may be obtained by a custom Converter placed on the generated TableField.

        Specified by:
        getConverter in interface Field<T>
        Specified by:
        getConverter in interface SelectField<T>
      • getDataType

        public final DataType<T> getDataType()
        Description copied from interface: Field
        The type of this field (might not be dialect-specific).
        Specified by:
        getDataType in interface Field<T>
        Specified by:
        getDataType in interface SelectField<T>
      • getType

        public final java.lang.Class<T> getType()
        Description copied from interface: Field
        The Java type of the field.
        Specified by:
        getType in interface Field<T>
        Specified by:
        getType in interface SelectField<T>
      • cast

        public final <Z> Field<Z> cast​(Field<Z> field)
        Description copied from interface: Field
        Cast this field to the type of another field.

        This results in the same as casting this field to DataType.getCastTypeName()

        Specified by:
        cast in interface Field<T>
        Type Parameters:
        Z - The generic type of the cast field
        Parameters:
        field - The field whose type is used for the cast
        Returns:
        The cast field
        See Also:
        Field.cast(DataType)
      • cast

        public final <Z> Field<Z> cast​(DataType<Z> type)
        Description copied from interface: Field
        Cast this field to a dialect-specific data type.
        Specified by:
        cast in interface Field<T>
        Type Parameters:
        Z - The generic type of the cast field
        Parameters:
        type - The data type that is used for the cast
        Returns:
        The cast field
      • cast

        public final <Z> Field<Z> cast​(java.lang.Class<Z> type)
        Description copied from interface: Field
        Cast this field to another type.

        The actual cast may not be accurate as the DataType has to be "guessed" from the jOOQ-configured data types. Use Field.cast(DataType) for more accurate casts.

        Specified by:
        cast in interface Field<T>
        Type Parameters:
        Z - The generic type of the cast field
        Parameters:
        type - The type that is used for the cast
        Returns:
        The cast field
        See Also:
        Field.cast(DataType)
      • coerce

        public final <Z> Field<Z> coerce​(Field<Z> field)
        Description copied from interface: Field
        Coerce 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);
         
        Specified by:
        coerce in interface Field<T>
        Type Parameters:
        Z - The generic type of the coerced field
        Parameters:
        field - The field whose type is used for the coercion
        Returns:
        The coerced field
        See Also:
        Field.coerce(DataType), Field.cast(Field)
      • coerce

        public final <Z> Field<Z> coerce​(DataType<Z> type)
        Description copied from interface: Field
        Coerce 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);
         
        Specified by:
        coerce in interface Field<T>
        Type Parameters:
        Z - The generic type of the coerced field
        Parameters:
        type - The data type that is used for the coercion
        Returns:
        The coerced field
        See Also:
        Field.cast(DataType)
      • coerce

        public final <Z> Field<Z> coerce​(java.lang.Class<Z> type)
        Description copied from interface: Field
        Coerce 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);
         
        Specified by:
        coerce in interface Field<T>
        Type Parameters:
        Z - The generic type of the coerced field
        Parameters:
        type - The type that is used for the coercion
        Returns:
        The coerced field
        See Also:
        Field.coerce(DataType), Field.cast(Class)
      • asc

        public final SortField<T> asc()
        Description copied from interface: Field
        Create an ascending sort field from this field.

        This is the same as calling Field.sort(SortOrder) with SortOrder.ASC

        Specified by:
        asc in interface Field<T>
        Returns:
        This field as an ascending sort field
      • desc

        public final SortField<T> desc()
        Description copied from interface: Field
        Create a descending sort field from this field.

        This is the same as calling Field.sort(SortOrder) with SortOrder.DESC

        Specified by:
        desc in interface Field<T>
        Returns:
        This field as a descending sort field
      • sort

        public final SortField<T> sort​(SortOrder order)
        Description copied from interface: Field
        Create an ascending/descending sort field from this field.
        Specified by:
        sort in interface Field<T>
        Parameters:
        order - The sort order
        Returns:
        This field as an ascending/descending sort field.
      • sortAsc

        public final SortField<java.lang.Integer> sortAsc​(java.util.Collection<T> sortList)
        Description copied from interface: Field
        Create 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 ASC
         

        Note: You can use this in combination with SortField.nullsFirst() or SortField.nullsLast() to specify whether the default should have highest or lowest priority.

        Specified by:
        sortAsc in interface Field<T>
        Parameters:
        sortList - The list containing sort value preferences
        Returns:
        The sort field
      • sortAsc

        @SafeVarargs
        public final SortField<java.lang.Integer> sortAsc​(T... sortList)
        Description copied from interface: Field
        Create 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 ASC
         

        Note: You can use this in combination with SortField.nullsFirst() or SortField.nullsLast() to specify whether the default should have highest or lowest priority.

        Specified by:
        sortAsc in interface Field<T>
        Parameters:
        sortList - The list containing sort value preferences
        Returns:
        The sort field
      • sortDesc

        public final SortField<java.lang.Integer> sortDesc​(java.util.Collection<T> sortList)
        Description copied from interface: Field
        Create 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 DESC
         

        Note: You can use this in combination with SortField.nullsFirst() or SortField.nullsLast() to specify whether the default should have highest or lowest priority.

        Specified by:
        sortDesc in interface Field<T>
        Parameters:
        sortList - The list containing sort value preferences
        Returns:
        The sort field
      • sortDesc

        @SafeVarargs
        public final SortField<java.lang.Integer> sortDesc​(T... sortList)
        Description copied from interface: Field
        Create 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 DESC
         

        Note: You can use this in combination with SortField.nullsFirst() or SortField.nullsLast() to specify whether the default should have highest or lowest priority.

        Specified by:
        sortDesc in interface Field<T>
        Parameters:
        sortList - The list containing sort value preferences
        Returns:
        The sort field
      • sort

        public final <Z> SortField<Z> sort​(java.util.Map<T,​Z> sortMap)
        Description copied from interface: Field
        Create 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 DESC
         

        Note: You can use this in combination with SortField.nullsFirst() or SortField.nullsLast() to specify whether the default should have highest or lowest priority.

        Specified by:
        sort in interface Field<T>
        Parameters:
        sortMap - The list containing sort value preferences
        Returns:
        The sort field
      • neg

        public final Field<T> neg()
        Description copied from interface: Field
        Negate this field to get its negative value.

        This renders the same on all dialects:

        -[this]
        Specified by:
        neg in interface Field<T>
      • unaryMinus

        public final Field<T> unaryMinus()
        Description copied from interface: Field
        Negate 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:
        unaryMinus in interface Field<T>
      • unaryPlus

        public final Field<T> unaryPlus()
        Description copied from interface: Field
        Get this field as its positive value (no effect on SQL).

        This can be recognised by the Kotlin language for operator overloading.

        Specified by:
        unaryPlus in interface Field<T>
      • add

        public final Field<T> add​(java.lang.Number value)
        Description copied from interface: Field
        An arithmetic expression adding this to value.
        Specified by:
        add in interface Field<T>
        See Also:
        Field.add(Field)
      • add

        public Field<T> add​(Field<?> value)
        Description copied from interface: Field
        An 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
        Specified by:
        add in interface Field<T>
      • sub

        public final Field<T> sub​(java.lang.Number value)
        Description copied from interface: Field
        An arithmetic expression subtracting value from this.
        Specified by:
        sub in interface Field<T>
        See Also:
        Field.sub(Field)
      • sub

        public final Field<T> sub​(Field<?> value)
        Description copied from interface: Field
        An 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:

        Specified by:
        sub in interface Field<T>
      • mul

        public final Field<T> mul​(java.lang.Number value)
        Description copied from interface: Field
        An 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 INTERVAL field, then the result is also an INTERVAL field (see Interval)
        Specified by:
        mul in interface Field<T>
      • mul

        public Field<T> mul​(Field<? extends java.lang.Number> value)
        This default implementation is known to be overridden by Expression to generate neater expressions
        Specified by:
        mul in interface Field<T>
      • div

        public final Field<T> div​(java.lang.Number value)
        Description copied from interface: Field
        An 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 INTERVAL field, then the result is also an INTERVAL field (see Interval)
        Specified by:
        div in interface Field<T>
      • div

        public final Field<T> div​(Field<? extends java.lang.Number> value)
        Description copied from interface: Field
        An 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 INTERVAL field, then the result is also an INTERVAL field (see Interval)
        Specified by:
        div in interface Field<T>
      • mod

        public final Field<T> mod​(java.lang.Number value)
        Description copied from interface: Field
        An arithmetic expression getting the modulo of this divided by value.

        This renders the modulo operation where available:

        [this] % [value]
        ... or the modulo function elsewhere:
        mod([this], [value])
        Specified by:
        mod in interface Field<T>
      • mod

        public final Field<T> mod​(Field<? extends java.lang.Number> value)
        Description copied from interface: Field
        An arithmetic expression getting the modulo of this divided by value.

        This renders the modulo operation where available:

        [this] % [value]
        ... or the modulo function elsewhere:
        mod([this], [value])
        Specified by:
        mod in interface Field<T>
      • isJson

        public final Condition isJson()
        Description copied from interface: Field
        Create a condition to check if this field contains JSON data.
        Specified by:
        isJson in interface Field<T>
      • isNotJson

        public final Condition isNotJson()
        Description copied from interface: Field
        Create a condition to check if this field does not contain JSON data.
        Specified by:
        isNotJson in interface Field<T>
      • isNull

        public final Condition isNull()
        Description copied from interface: Field
        Create a condition to check this field against null.

        SQL: this is null

        Specified by:
        isNull in interface Field<T>
      • isNotNull

        public final Condition isNotNull()
        Description copied from interface: Field
        Create a condition to check this field against null.

        SQL: this is not null

        Specified by:
        isNotNull in interface Field<T>
      • isDistinctFrom

        public final Condition isDistinctFrom​(T value)
        Description copied from interface: Field
        Create a condition to check if this field is DISTINCT from another value.

        In SQLDialect.MYSQL and SQLDialect.MARIADB, this can be emulated through

        not([this] <=> [value])

        In SQLDialect.SQLITE, this can be emulated through

        [this] IS NOT [value]

        In databases that support INTERSECT (see Select.intersect(Select), this predicate can be emulated as follows:

         NOT EXISTS (SELECT [this] INTERSECT SELECT [value])
         

        If this is not supported by the underlying database, jOOQ will render this instead:

         CASE WHEN [this] IS     NULL AND [value] IS     NULL THEN FALSE
              WHEN [this] IS     NULL AND [value] IS NOT NULL THEN TRUE
              WHEN [this] IS NOT NULL AND [value] IS     NULL THEN TRUE
              WHEN [this] =               [value]             THEN FALSE
              ELSE                                                 TRUE
         END
         
        SQL: this is distinct from value
        Specified by:
        isDistinctFrom in interface Field<T>
      • isDistinctFrom

        public final Condition isDistinctFrom​(Field<T> field)
        Description copied from interface: Field
        Create a condition to check if this field is DISTINCT from another field.

        In SQLDialect.MYSQL and SQLDialect.MARIADB, this can be emulated through

        not([this] <=> [value])

        In SQLDialect.SQLITE, this can be emulated through

        [this] IS NOT [value]

        In databases that support INTERSECT (see Select.intersect(Select), this predicate can be emulated as follows:

         NOT EXISTS (SELECT [this] INTERSECT SELECT [value])
         

        If this is not supported by the underlying database, jOOQ will render this instead:

         CASE WHEN [this] IS     NULL AND [field] IS     NULL THEN FALSE
              WHEN [this] IS     NULL AND [field] IS NOT NULL THEN TRUE
              WHEN [this] IS NOT NULL AND [field] IS     NULL THEN TRUE
              WHEN [this] =               [field]             THEN FALSE
              ELSE                                                 TRUE
         END
         
        SQL: this is distinct from field
        Specified by:
        isDistinctFrom in interface Field<T>
      • isNotDistinctFrom

        public final Condition isNotDistinctFrom​(T value)
        Description copied from interface: Field
        Create a condition to check if this field is NOT DISTINCT from another value.

        In SQLDialect.MYSQL and SQLDialect.MARIADB, this can be emulated through

        [this] <=> [value]

        In SQLDialect.SQLITE, this can be emulated through

        [this] IS [value]

        In databases that support INTERSECT (see Select.intersect(Select), this predicate can be emulated as follows:

         EXISTS (SELECT [this] INTERSECT SELECT [value])
         

        If this is not supported by the underlying database, jOOQ will render this instead:

         CASE WHEN [this] IS     NULL AND [value] IS     NULL THEN TRUE
              WHEN [this] IS     NULL AND [value] IS NOT NULL THEN FALSE
              WHEN [this] IS NOT NULL AND [value] IS     NULL THEN FALSE
              WHEN [this] =               [value]             THEN TRUE
              ELSE                                                 FALSE
         END
         
        SQL: this is not distinct from value
        Specified by:
        isNotDistinctFrom in interface Field<T>
      • isNotDistinctFrom

        public final Condition isNotDistinctFrom​(Field<T> field)
        Description copied from interface: Field
        Create a condition to check if this field is NOT DISTINCT from another field.

        In SQLDialect.MYSQL and SQLDialect.MARIADB, this can be emulated through

        [this] <=> [value]

        In SQLDialect.SQLITE, this can be emulated through

        [this] IS [value]

        In databases that support INTERSECT (see Select.intersect(Select), this predicate can be emulated as follows:

         EXISTS (SELECT [this] INTERSECT SELECT [value])
         

        If this is not supported by the underlying database, jOOQ will render this instead:

         CASE WHEN [this] IS     NULL AND [field] IS     NULL THEN TRUE
              WHEN [this] IS     NULL AND [field] IS NOT NULL THEN FALSE
              WHEN [this] IS NOT NULL AND [field] IS     NULL THEN FALSE
              WHEN [this] =               [value]             THEN TRUE
              ELSE                                                 FALSE
         END
         
        SQL: this is not distinct from field
        Specified by:
        isNotDistinctFrom in interface Field<T>
      • isTrue

        public final Condition isTrue()
        Description copied from interface: Field
        Create a condition to check this field against known string literals for true.

        SQL: lcase(this) in ("1", "y", "yes", "true", "on", "enabled")

        Specified by:
        isTrue in interface Field<T>
      • isFalse

        public final Condition isFalse()
        Description copied from interface: Field
        Create a condition to check this field against known string literals for false.

        SQL: lcase(this) in ("0", "n", "no", "false", "off", "disabled")

        Specified by:
        isFalse in interface Field<T>
      • similarTo

        public final LikeEscapeStep similarTo​(java.lang.String value)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this similar to value

        Specified by:
        similarTo in interface Field<T>
      • similarTo

        public final Condition similarTo​(java.lang.String value,
                                         char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this similar to value escape 'e'

        Specified by:
        similarTo in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • similarTo

        public final LikeEscapeStep similarTo​(Field<java.lang.String> field)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this similar to value

        Specified by:
        similarTo in interface Field<T>
      • similarTo

        public final Condition similarTo​(Field<java.lang.String> field,
                                         char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this similar to value escape 'e'

        Specified by:
        similarTo in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • notSimilarTo

        public final LikeEscapeStep notSimilarTo​(java.lang.String value)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this not similar to value

        Specified by:
        notSimilarTo in interface Field<T>
      • notSimilarTo

        public final Condition notSimilarTo​(java.lang.String value,
                                            char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this not similar to value escape 'e'

        Specified by:
        notSimilarTo in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • notSimilarTo

        public final LikeEscapeStep notSimilarTo​(Field<java.lang.String> field)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a field.

        SQL: this not similar to field

        Specified by:
        notSimilarTo in interface Field<T>
      • notSimilarTo

        public final Condition notSimilarTo​(Field<java.lang.String> field,
                                            char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a field.

        SQL: this not similar to field escape 'e'

        Specified by:
        notSimilarTo in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • like

        public final LikeEscapeStep like​(java.lang.String value)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this like value

        Specified by:
        like in interface Field<T>
      • like

        public final Condition like​(java.lang.String value,
                                    char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this like value escape 'e'

        Specified by:
        like in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • like

        public final LikeEscapeStep like​(Field<java.lang.String> field)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this like value

        Specified by:
        like in interface Field<T>
      • like

        public final Condition like​(Field<java.lang.String> field,
                                    char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this like value escape 'e'

        Specified by:
        like in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • likeIgnoreCase

        public final LikeEscapeStep likeIgnoreCase​(java.lang.String value)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a value.

        This translates to this ilike value in SQLDialect.POSTGRES, or to lower(this) like lower(value) in all other dialects.

        Specified by:
        likeIgnoreCase in interface Field<T>
      • likeIgnoreCase

        public final Condition likeIgnoreCase​(java.lang.String value,
                                              char escape)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a value.

        This translates to this ilike value in SQLDialect.POSTGRES, or to lower(this) like lower(value) in all other dialects.

        Specified by:
        likeIgnoreCase in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • likeIgnoreCase

        public final LikeEscapeStep likeIgnoreCase​(Field<java.lang.String> field)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a field.

        This translates to this ilike field in SQLDialect.POSTGRES, or to lower(this) like lower(field) in all other dialects.

        Specified by:
        likeIgnoreCase in interface Field<T>
      • likeIgnoreCase

        public final Condition likeIgnoreCase​(Field<java.lang.String> field,
                                              char escape)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a field.

        This translates to this ilike field in SQLDialect.POSTGRES, or to lower(this) like lower(field) in all other dialects.

        Specified by:
        likeIgnoreCase in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • notLike

        public final LikeEscapeStep notLike​(java.lang.String value)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this not like value

        Specified by:
        notLike in interface Field<T>
      • notLike

        public final Condition notLike​(java.lang.String value,
                                       char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a value.

        SQL: this not like value escape 'e'

        Specified by:
        notLike in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • notLike

        public final LikeEscapeStep notLike​(Field<java.lang.String> field)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a field.

        SQL: this not like field

        Specified by:
        notLike in interface Field<T>
      • notLike

        public final Condition notLike​(Field<java.lang.String> field,
                                       char escape)
        Description copied from interface: Field
        Create a condition to pattern-check this field against a field.

        SQL: this not like field escape 'e'

        Specified by:
        notLike in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • notLikeIgnoreCase

        public final LikeEscapeStep notLikeIgnoreCase​(java.lang.String value)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a value.

        This translates to this not ilike value in SQLDialect.POSTGRES, or to lower(this) not like lower(value) in all other dialects.

        Specified by:
        notLikeIgnoreCase in interface Field<T>
      • notLikeIgnoreCase

        public final Condition notLikeIgnoreCase​(java.lang.String value,
                                                 char escape)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a value.

        This translates to this not ilike value in SQLDialect.POSTGRES, or to lower(this) not like lower(value) in all other dialects.

        Specified by:
        notLikeIgnoreCase in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • notLikeIgnoreCase

        public final LikeEscapeStep notLikeIgnoreCase​(Field<java.lang.String> field)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a field.

        This translates to this not ilike field in SQLDialect.POSTGRES, or to lower(this) not like lower(field) in all other dialects.

        Specified by:
        notLikeIgnoreCase in interface Field<T>
      • notLikeIgnoreCase

        public final Condition notLikeIgnoreCase​(Field<java.lang.String> field,
                                                 char escape)
        Description copied from interface: Field
        Create a condition to case-insensitively pattern-check this field against a field.

        This translates to this not ilike field in SQLDialect.POSTGRES, or to lower(this) not like lower(field) in all other dialects.

        Specified by:
        notLikeIgnoreCase in interface Field<T>
        See Also:
        LikeEscapeStep.escape(char)
      • contains

        public final Condition contains​(T value)
        Description copied from interface: Field
        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 to OracleDSL.contains(Field, String) instead.

        Specified by:
        contains in interface Field<T>
        See Also:
        DSL.escape(String, char), Field.like(String, char)
      • contains

        public final Condition contains​(Field<T> value)
        Description copied from interface: Field
        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 to OracleDSL.contains(Field, String) instead.

        Specified by:
        contains in interface Field<T>
        See Also:
        DSL.escape(Field, char), Field.like(Field, char)
      • in

        public final Condition in​(T... values)
        Description copied from interface: Field
        Create a condition to check this field against several values.

        SQL: this in (values...)

        Note that generating dynamic SQL with arbitrary-length IN predicates 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 use Settings.isInListPadding() to produce less distinct SQL strings (see also [#5600]), or you could avoid IN lists, and replace them with:

        • IN predicates on temporary tables
        • IN predicates on unnested array bind variables
        Specified by:
        in in interface Field<T>
      • in

        public final Condition in​(Field<?>... values)
        Description copied from interface: Field
        Create a condition to check this field against several values.

        SQL: this in (values...)

        Specified by:
        in in interface Field<T>
      • in

        public final Condition in​(java.util.Collection<?> values)
        Description copied from interface: Field
        Create a condition to check this field against several values.

        SQL: this in (values...)

        Note that generating dynamic SQL with arbitrary-length IN predicates 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 use Settings.isInListPadding() to produce less distinct SQL strings (see also [#5600]), or you could avoid IN lists, and replace them with:

        • IN predicates on temporary tables
        • IN predicates on unnested array bind variables
        Specified by:
        in in interface Field<T>
      • in

        public final Condition in​(Result<? extends Record1<T>> result)
        Description copied from interface: Field
        Create 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 IN predicates 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 use Settings.isInListPadding() to produce less distinct SQL strings (see also [#5600]), or you could avoid IN lists, and replace them with:

        • IN predicates on temporary tables
        • IN predicates on unnested array bind variables
        Specified by:
        in in interface Field<T>
      • in

        public final Condition in​(Select<? extends Record1<T>> query)
        Description copied from interface: Field
        Create a condition to check this field against a subquery.

        Note that 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.

        SQL: this in (select...)

        Specified by:
        in in interface Field<T>
      • notIn

        public final Condition notIn​(T... values)
        Description copied from interface: Field
        Create a condition to check this field against several values.

        Note that if any of the passed values is NULL, then the condition will be NULL (or false, 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 IN predicates 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 use Settings.isInListPadding() to produce less distinct SQL strings (see also [#5600]), or you could avoid IN lists, and replace them with:

        • NOT IN predicates on temporary tables
        • NOT IN predicates on unnested array bind variables
        Specified by:
        notIn in interface Field<T>
      • notIn

        public final Condition notIn​(Field<?>... values)
        Description copied from interface: Field
        Create a condition to check this field against several values.

        Note that if any of the passed values is NULL, then the condition will be NULL (or false, depending on the dialect) as well. This is standard SQL behaviour.

        SQL: this not in (values...)

        Specified by:
        notIn in interface Field<T>
      • notIn

        public final Condition notIn​(java.util.Collection<?> values)
        Description copied from interface: Field
        Create a condition to check this field against several values.

        Note that if any of the passed values is NULL, then the condition will be NULL (or false, 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 IN predicates 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 use Settings.isInListPadding() to produce less distinct SQL strings (see also [#5600]), or you could avoid IN lists, and replace them with:

        • NOT IN predicates on temporary tables
        • NOT IN predicates on unnested array bind variables
        Specified by:
        notIn in interface Field<T>
      • notIn

        public final Condition notIn​(Result<? extends Record1<T>> result)
        Description copied from interface: Field
        Create 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 be NULL (or false, depending on the dialect) as well. This is standard SQL behaviour.

        SQL: this in (values...)

        Note that generating dynamic SQL with arbitrary-length NOT IN predicates 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 use Settings.isInListPadding() to produce less distinct SQL strings (see also [#5600]), or you could avoid IN lists, and replace them with:

        • NOT IN predicates on temporary tables
        • NOT IN predicates on unnested array bind variables
        Specified by:
        notIn in interface Field<T>
      • notIn

        public final Condition notIn​(Select<? extends Record1<T>> query)
        Description copied from interface: Field
        Create a condition to check this field against a subquery.

        Note that 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.

        Note that if any of the passed values is NULL, then the condition will be NULL (or false, depending on the dialect) as well. This is standard SQL behaviour.

        SQL: this not in (select...)

        Specified by:
        notIn in interface Field<T>
      • between

        public final Condition between​(T minValue,
                                       T maxValue)
        Description copied from interface: Field
        Create 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

        Specified by:
        between in interface Field<T>
      • between

        public final Condition between​(Field<T> minValue,
                                       Field<T> maxValue)
        Description copied from interface: Field
        Create 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

        Specified by:
        between in interface Field<T>
      • betweenSymmetric

        public final Condition betweenSymmetric​(T minValue,
                                                T maxValue)
        Description copied from interface: Field
        Create 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:
        betweenSymmetric in interface Field<T>
      • betweenSymmetric

        public final Condition betweenSymmetric​(Field<T> minValue,
                                                Field<T> maxValue)
        Description copied from interface: Field
        Create 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:
        betweenSymmetric in interface Field<T>
      • notBetween

        public final Condition notBetween​(T minValue,
                                          T maxValue)
        Description copied from interface: Field
        Create 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:
        notBetween in interface Field<T>
      • notBetween

        public final Condition notBetween​(Field<T> minValue,
                                          Field<T> maxValue)
        Description copied from interface: Field
        Create 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:
        notBetween in interface Field<T>
      • notBetweenSymmetric

        public final Condition notBetweenSymmetric​(T minValue,
                                                   T maxValue)
        Description copied from interface: Field
        Create 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:
        notBetweenSymmetric in interface Field<T>
      • notBetweenSymmetric

        public final Condition notBetweenSymmetric​(Field<T> minValue,
                                                   Field<T> maxValue)
        Description copied from interface: Field
        Create 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:
        notBetweenSymmetric in interface Field<T>
      • between

        public final BetweenAndStep<T> between​(T minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this between minValue and maxValue

        Specified by:
        between in interface Field<T>
      • between

        public final BetweenAndStep<T> between​(Field<T> minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this between minValue and maxValue

        Specified by:
        between in interface Field<T>
      • betweenSymmetric

        public final BetweenAndStep<T> betweenSymmetric​(T minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this between symmetric minValue and maxValue

        Specified by:
        betweenSymmetric in interface Field<T>
      • betweenSymmetric

        public final BetweenAndStep<T> betweenSymmetric​(Field<T> minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this between symmetric minValue and maxValue

        Specified by:
        betweenSymmetric in interface Field<T>
      • notBetween

        public final BetweenAndStep<T> notBetween​(T minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this not between minValue and maxValue

        Specified by:
        notBetween in interface Field<T>
      • notBetween

        public final BetweenAndStep<T> notBetween​(Field<T> minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this not between minValue and maxValue

        Specified by:
        notBetween in interface Field<T>
      • notBetweenSymmetric

        public final BetweenAndStep<T> notBetweenSymmetric​(T minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this not between symmetric minValue and maxValue

        Specified by:
        notBetweenSymmetric in interface Field<T>
      • notBetweenSymmetric

        public final BetweenAndStep<T> notBetweenSymmetric​(Field<T> minValue)
        Description copied from interface: Field
        Create a condition to check this field against some bounds.

        SQL: this not between symmetric minValue and maxValue

        Specified by:
        notBetweenSymmetric in interface Field<T>
      • equal

        public final Condition equal​(T value)
        Description copied from interface: Field
        this = value.
        Specified by:
        equal in interface Field<T>
      • equal

        public final Condition equal​(Field<T> field)
        Description copied from interface: Field
        this = field.
        Specified by:
        equal in interface Field<T>
      • equalIgnoreCase

        public final Condition equalIgnoreCase​(java.lang.String value)
        Description copied from interface: Field
        lower(this) = lower(value).
        Specified by:
        equalIgnoreCase in interface Field<T>
      • equalIgnoreCase

        public final Condition equalIgnoreCase​(Field<java.lang.String> value)
        Description copied from interface: Field
        lower(this) = lower(value).
        Specified by:
        equalIgnoreCase in interface Field<T>
      • equal

        public final Condition equal​(Select<? extends Record1<T>> query)
        Description copied from interface: Field
        this = (Select<?> ...).
        Specified by:
        equal in interface Field<T>
      • notEqual

        public final Condition notEqual​(T value)
        Description copied from interface: Field
        this != value.
        Specified by:
        notEqual in interface Field<T>
      • notEqual

        public final Condition notEqual​(Field<T> field)
        Description copied from interface: Field
        this != field.
        Specified by:
        notEqual in interface Field<T>
      • notEqualIgnoreCase

        public final Condition notEqualIgnoreCase​(java.lang.String value)
        Description copied from interface: Field
        lower(this) != lower(value).
        Specified by:
        notEqualIgnoreCase in interface Field<T>
      • notEqualIgnoreCase

        public final Condition notEqualIgnoreCase​(Field<java.lang.String> value)
        Description copied from interface: Field
        lower(this) != lower(value).
        Specified by:
        notEqualIgnoreCase in interface Field<T>
      • lessThan

        public final Condition lessThan​(T value)
        Description copied from interface: Field
        this < value.
        Specified by:
        lessThan in interface Field<T>
      • lessThan

        public final Condition lessThan​(Field<T> field)
        Description copied from interface: Field
        this < field.
        Specified by:
        lessThan in interface Field<T>
      • lessOrEqual

        public final Condition lessOrEqual​(T value)
        Description copied from interface: Field
        this <= value.
        Specified by:
        lessOrEqual in interface Field<T>
      • lessOrEqual

        public final Condition lessOrEqual​(Field<T> field)
        Description copied from interface: Field
        this <= field.
        Specified by:
        lessOrEqual in interface Field<T>
      • greaterThan

        public final Condition greaterThan​(T value)
        Description copied from interface: Field
        this > value.
        Specified by:
        greaterThan in interface Field<T>
      • greaterThan

        public final Condition greaterThan​(Field<T> field)
        Description copied from interface: Field
        this > field.
        Specified by:
        greaterThan in interface Field<T>
      • greaterOrEqual

        public final Condition greaterOrEqual​(T value)
        Description copied from interface: Field
        this >= value.
        Specified by:
        greaterOrEqual in interface Field<T>
      • compare

        public final Condition compare​(Comparator comparator,
                                       T value)
        Description copied from interface: Field
        Compare this field with a value using a dynamic comparator.
        Specified by:
        compare in interface Field<T>
        Parameters:
        comparator - The comparator to use for comparing this field with a value
        value - The value to compare this field with
        Returns:
        A comparison predicate
      • compare

        public final Condition compare​(Comparator comparator,
                                       Field<T> field)
        Description copied from interface: Field
        Compare this field with another field using a dynamic comparator.
        Specified by:
        compare in interface Field<T>
        Parameters:
        comparator - The comparator to use for comparing this field with another field
        field - The field to compare this field with
        Returns:
        A comparison predicate
      • compare

        public final Condition compare​(Comparator comparator,
                                       Select<? extends Record1<T>> query)
        Description copied from interface: Field
        Compare this field with a subselect using a dynamic comparator.

        Consider Comparator.supportsSubselect() to assess whether a comparator can be used with this method.

        Specified by:
        compare in interface Field<T>
        Parameters:
        comparator - The comparator to use for comparing this field with a subselect
        query - The subselect to compare this field with
        Returns:
        A comparison predicate
      • compare

        public final Condition compare​(Comparator comparator,
                                       QuantifiedSelect<? extends Record1<T>> query)
        Description copied from interface: Field
        Compare this field with a quantified subselect using a dynamic comparator.

        Consider Comparator.supportsQuantifier() to assess whether a comparator can be used with this method.

        Specified by:
        compare in interface Field<T>
        Parameters:
        comparator - The comparator to use for comparing this field with a quantified subselect
        query - The quantified subselect to compare this field with
        Returns:
        A comparison predicate
      • plus

        @Pro
        public final Field<T> plus()
        Description copied from interface: Field
        Turn this field into an Oracle-specific field for use in outer-join predicates.

        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(+)
         
        Specified by:
        plus in interface Field<T>
      • sign

        @Deprecated
        public final Field<java.lang.Integer> sign()
        Deprecated.
        Specified by:
        sign in interface Field<T>
        See Also:
        DSL.sign(Field)
      • sqrt

        @Deprecated
        public final Field<java.math.BigDecimal> sqrt()
        Deprecated.
        Specified by:
        sqrt in interface Field<T>
        See Also:
        DSL.sqrt(Field)
      • exp

        @Deprecated
        public final Field<java.math.BigDecimal> exp()
        Deprecated.
        Specified by:
        exp in interface Field<T>
        See Also:
        DSL.exp(Field)
      • ln

        @Deprecated
        public final Field<java.math.BigDecimal> ln()
        Deprecated.
        Specified by:
        ln in interface Field<T>
        See Also:
        DSL.ln(Field)
      • log

        @Deprecated
        public final Field<java.math.BigDecimal> log​(int base)
        Deprecated.
        Specified by:
        log in interface Field<T>
        See Also:
        DSL.log(Field, int)
      • pow

        public final Field<java.math.BigDecimal> pow​(java.lang.Number exponent)
        Description copied from interface: Field
        An arithmetic expression getting this value raised to the power of exponent.

        This renders the power operation where available:

        [this] ^ [value]
        ... or the power function elsewhere:
        power([this], [value])
        Specified by:
        pow in interface Field<T>
        See Also:
        DSL.power(Field, Number)
      • pow

        public final Field<java.math.BigDecimal> pow​(Field<? extends java.lang.Number> exponent)
        Description copied from interface: Field
        An arithmetic expression getting this value raised to the power of exponent.

        This renders the power operation where available:

        [this] ^ [value]
        ... or the power function elsewhere:
        power([this], [value])
        Specified by:
        pow in interface Field<T>
        See Also:
        DSL.power(Field, Field)
      • acos

        @Deprecated
        public final Field<java.math.BigDecimal> acos()
        Deprecated.
        Specified by:
        acos in interface Field<T>
        See Also:
        DSL.acos(Field)
      • asin

        @Deprecated
        public final Field<java.math.BigDecimal> asin()
        Deprecated.
        Specified by:
        asin in interface Field<T>
        See Also:
        DSL.asin(Field)
      • atan

        @Deprecated
        public final Field<java.math.BigDecimal> atan()
        Deprecated.
        Specified by:
        atan in interface Field<T>
        See Also:
        DSL.atan(Field)
      • cos

        @Deprecated
        public final Field<java.math.BigDecimal> cos()
        Deprecated.
        Specified by:
        cos in interface Field<T>
        See Also:
        DSL.cos(Field)
      • sin

        @Deprecated
        public final Field<java.math.BigDecimal> sin()
        Deprecated.
        Specified by:
        sin in interface Field<T>
        See Also:
        DSL.sin(Field)
      • tan

        @Deprecated
        public final Field<java.math.BigDecimal> tan()
        Deprecated.
        Specified by:
        tan in interface Field<T>
        See Also:
        DSL.tan(Field)
      • cot

        @Deprecated
        public final Field<java.math.BigDecimal> cot()
        Deprecated.
        Specified by:
        cot in interface Field<T>
        See Also:
        DSL.cot(Field)
      • sinh

        @Deprecated
        public final Field<java.math.BigDecimal> sinh()
        Deprecated.
        Specified by:
        sinh in interface Field<T>
        See Also:
        DSL.sinh(Field)
      • cosh

        @Deprecated
        public final Field<java.math.BigDecimal> cosh()
        Deprecated.
        Specified by:
        cosh in interface Field<T>
        See Also:
        DSL.cosh(Field)
      • tanh

        @Deprecated
        public final Field<java.math.BigDecimal> tanh()
        Deprecated.
        Specified by:
        tanh in interface Field<T>
        See Also:
        DSL.tanh(Field)
      • coth

        @Deprecated
        public final Field<java.math.BigDecimal> coth()
        Deprecated.
        Specified by:
        coth in interface Field<T>
        See Also:
        DSL.coth(Field)
      • deg

        @Deprecated
        public final Field<java.math.BigDecimal> deg()
        Deprecated.
        Specified by:
        deg in interface Field<T>
        See Also:
        DSL.deg(Field)
      • rad

        @Deprecated
        public final Field<java.math.BigDecimal> rad()
        Deprecated.
        Specified by:
        rad in interface Field<T>
        See Also:
        DSL.rad(Field)
      • sum

        @Deprecated
        public final Field<java.math.BigDecimal> sum()
        Deprecated.
        Specified by:
        sum in interface Field<T>
        See Also:
        DSL.sum(Field)
      • avg

        @Deprecated
        public final Field<java.math.BigDecimal> avg()
        Deprecated.
        Specified by:
        avg in interface Field<T>
        See Also:
        DSL.avg(Field)
      • upper

        @Deprecated
        public final Field<java.lang.String> upper()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        upper in interface Field<T>
        See Also:
        DSL.upper(Field)
      • lower

        @Deprecated
        public final Field<java.lang.String> lower()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        lower in interface Field<T>
        See Also:
        DSL.lower(Field)
      • trim

        @Deprecated
        public final Field<java.lang.String> trim()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        trim in interface Field<T>
        See Also:
        DSL.trim(Field)
      • rtrim

        @Deprecated
        public final Field<java.lang.String> rtrim()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        rtrim in interface Field<T>
        See Also:
        DSL.rtrim(Field)
      • ltrim

        @Deprecated
        public final Field<java.lang.String> ltrim()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        ltrim in interface Field<T>
        See Also:
        DSL.ltrim(Field)
      • rpad

        @Deprecated
        public final Field<java.lang.String> rpad​(Field<? extends java.lang.Number> length)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        rpad in interface Field<T>
        See Also:
        DSL.rpad(Field, Field)
      • rpad

        @Deprecated
        public final Field<java.lang.String> rpad​(int length)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        rpad in interface Field<T>
        See Also:
        DSL.rpad(Field, int)
      • rpad

        @Deprecated
        public final Field<java.lang.String> rpad​(Field<? extends java.lang.Number> length,
                                                  Field<java.lang.String> character)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        rpad in interface Field<T>
        See Also:
        DSL.rpad(Field, Field, Field)
      • rpad

        @Deprecated
        public final Field<java.lang.String> rpad​(int length,
                                                  char character)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        rpad in interface Field<T>
        See Also:
        DSL.rpad(Field, int, char)
      • lpad

        @Deprecated
        public final Field<java.lang.String> lpad​(Field<? extends java.lang.Number> length)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        lpad in interface Field<T>
        See Also:
        DSL.lpad(Field, Field)
      • lpad

        @Deprecated
        public final Field<java.lang.String> lpad​(int length)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        lpad in interface Field<T>
        See Also:
        DSL.lpad(Field, int)
      • lpad

        @Deprecated
        public final Field<java.lang.String> lpad​(Field<? extends java.lang.Number> length,
                                                  Field<java.lang.String> character)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        lpad in interface Field<T>
        See Also:
        DSL.lpad(Field, Field, Field)
      • lpad

        @Deprecated
        public final Field<java.lang.String> lpad​(int length,
                                                  char character)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        lpad in interface Field<T>
        See Also:
        DSL.lpad(Field, int, char)
      • repeat

        @Deprecated
        public final Field<java.lang.String> repeat​(java.lang.Number count)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        repeat in interface Field<T>
        See Also:
        DSL.repeat(Field, int)
      • repeat

        @Deprecated
        public final Field<java.lang.String> repeat​(Field<? extends java.lang.Number> count)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        repeat in interface Field<T>
        See Also:
        DSL.repeat(Field, Field)
      • replace

        @Deprecated
        public final Field<java.lang.String> replace​(Field<java.lang.String> search)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        replace in interface Field<T>
        See Also:
        DSL.replace(Field, Field)
      • replace

        @Deprecated
        public final Field<java.lang.String> replace​(java.lang.String search)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        replace in interface Field<T>
        See Also:
        DSL.replace(Field, String)
      • replace

        @Deprecated
        public final Field<java.lang.String> replace​(Field<java.lang.String> search,
                                                     Field<java.lang.String> replace)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        replace in interface Field<T>
        See Also:
        DSL.replace(Field, Field, Field)
      • replace

        @Deprecated
        public final Field<java.lang.String> replace​(java.lang.String search,
                                                     java.lang.String replace)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        replace in interface Field<T>
        See Also:
        DSL.replace(Field, String, String)
      • position

        @Deprecated
        public final Field<java.lang.Integer> position​(java.lang.String search)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        position in interface Field<T>
        See Also:
        DSL.position(Field, String)
      • position

        @Deprecated
        public final Field<java.lang.Integer> position​(Field<java.lang.String> search)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        position in interface Field<T>
        See Also:
        DSL.position(Field, Field)
      • ascii

        @Deprecated
        public final Field<java.lang.Integer> ascii()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        ascii in interface Field<T>
        See Also:
        DSL.ascii(Field)
      • collate

        public final Field<java.lang.String> collate​(java.lang.String collation)
        Description copied from interface: Field
        Apply a collation operator to this column expression.
        Specified by:
        collate in interface Field<T>
        See Also:
        DSL.collation(String)
      • collate

        public final Field<java.lang.String> collate​(Name collation)
        Description copied from interface: Field
        Apply a collation operator to this column expression.
        Specified by:
        collate in interface Field<T>
        See Also:
        DSL.collation(Name)
      • collate

        public final Field<java.lang.String> collate​(Collation collation)
        Description copied from interface: Field
        Apply a collation operator to this column expression.
        Specified by:
        collate in interface Field<T>
      • concat

        @Deprecated
        public final Field<java.lang.String> concat​(Field<?>... fields)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        concat in interface Field<T>
        See Also:
        DSL.concat(Field...)
      • concat

        @Deprecated
        public final Field<java.lang.String> concat​(java.lang.String... values)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        concat in interface Field<T>
        See Also:
        DSL.concat(String...)
      • concat

        public final Field<java.lang.String> concat​(char... values)
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        concat in interface Field<T>
        See Also:
        DSL.concat(String...)
      • substring

        @Deprecated
        public final Field<java.lang.String> substring​(int startingPosition)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        substring in interface Field<T>
        See Also:
        DSL.substring(Field, int)
      • substring

        @Deprecated
        public final Field<java.lang.String> substring​(Field<? extends java.lang.Number> startingPosition)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        substring in interface Field<T>
        See Also:
        DSL.substring(Field, Field)
      • substring

        @Deprecated
        public final Field<java.lang.String> substring​(int startingPosition,
                                                       int length)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        substring in interface Field<T>
        See Also:
        DSL.substring(Field, int, int)
      • substring

        @Deprecated
        public final Field<java.lang.String> substring​(Field<? extends java.lang.Number> startingPosition,
                                                       Field<? extends java.lang.Number> length)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        substring in interface Field<T>
        See Also:
        DSL.substring(Field, Field, Field)
      • length

        @Deprecated
        public final Field<java.lang.Integer> length()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        length in interface Field<T>
        See Also:
        DSL.length(Field)
      • charLength

        @Deprecated
        public final Field<java.lang.Integer> charLength()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        charLength in interface Field<T>
        See Also:
        DSL.charLength(Field)
      • bitLength

        @Deprecated
        public final Field<java.lang.Integer> bitLength()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        bitLength in interface Field<T>
        See Also:
        DSL.bitLength(Field)
      • octetLength

        @Deprecated
        public final Field<java.lang.Integer> octetLength()
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        octetLength in interface Field<T>
        See Also:
        DSL.octetLength(Field)
      • nvl

        @Deprecated
        public final Field<T> nvl​(T defaultValue)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        nvl in interface Field<T>
        See Also:
        DSL.nvl(Field, Object)
      • nvl

        @Deprecated
        public final Field<T> nvl​(Field<T> defaultValue)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        nvl in interface Field<T>
        See Also:
        DSL.nvl(Field, Field)
      • nvl2

        @Deprecated
        public final <Z> Field<Z> nvl2​(Z valueIfNotNull,
                                       Z valueIfNull)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        nvl2 in interface Field<T>
        See Also:
        DSL.nvl2(Field, Object, Object)
      • nvl2

        @Deprecated
        public final <Z> Field<Z> nvl2​(Field<Z> valueIfNotNull,
                                       Field<Z> valueIfNull)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        nvl2 in interface Field<T>
        See Also:
        DSL.nvl2(Field, Field, Field)
      • nullif

        @Deprecated
        public final Field<T> nullif​(T other)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        nullif in interface Field<T>
        See Also:
        DSL.nullif(Field, Object)
      • nullif

        @Deprecated
        public final Field<T> nullif​(Field<T> other)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        nullif in interface Field<T>
        See Also:
        DSL.nullif(Field, Field)
      • decode

        @Deprecated
        public final <Z> Field<Z> decode​(T search,
                                         Z result)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        decode in interface Field<T>
        See Also:
        DSL.decode(Object, Object, Object)
      • decode

        @Deprecated
        public final <Z> Field<Z> decode​(T search,
                                         Z result,
                                         java.lang.Object... more)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        decode in interface Field<T>
        See Also:
        DSL.decode(Object, Object, Object, Object...)
      • decode

        @Deprecated
        public final <Z> Field<Z> decode​(Field<T> search,
                                         Field<Z> result)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        decode in interface Field<T>
        See Also:
        DSL.decode(Field, Field, Field)
      • decode

        @Deprecated
        public final <Z> Field<Z> decode​(Field<T> search,
                                         Field<Z> result,
                                         Field<?>... more)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        decode in interface Field<T>
        See Also:
        DSL.decode(Field, Field, Field, Field...)
      • coalesce

        @Deprecated
        @SafeVarargs
        public final Field<T> coalesce​(T option,
                                       T... options)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        coalesce in interface Field<T>
        See Also:
        DSL.coalesce(Object, Object...)
      • coalesce

        @Deprecated
        public final Field<T> coalesce​(Field<T> option,
                                       Field<?>... options)
        Deprecated.
        Description copied from interface: Field
        This 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 from DSLContext
        Specified by:
        coalesce in interface Field<T>
        See Also:
        DSL.coalesce(Field, Field...)
      • getName

        public final java.lang.String getName()
        Description copied from interface: Named
        The unqualified name of this object.
        Specified by:
        getName in interface Named
      • getQualifiedName

        public final Name getQualifiedName()
        Description copied from interface: Named
        The qualified name of this object.
        Specified by:
        getQualifiedName in interface Named
      • getUnqualifiedName

        public final Name getUnqualifiedName()
        Description copied from interface: Named
        The unqualified name of this object.
        Specified by:
        getUnqualifiedName in interface Named
      • getComment

        public final java.lang.String getComment()
        Description copied from interface: Named
        The comment on this object.
        Specified by:
        getComment in interface Named
      • hashCode

        public int hashCode()
        Description copied from interface: QueryPart
        Generate a hash code from this QueryPart.

        In general, QueryPart hash codes are the same as the hash codes generated from QueryPart.toString(). This guarantees consistent behaviour with QueryPart.equals(Object)

        Some QueryPart implementations may choose to override this behaviour for improved performance, as QueryPart.toString() is an expensive operation, if called many times.

        Specified by:
        hashCode in interface QueryPart
        Returns:
        The QueryPart hash code
      • equals

        public boolean equals​(java.lang.Object that)
        Description copied from interface: QueryPart
        Check whether this QueryPart can be considered equal to another QueryPart.

        In general, QueryPart equality is defined in terms of QueryPart.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 QueryPart implementations may choose to override this behaviour for improved performance, as QueryPart.toString() is an expensive operation, if called many times.

        Specified by:
        equals in interface QueryPart
        Parameters:
        that - The other QueryPart
        Returns:
        Whether the two query parts are equal
      • toSQL

        @Deprecated
        public final void toSQL​(RenderContext context)
        Deprecated.
        - 3.4.0 - [#2694] - Use QueryPartInternal.accept(Context) instead.
        Description copied from interface: QueryPartInternal
        Render this QueryPart to a SQL string contained in context.sql(). The context will contain additional information about how to render this QueryPart, e.g. whether this QueryPart should be rendered as a declaration or reference, whether this QueryPart's contained bind variables should be inlined or replaced by '?', etc.
        Specified by:
        toSQL in interface QueryPartInternal
      • toString

        public java.lang.String toString()
        Description copied from interface: QueryPart
        Render a SQL string representation of this QueryPart.

        For improved debugging, this renders a SQL string of this QueryPart with inlined bind variables. If this QueryPart is Attachable, then the attached Configuration may be used for rendering the SQL string, including SQLDialect and Settings. Do note that most QueryPart instances are not attached to a Configuration, and thus there is no guarantee that the SQL string will make sense in the context of a specific database.

        Specified by:
        toString in interface QueryPart
        Overrides:
        toString in class java.lang.Object
        Returns:
        A SQL string representation of this QueryPart
      • translate

        protected final DataAccessException translate​(java.lang.String sql,
                                                      java.sql.SQLException e)
        Internal convenience method