Class FromClause
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.FromClause
-
public class FromClause extends java.lang.ObjectThe 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(java.lang.String tableName, Alias alias, ExpNode joinOnPredicate)Add an inner join clause to the FROM items listvoidaddLeftOuterJoin(java.lang.String tableName, Alias alias, ExpNode joinOnPredicate)Add a left outer join clause to the FROM items listvoidaddTable(java.lang.String tableName)Add a table to the FROM items listvoidaddTable(java.lang.String tableName, Alias alias)Add a table to the FROM items listvoidaddTable(java.lang.String schemaName, java.lang.String tableName)Add a table without an alias.voidaddTable(java.lang.String schemaName, java.lang.String tableName, Alias alias)Add a qualified schema.table with an alias.<T> Trender(StatementRenderer<T> renderer)Render this FROM clause using the given rendererjava.lang.StringtoString()
-
-
-
Method Detail
-
addTable
public void addTable(java.lang.String schemaName, java.lang.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(java.lang.String schemaName, java.lang.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(java.lang.String tableName, Alias alias)Add a table to the FROM items list- Parameters:
tableName-alias-
-
addTable
public void addTable(java.lang.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-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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(java.lang.String tableName, Alias alias, ExpNode joinOnPredicate)Add an inner join clause to the FROM items list- Parameters:
tableName-alias-joinOnPredicate-
-
-