Package com.exasol.adapter.sql
Class SqlStatementSelect.Builder
- java.lang.Object
-
- com.exasol.adapter.sql.SqlStatementSelect.Builder
-
- Enclosing class:
- SqlStatementSelect
public static class SqlStatementSelect.Builder extends Object
Builder forSqlStatementSelect
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlStatementSelect
build()
Build a new instance ofSqlStatementSelect
SqlStatementSelect.Builder
fromClause(SqlNode fromClause)
Set the from clause of the SQL Select Statement.SqlStatementSelect.Builder
groupBy(SqlExpressionList groupBy)
Set the group by clause of the SQL Select Statement.SqlStatementSelect.Builder
having(SqlNode having)
Set the having clause of the SQL Select Statement.SqlStatementSelect.Builder
limit(SqlLimit limit)
Set the limit clause of the SQL Select Statement.SqlStatementSelect.Builder
orderBy(SqlOrderBy orderBy)
Set the order by clause of the SQL Select Statement.SqlStatementSelect.Builder
selectList(SqlSelectList selectList)
Set the select list of the SQL Select Statement.SqlStatementSelect.Builder
whereClause(SqlNode whereClause)
Set the where clause of the SQL Select Statement.
-
-
-
Method Detail
-
fromClause
public SqlStatementSelect.Builder fromClause(SqlNode fromClause)
Set the from clause of the SQL Select Statement.- Parameters:
fromClause
- from clause- Returns:
- builder instance for fluent programming
-
selectList
public SqlStatementSelect.Builder selectList(SqlSelectList selectList)
Set the select list of the SQL Select Statement.- Parameters:
selectList
- select list- Returns:
- builder instance for fluent programming
-
whereClause
public SqlStatementSelect.Builder whereClause(SqlNode whereClause)
Set the where clause of the SQL Select Statement.- Parameters:
whereClause
- where clause- Returns:
- builder instance for fluent programming
-
groupBy
public SqlStatementSelect.Builder groupBy(SqlExpressionList groupBy)
Set the group by clause of the SQL Select Statement.- Parameters:
groupBy
- group by clause- Returns:
- builder instance for fluent programming
-
having
public SqlStatementSelect.Builder having(SqlNode having)
Set the having clause of the SQL Select Statement.- Parameters:
having
- having clause- Returns:
- builder instance for fluent programming
-
orderBy
public SqlStatementSelect.Builder orderBy(SqlOrderBy orderBy)
Set the order by clause of the SQL Select Statement.- Parameters:
orderBy
- order by clause- Returns:
- builder instance for fluent programming
-
limit
public SqlStatementSelect.Builder limit(SqlLimit limit)
Set the limit clause of the SQL Select Statement.- Parameters:
limit
- limit clause- Returns:
- builder instance for fluent programming
-
build
public SqlStatementSelect build()
Build a new instance ofSqlStatementSelect
- Returns:
- new instance
-
-