Module org.jooq
Package org.jooq

Interface QueryPartInternal

    • Method Detail

      • toSQL

        @Deprecated
        void toSQL​(RenderContext ctx)
        Deprecated.
        - 3.4.0 - [#2694] - Use accept(Context) instead.
        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.
      • bind

        @Deprecated
        void bind​(BindContext ctx)
           throws DataAccessException
        Deprecated.
        - 3.4.0 - [#2694] - Use accept(Context) instead.
        Bind all parameters of this QueryPart to a PreparedStatement

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

        Parameters:
        ctx - The context holding the next bind index and other information for variable binding
        Throws:
        DataAccessException - If something went wrong while binding a variable
      • clauses

        Clause[] clauses​(Context<?> ctx)
        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

        Returns:
        The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.
      • declaresFields

        boolean declaresFields()
        Check whether this QueryPart is able to declare fields in a SELECT clause.

        This method can be used by any Context to check how a certain SQL clause should be rendered.

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

      • declaresTables

        boolean declaresTables()
        Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.

        This method can be used by any Context to check how a certain SQL clause should be rendered.

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

      • declaresWindows

        boolean declaresWindows()
        Check whether this QueryPart is able to declare windows in a WINDOW clause.

        This method can be used by any Context to check how a certain SQL clause should be rendered.

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

      • declaresCTE

        boolean declaresCTE()
        Check whether this QueryPart is able to declare common table expressions in a WITH clause.

        This method can be used by any Context to check how a certain SQL clause should be rendered.

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

      • generatesCast

        boolean generatesCast()
        Check whether this QueryPart is able to generate CAST expressions around bind variables.

        This method can be used by any Context to check how a certain SQL clause should be rendered.

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