Class StringStatementRenderer
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.expression.StringStatementRenderer
-
- All Implemented Interfaces:
StatementRenderer<String>
public class StringStatementRenderer extends Object implements StatementRenderer<String>
Helps to render a select statement as a string
-
-
Constructor Summary
Constructors Constructor Description StringStatementRenderer(IDatabaseTranslator translator, List<BindMarkerNode> collectBindMarkersInto, boolean pretty)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alias(String alias)
String
from(List<FromItem> items)
String
fromItem(FromItem item)
Render the given itemString
fromItem(String subValue, String aliasValue)
String
fullOuterJoin(String joinFromValue, String joinOnValue)
String
innerJoin(String joinFromValue, String joinOnValue)
String
leftOuterJoin(String joinFromValue, String joinOnValue)
String
render(ExpNode expression)
String
rowSource(String sub)
String
rowSource(String schemaName, String tableName)
String
select(boolean distinct, SelectList selectList, FromClause fromClause, WhereClause whereClause, GroupByClause groupByClause, HavingClause havingClause, OrderByClause orderByClause, PaginationClause paginationClause, boolean unionAll, Select union)
Render the select statement using each of the components, some of which may be optional (null)
-
-
-
Constructor Detail
-
StringStatementRenderer
public StringStatementRenderer(IDatabaseTranslator translator, List<BindMarkerNode> collectBindMarkersInto, boolean pretty)
Public constructor- Parameters:
translator
-collectBindMarkersInto
-pretty
-
-
-
Method Detail
-
select
public String select(boolean distinct, SelectList selectList, FromClause fromClause, WhereClause whereClause, GroupByClause groupByClause, HavingClause havingClause, OrderByClause orderByClause, PaginationClause paginationClause, boolean unionAll, Select union)
Description copied from interface:StatementRenderer
Render the select statement using each of the components, some of which may be optional (null)- Specified by:
select
in interfaceStatementRenderer<String>
- Returns:
-
from
public String from(List<FromItem> items)
- Specified by:
from
in interfaceStatementRenderer<String>
- Returns:
-
fromItem
public String fromItem(FromItem item)
Description copied from interface:StatementRenderer
Render the given item- Specified by:
fromItem
in interfaceStatementRenderer<String>
- Returns:
-
rowSource
public String rowSource(String sub)
- Specified by:
rowSource
in interfaceStatementRenderer<String>
- Returns:
-
fromItem
public String fromItem(String subValue, String aliasValue)
- Specified by:
fromItem
in interfaceStatementRenderer<String>
- Returns:
-
alias
public String alias(String alias)
- Specified by:
alias
in interfaceStatementRenderer<String>
- Returns:
-
rowSource
public String rowSource(String schemaName, String tableName)
- Specified by:
rowSource
in interfaceStatementRenderer<String>
- Returns:
-
render
public String render(ExpNode expression)
- Specified by:
render
in interfaceStatementRenderer<String>
- Returns:
-
innerJoin
public String innerJoin(String joinFromValue, String joinOnValue)
- Specified by:
innerJoin
in interfaceStatementRenderer<String>
- Returns:
-
leftOuterJoin
public String leftOuterJoin(String joinFromValue, String joinOnValue)
- Specified by:
leftOuterJoin
in interfaceStatementRenderer<String>
- Returns:
-
fullOuterJoin
public String fullOuterJoin(String joinFromValue, String joinOnValue)
- Specified by:
fullOuterJoin
in interfaceStatementRenderer<String>
- Returns:
-
-