public class Select extends AbstractFragment implements SqlStatement, SelectFragment
Select statementroot| 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 |
Select |
limit(int count)
Create a new full outer
LimitClause |
Select |
limit(int offset,
int count)
Create a new full outer
LimitClause |
Select |
where(BooleanExpression expression)
Create a new
WhereClause |
getRootpublic Select()
Selectpublic Select all()
this instance for fluent programmingpublic Select field(String... names)
names - field namethis instance for fluent programmingpublic FromClause from()
FromClause of this select statementpublic Select limit(int count)
LimitClausecount - maximum number of rows to be included in query resultIllegalStateException - if a limit clause already existspublic Select limit(int offset, int count)
LimitClauseoffset - 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)
WhereClauseexpression - boolean expression that defines the filter criteriapublic void accept(SelectVisitor visitor)
SelectFragmentaccept in interface SelectFragmentvisitor - visitor to acceptCopyright © 2018–2019. All rights reserved.