public class LimitClause extends AbstractFragment implements SelectFragment
root| Constructor and Description |
|---|
LimitClause(SqlStatement root,
int count)
Create a new instance of a
LimitClause |
LimitClause(SqlStatement root,
int offset,
int count)
Create a new instance of a
LimitClause |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SelectVisitor visitor)
Accept a visitor (e.g.
|
int |
getCount()
Get the maximum number of rows to be handed back
|
int |
getOffset()
Get the offset row for the limit
|
boolean |
hasOffset()
Check if the limit clause has an offset
|
getRootpublic LimitClause(SqlStatement root, int count)
LimitClauseroot - SQL statement this LIMIT clause belongs tocount - maximum number of rows to be included in the query resultpublic LimitClause(SqlStatement root, int offset, int count)
LimitClauseroot - SQL statement this LIMIT clause belongs tooffset - index of the first row to be included in the query resultcount - maximum number of rows to be included in the query resultpublic int getOffset()
public int getCount()
public boolean hasOffset()
true if the limit clause has an offsetpublic void accept(SelectVisitor visitor)
SelectFragmentaccept in interface SelectFragmentvisitor - visitor to acceptCopyright © 2018–2021. All rights reserved.