public class Select extends AbstractFragment implements SqlStatement, SelectFragment
Select statement.root| Constructor and Description |
|---|
Select()
Create a new instance of a
Select. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SelectVisitor visitor)
Accept a visitor (e.g.
|
Select |
all()
Add a wildcard field for all involved fields.
|
Select |
field(String... names)
Add one or more named fields.
|
FromClause |
from()
Get the
FromClause of this select statement. |
GroupByClause |
groupBy(ColumnReference... columnReferences)
Create a new
GroupByClause. |
Select |
limit(int count)
Create a new full outer
LimitClause. |
Select |
limit(int offset,
int count)
Create a new full outer
LimitClause. |
OrderByClause |
orderBy(ColumnReference... columnReferences)
Create a new
OrderByClause. |
Select |
where(BooleanExpression expression)
Create a new
WhereClause. |
getRootpublic Select()
Select.public Select all()
this instance for fluent programmingpublic Select field(String... names)
names - field namethis instance for fluent programmingpublic FromClause from()
FromClause of this select statement.public Select limit(int count)
LimitClause.count - maximum number of rows to be included in query resultthis for fluent programmingIllegalStateException - if a limit clause already existspublic Select limit(int offset, int count)
LimitClause.offset - index of the first row in the query resultcount - maximum number of rows to be included in query resultthis for fluent programmingIllegalStateException - if a limit clause already existspublic Select where(BooleanExpression expression)
WhereClause.expression - boolean expression that defines the filter criteriathis for fluent programmingpublic GroupByClause groupBy(ColumnReference... columnReferences)
GroupByClause.columnReferences - column referencesGroupByClause instancepublic OrderByClause orderBy(ColumnReference... columnReferences)
OrderByClause.columnReferences - column referencesOrderByClause instancepublic void accept(SelectVisitor visitor)
SelectFragmentaccept in interface SelectFragmentvisitor - visitor to acceptCopyright © 2018–2019. All rights reserved.