Class FromClause
- java.lang.Object
 - 
- com.ibm.fhir.database.utils.query.FromClause
 
 
- 
public class FromClause extends Object
The FromClause SQL definition 
- 
- 
Constructor Summary
Constructors Constructor Description FromClause() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFrom(Select sub, Alias alias)Add the sub-query as an item in the from listvoidaddInnerJoin(String tableName, Alias alias, ExpNode joinOnPredicate)Add an inner join clause to the FROM items listvoidaddLeftOuterJoin(String tableName, Alias alias, ExpNode joinOnPredicate)Add a left outer join clause to the FROM items listvoidaddTable(String tableName)Add a table to the FROM items listvoidaddTable(String tableName, Alias alias)Add a table to the FROM items listvoidaddTable(String schemaName, String tableName)Add a table without an alias.voidaddTable(String schemaName, String tableName, Alias alias)Add a qualified schema.table with an alias.<T> Trender(StatementRenderer<T> renderer)Render this FROM clause using the given rendererStringtoString() 
 - 
 
- 
- 
Method Detail
- 
addTable
public void addTable(String schemaName, String tableName)
Add a table without an alias. Tsk tsk.- Parameters:
 schemaName- the schema qualifier for the tabletableName- the table name
 
- 
addTable
public void addTable(String schemaName, String tableName, Alias alias)
Add a qualified schema.table with an alias.- Parameters:
 schemaName- the schema qualifier for the tabletableName- the table namealias- the alias to use in select expressions and join predicates
 
- 
addTable
public void addTable(String tableName, Alias alias)
Add a table to the FROM items list- Parameters:
 tableName-alias-
 
- 
addTable
public void addTable(String tableName)
Add a table to the FROM items list- Parameters:
 tableName-alias-
 
- 
addFrom
public void addFrom(Select sub, Alias alias)
Add the sub-query as an item in the from list- Parameters:
 sub-alias-
 
- 
render
public <T> T render(StatementRenderer<T> renderer)
Render this FROM clause using the given renderer- Type Parameters:
 T-- Parameters:
 renderer-- Returns:
 
 
- 
addInnerJoin
public void addInnerJoin(String tableName, Alias alias, ExpNode joinOnPredicate)
Add an inner join clause to the FROM items list- Parameters:
 tableName-alias-joinOnPredicate-
 
 - 
 
 -