|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.jcr.query.JcrQueryResult
@NotThreadSafe public class JcrQueryResult
The results of a query. This is not thread-safe because it relies upon JcrSession, which is not thread-safe. Also, although the results of a query never change, the objects returned by the iterators may vary if the session information changes.
XPathQueryResult
,
JcrSqlQueryResult
Nested Class Summary | |
---|---|
protected static class |
JcrQueryResult.MultiSelectorQueryResultRow
|
protected static class |
JcrQueryResult.QueryResultNodeIterator
The NodeIterator implementation returned by the JcrQueryResult . |
protected static class |
JcrQueryResult.QueryResultRowIterator
The RowIterator implementation returned by the JcrQueryResult . |
protected static class |
JcrQueryResult.SingleSelectorQueryResultRow
|
protected static class |
JcrQueryResult.SingleSelectorQueryResultRowIterator
The RowIterator implementation returned by the JcrQueryResult . |
Field Summary | |
---|---|
protected JcrQueryContext |
context
|
protected String |
queryStatement
|
protected QueryResults |
results
|
protected Schemata |
schemata
|
Constructor Summary | |
---|---|
protected |
JcrQueryResult(JcrQueryContext context,
String query,
QueryResults graphResults,
Schemata schemata)
|
Method Summary | |
---|---|
List<String> |
getColumnNameList()
|
String[] |
getColumnNames()
|
List<String> |
getColumnTypeList()
|
String[] |
getColumnTypes()
Returns an array of the PropertyType name for each of the columns in this result. |
NodeIterator |
getNodes()
|
String |
getPlan()
Get a description of the query plan, if requested. |
RowIterator |
getRows()
|
String[] |
getSelectorNames()
Returns an array of the name of the selector (i.e., table) from which each column originates. |
protected QueryResults |
results()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final JcrQueryContext context
protected final QueryResults results
protected final Schemata schemata
protected final String queryStatement
Constructor Detail |
---|
protected JcrQueryResult(JcrQueryContext context, String query, QueryResults graphResults, Schemata schemata)
Method Detail |
---|
protected QueryResults results()
public List<String> getColumnNameList()
public List<String> getColumnTypeList()
public String[] getColumnNames()
getColumnNames
in interface QueryResult
QueryResult.getColumnNames()
public String[] getColumnTypes()
PropertyType
name for each of the columns in this result.
QueryResult.getColumnNames()
.QueryResult.getColumnTypes()
public String[] getSelectorNames()
getSelectorNames
in interface QueryResult
QueryResult.getColumnNames()
QueryResult.getSelectorNames()
public NodeIterator getNodes() throws RepositoryException
getNodes
in interface QueryResult
RepositoryException
QueryResult.getNodes()
public RowIterator getRows()
getRows
in interface QueryResult
QueryResult.getRows()
public String getPlan()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |