Class Join

    • Method Detail

      • subquery

        public Join subquery​(QueryBuilder<?> subquery,
                             java.lang.String name)
        Add a subquery as join target
        Parameters:
        subquery - The subquery to join to
        name - The name of the subquery
        Returns:
        This JOIN statement
      • table

        public Join table​(java.lang.String name)
        Join to a table by name
        Parameters:
        name - The name of the table to join to
        Returns:
        This JOIN statement
      • onColsEq

        public Join onColsEq​(java.lang.String col1,
                             java.lang.String col2)
        Set join conditions to join on two equal columns
        Parameters:
        col1 - The left column
        col2 - The right column, equal to left
        Returns:
        This instance
      • 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
        Overrides:
        string in class Conditionable<Join>
        Parameters:
        options - The QueryOptions to apply for transformation
        Returns:
        The created SQL string