|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.jdbc.depot.clause.QueryClause
com.samskivert.jdbc.depot.clause.Limit
public class Limit
Represents a LIMIT/OFFSET clause, for pagination.
| Field Summary | |
|---|---|
protected int |
_count
The number of rows, at most, to return. |
protected int |
_offset
The first row of the result set to return. |
| Constructor Summary | |
|---|---|
Limit(int offset,
int count)
|
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor builder)
Most uses of this class have been implemented with a visitor pattern. |
void |
addClasses(Collection<Class<? extends PersistentRecord>> classSet)
Adds all persistent classes that are brought into the SQL context by this clause: FROM clauses, JOINs, UPDATEs, anything that could create a new table abbreviation. |
int |
getCount()
|
int |
getOffset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _offset
protected int _count
| Constructor Detail |
|---|
public Limit(int offset,
int count)
| Method Detail |
|---|
public int getOffset()
public int getCount()
public void accept(ExpressionVisitor builder)
throws Exception
SQLExpressionExpressionVisitor and call this method with it.
ExceptionSQLBuilderpublic void addClasses(Collection<Class<? extends PersistentRecord>> classSet)
SQLExpression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||