|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.query.model.Limit
org.modeshape.jcr.query.qom.JcrLimit
public class JcrLimit

Implementation of the equi-join condition for the extended JCR Query Object Model and the Graph API.
| Field Summary | |
|---|---|
static JcrLimit |
NONE
|
| Constructor Summary | |
|---|---|
JcrLimit(int rowLimit)
Create a limit on the number of rows. |
|
JcrLimit(int rowLimit,
int offset)
Create a limit on the number of rows and the number of initial rows to skip. |
|
| Method Summary | |
|---|---|
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. |
JcrLimit |
withOffset(int offset)
|
JcrLimit |
withRowLimit(int rowLimit)
|
| Methods inherited from class org.modeshape.graph.query.model.Limit |
|---|
accept, equals, hashCode, hasRowLimited, isOffset, isUnlimited, offset, rowLimit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.modeshape.jcr.api.query.qom.Limit |
|---|
isOffset, isUnlimited |
| Field Detail |
|---|
public static final JcrLimit NONE
| Constructor Detail |
|---|
public JcrLimit(int rowLimit)
rowLimit - the maximum number of rows
IllegalArgumentException - if the row limit is negative
public JcrLimit(int rowLimit,
int offset)
rowLimit - the maximum number of rowsoffset - the number of rows to skip before beginning the results
IllegalArgumentException - if the row limit is negative, or if the offset is negative| Method Detail |
|---|
public int getOffset()
getOffset in interface LimitLimit.getOffset()public int getRowLimit()
getRowLimit in interface LimitInteger.MAX_VALUE if there is no limitLimit.getRowLimit()public JcrLimit withOffset(int offset)
withOffset in class LimitLimit.withOffset(int)public JcrLimit withRowLimit(int rowLimit)
withRowLimit in class LimitLimit.withRowLimit(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||