org.sql.generation.api.grammar.builders.query
Interface TableReferenceBuilder

All Superinterfaces:
AbstractBuilder<TableReference>

public interface TableReferenceBuilder
extends AbstractBuilder<TableReference>

The builder to build joined tables. A joined table contains 0 or more joins.

Author:
Stanislav Muhametsin
See Also:
TableReference

Method Summary
 TableReferenceBuilder addCrossJoin(TableReference right)
          Adds a cross join (CROSS JOIN) to whatever current table of builder, and overwrites the current table with the result.
 TableReferenceBuilder addNaturalJoin(JoinType joinType, TableReference right)
          Adds a natural join (NATURAL JOIN) to whatever current table of builder, and overwrites the current table with the result.
 TableReferenceBuilder addQualifiedJoin(JoinType joinType, TableReference right, JoinSpecification joinSpec)
          Adds a qualified join (JOIN) to whatever current table of builder, and overwrites the current table with the result.
 TableReferenceBuilder addUnionJoin(TableReference right)
          Adds an union join (UNION JOIN) to whatever current table of builder, and overwrites the current table with the result.
 
Methods inherited from interface org.sql.generation.api.grammar.builders.AbstractBuilder
createExpression
 

Method Detail

addQualifiedJoin

TableReferenceBuilder addQualifiedJoin(JoinType joinType,
                                       TableReference right,
                                       JoinSpecification joinSpec)
Adds a qualified join (JOIN) to whatever current table of builder, and overwrites the current table with the result.

Parameters:
joinType - The join type.
right - The table on the right side of the join.
joinSpec - The join specification.
Returns:
This builder
See Also:
JoinType, JoinSpecification

addCrossJoin

TableReferenceBuilder addCrossJoin(TableReference right)
Adds a cross join (CROSS JOIN) to whatever current table of builder, and overwrites the current table with the result.

Parameters:
right - The table on the right side of the join.
Returns:
This builder.

addNaturalJoin

TableReferenceBuilder addNaturalJoin(JoinType joinType,
                                     TableReference right)
Adds a natural join (NATURAL JOIN) to whatever current table of builder, and overwrites the current table with the result.

Parameters:
joinType - The join type.
right - The table on the right side of the join.
Returns:
This builder.

addUnionJoin

TableReferenceBuilder addUnionJoin(TableReference right)
Adds an union join (UNION JOIN) to whatever current table of builder, and overwrites the current table with the result.

Parameters:
right - The table on the right side of the join.
Returns:
This builder


Copyright © 2010-2011. All Rights Reserved.