Interface StatementRenderer<T>
-
- All Known Implementing Classes:
StringStatementRenderer
public interface StatementRenderer<T>
Defines the contract for rendering statements. Can be used to address small differences in database syntax and some simple optimizations/query rewrites if necessary
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
alias(String alias)
T
from(List<FromItem> items)
T
fromItem(FromItem item)
Render the given itemT
fromItem(T subValue, T aliasValue)
T
fullOuterJoin(T joinFromValue, T joinOnValue)
T
innerJoin(T joinFromValue, T joinOnValue)
T
leftOuterJoin(T joinFromValue, T joinOnValue)
T
render(ExpNode joinOnPredicate)
T
rowSource(String schemaName, String tableName)
T
rowSource(T sub)
T
select(boolean distinct, SelectList selectList, FromClause fromClause, WhereClause whereClause, GroupByClause groupByClause, HavingClause havingClause, OrderByClause orderByClause, PaginationClause paginationClause)
Render the select statement using each of the components, some of which may be optional (null)
-
-
-
Method Detail
-
select
T select(boolean distinct, SelectList selectList, FromClause fromClause, WhereClause whereClause, GroupByClause groupByClause, HavingClause havingClause, OrderByClause orderByClause, PaginationClause paginationClause)
Render the select statement using each of the components, some of which may be optional (null)- Parameters:
distinct
-selectList
-fromClause
-whereClause
-groupByClause
-havingClause
-orderByClause
-paginationClause
-- Returns:
-
rowSource
T rowSource(String schemaName, String tableName)
- Parameters:
schemaName
-tableName
-- Returns:
-
innerJoin
T innerJoin(T joinFromValue, T joinOnValue)
- Parameters:
joinFromValue
-joinOnValue
-- Returns:
-
leftOuterJoin
T leftOuterJoin(T joinFromValue, T joinOnValue)
- Parameters:
joinFromValue
-joinOnValue
-- Returns:
-
-