Package io.github.torand.fastersql.join
Class Join
java.lang.Object
io.github.torand.fastersql.join.Join
- All Implemented Interfaces:
Sql
Implements a JOIN clause.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the column aliases referenced by this fragment.Creates a nested JOIN clause by combining this JOIN clause with the specified JOIN clause.Gets the columns referenced by this fragment.Table
<?> joined()
Gets the table joined with.Specifies that this is a LEFT OUTER JOIN clause.Gets the statement parameters introduced by this fragment.Specifies that this is a RIGHT OUTER JOIN clause.Formats object as an SQL fragment.
-
Constructor Details
-
Join
Creates a join clause.- Parameters:
left
- the left side of the join.right
- the right side of the join.
-
-
Method Details
-
leftOuter
Specifies that this is a LEFT OUTER JOIN clause.- Returns:
- the modified JOIN clause.
-
rightOuter
Specifies that this is a RIGHT OUTER JOIN clause.- Returns:
- the modified JOIN clause.
-
and
Creates a nested JOIN clause by combining this JOIN clause with the specified JOIN clause.- Parameters:
next
- the JOIN clause to combine with.- Returns:
- the nested JOIN clause.
-
joined
Gets the table joined with.- Returns:
- the table joined with.
-
sql
Description copied from interface:Sql
Formats object as an SQL fragment. -
params
Description copied from interface:Sql
Gets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:Sql
Gets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefs
in interfaceSql
- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:Sql
Gets the column aliases referenced by this fragment. For validation purposes.
-