|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.model.Limit
public class Limit
| Field Summary | |
|---|---|
static Limit |
NONE
|
| Constructor Summary | |
|---|---|
Limit(int rowLimit)
Create a limit on the number of rows. |
|
Limit(int rowLimit,
int offset)
Create a limit on the number of rows and the number of initial rows to skip. |
|
| Method Summary | |
|---|---|
void |
accept(QueryObjectModelVisitor visitor)
Accepts a visitor and calls the appropriate visit method
depending on the type of this QOM node. |
boolean |
equals(Object obj)
|
int |
getOffset()
Get the number of rows skipped before the results begin. |
int |
getRowLimit()
Get the maximum number of rows that are to be returned. |
int |
hashCode()
|
boolean |
hasRowLimited()
Determine whether this limit clause defines a maximum limit |
boolean |
isOffset()
Determine whether this limit clause defines an offset. |
boolean |
isUnlimited()
Determine whether this limit clause is necessary. |
String |
toString()
|
Limit |
withOffset(int offset)
|
Limit |
withRowLimit(int rowLimit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Limit NONE
| Constructor Detail |
|---|
public Limit(int rowLimit)
rowLimit - the maximum number of rows
public Limit(int rowLimit,
int offset)
rowLimit - the maximum number of rowsoffset - the number of rows to skip before beginning the results| Method Detail |
|---|
public void accept(QueryObjectModelVisitor visitor)
throws VisitException
QueryElementvisitor and calls the appropriate visit method
depending on the type of this QOM node.
accept in interface QueryElementvisitor - the visitor.
VisitExceptionQueryElement.accept(org.xcmis.search.QueryObjectModelVisitor)public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public final int getOffset()
public final int getRowLimit()
Integer.MAX_VALUE if there is no limitpublic int hashCode()
hashCode in class ObjectObject.hashCode()public final boolean hasRowLimited()
public final boolean isOffset()
public final boolean isUnlimited()
public Limit withOffset(int offset)
public Limit withRowLimit(int rowLimit)
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||