|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.query.process.QueryResults.TupleCursor
public final class QueryResults.TupleCursor
An interface used to walk through the results.
Constructor Summary | |
---|---|
protected |
QueryResults.TupleCursor(QueryResults.Columns columns,
Iterator<Object[]> iterator)
|
Method Summary | |
---|---|
QueryResults.Location |
getLocation(int columnNumber)
Get from the current row the location of the node from which the value in the given column was taken. |
QueryResults.Location |
getLocation(String selectorName)
Get from the current row the location of the node that was produced by the named selector. |
int |
getRowIndex()
Get the 0-based index of the current row. |
Object |
getValue(int columnNumber)
Get from the current row the value in the given column. |
Object |
getValue(String columnName)
Get the value in the named column. |
boolean |
hasNext()
Determine whether this cursor can be moved from its current position to the next row. |
void |
next()
Move this cursor position to the next row. obtained for |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected QueryResults.TupleCursor(QueryResults.Columns columns, Iterator<Object[]> iterator)
Method Detail |
---|
public boolean hasNext()
QueryResults.Cursor
hasNext
in interface QueryResults.Cursor
public void next()
QueryResults.Cursor
next
in interface QueryResults.Cursor
public QueryResults.Location getLocation(int columnNumber)
QueryResults.Cursor
getLocation
in interface QueryResults.Cursor
columnNumber
- the column number (0-based)
public QueryResults.Location getLocation(String selectorName)
QueryResults.Cursor
getLocation
in interface QueryResults.Cursor
selectorName
- the name of the selector that resulted in a node appearing in the current row
public int getRowIndex()
QueryResults.Cursor
getRowIndex
in interface QueryResults.Cursor
public Object getValue(int columnNumber)
QueryResults.Cursor
getValue
in interface QueryResults.Cursor
columnNumber
- the column number (0-based)
public Object getValue(String columnName)
QueryResults.Cursor
getValue
in interface QueryResults.Cursor
columnName
- the name of the column
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |