Interface CTEBuilder<T extends CTEBuilder<T>>

    • Method Detail

      • with

        FullSelectCTECriteriaBuilder<T> with​(Class<?> cteClass)
        Creates a builder for a CTE with the given CTE type.
        Parameters:
        cteClass - The type of the CTE
        Returns:
        The CTE builder
      • with

        FullSelectCTECriteriaBuilder<T> with​(Class<?> cteClass,
                                             CriteriaBuilder<?> criteriaBuilder)
        Creates a builder for a CTE with the given CTE type with the given criteria builder as basis.
        Parameters:
        cteClass - The type of the CTE
        criteriaBuilder - The criteria builder to copy the query from
        Returns:
        The CTE builder
        Since:
        1.4.1
      • with

        FullSelectCTECriteriaBuilder<T> with​(Class<?> cteClass,
                                             boolean inline)
        Like with(Class) but with the option to define whether the query should be inlined.
        Parameters:
        cteClass - The type of the CTE
        inline - Whether to inline the query defined by the CTE
        Returns:
        The CTE builder
        Since:
        1.4.1
      • with

        FullSelectCTECriteriaBuilder<T> with​(Class<?> cteClass,
                                             CriteriaBuilder<?> criteriaBuilder,
                                             boolean inline)
        Like with(Class, CriteriaBuilder) but with the option to define whether the query should be inlined.
        Parameters:
        cteClass - The type of the CTE
        criteriaBuilder - The criteria builder to copy the query from
        inline - Whether to inline the query defined by the CTE
        Returns:
        The CTE builder
        Since:
        1.4.1
      • withCtesFrom

        T withCtesFrom​(CTEBuilder<?> cteBuilder)
        Copies the CTEs from the given CTE builder into this CTE builder.
        Parameters:
        cteBuilder - The CTE builder from which to copy CTEs
        Returns:
        This for method chaining
        Since:
        1.3.0
      • withRecursive

        SelectRecursiveCTECriteriaBuilder<T> withRecursive​(Class<?> cteClass)
        Creates a builder for a recursive CTE with the given CTE type.
        Parameters:
        cteClass - The type of the CTE
        Returns:
        The recursive CTE builder
      • withReturning

        ReturningModificationCriteriaBuilderFactory<T> withReturning​(Class<?> cteClass)
        Creates a builder for a modification CTE with the given CTE type.
        Parameters:
        cteClass - The type of the CTE
        Returns:
        A factory to create a modification query that returns/binds attributes to the CTE.
      • hasCte

        boolean hasCte​(Class<?> cte)
        Returns whether a CTE for the given type is defined.
        Parameters:
        cte - The type of the CTE to check
        Returns:
        true when a CTE for the given type is defined
        Since:
        1.4.0