Class With

    • Constructor Detail

      • With

        public With​(java.lang.String name)
        Create a new WITH statement
        Parameters:
        name - The name of the with-block
      • With

        protected With​(BeforeWith<?> parent,
                       java.lang.String name)
    • Method Detail

      • recursive

        public With recursive()
        Flag WITH statement as RECURSIVE
        Returns:
        This WITH statement
      • column

        public With column​(java.lang.String column)
        Add a column to this WITH statement
        Parameters:
        column - The column name to add
        Returns:
        This WITH statement
      • columns

        public With columns​(java.lang.String... columns)
        Add multiple columns to this WITH statement
        Parameters:
        columns - The column names to add
        Returns:
        This WITH statement
      • as

        public With as​(QueryBuilder<?> builder)
        Use a subquery as the body of this WITH statement
        Parameters:
        builder - The subquery builder to use as body
        Returns:
        This WITH statement
      • string

        public java.lang.String string​(QueryOptions options)
        Description copied from interface: QueryPart
        Transforms this statement into an SQL string
        Specified by:
        string in interface QueryPart
        Parameters:
        options - The QueryOptions to apply for transformation
        Returns:
        The created SQL string