org.modeshape.jcr.api.query
Interface QueryResult

All Superinterfaces:
QueryResult

public interface QueryResult
extends QueryResult

Replicates some of the methods introduced in JCR 2.0, but also provides an extension that allows accessing the JCR PropertyType for each of the columns.


Method Summary
 String[] getColumnTypes()
          Returns an array of the PropertyType name for each of the columns in this result.
 String[] getSelectorNames()
          Returns an array of the name of the selector (i.e., table) from which each column originates.
 
Methods inherited from interface javax.jcr.query.QueryResult
getColumnNames, getNodes, getRows
 

Method Detail

getColumnTypes

String[] getColumnTypes()
Returns an array of the PropertyType name for each of the columns in this result.

Returns:
the array of property type names; never null, never has null elements, and the size always matches QueryResult.getColumnNames().

getSelectorNames

String[] getSelectorNames()
Returns an array of the name of the selector (i.e., table) from which each column originates. Note that the table name will be "" for all fabricated columns.

Specified by:
getSelectorNames in interface QueryResult
Returns:
the array of table names; never null, and the size always matches QueryResult.getColumnNames()
Since:
JCR 2.0


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.