Interface Row
- 
public interface RowA row in the query result table. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodegetNode()Returns theNodecorresponding to thisRow.NodegetNode(java.lang.String selectorName)Returns theNodecorresponding to thisRowand the specified selector.java.lang.StringgetPath()Equivalent toRow.getNode().getPath().java.lang.StringgetPath(java.lang.String selectorName)Equivalent toRow.getNode(selectorName).getPath().doublegetScore()Returns the full text search score for this row associated with the default selector.doublegetScore(java.lang.String selectorName)Returns the full text search score for this row associated with the specified selector.ValuegetValue(java.lang.String columnName)Returns the value of the indicated column in thisRow.Value[]getValues()Returns an array of all the values in the same order as the column names returned byQueryResult.getColumnNames(). 
 - 
 
- 
- 
Method Detail
- 
getValues
Value[] getValues() throws RepositoryException
Returns an array of all the values in the same order as the column names returned byQueryResult.getColumnNames().- Returns:
 - a 
Valuearray. - Throws:
 RepositoryException- if an error occurs
 
- 
getValue
Value getValue(java.lang.String columnName) throws ItemNotFoundException, RepositoryException
Returns the value of the indicated column in thisRow.- Parameters:
 columnName- name of query result table column- Returns:
 - a 
Value - Throws:
 ItemNotFoundException- ifcolumnNameis not among the column names of the query result table.RepositoryException- if another error occurs.
 
- 
getNode
Node getNode() throws RepositoryException
Returns theNodecorresponding to thisRow.- Returns:
 - a 
Node - Throws:
 RepositoryException- if this query has more than one selector (and therefore, thisRowcorresponds to more than oneNode) or if another error occurs.- Since:
 - JCR 2.0
 
 
- 
getNode
Node getNode(java.lang.String selectorName) throws RepositoryException
Returns theNodecorresponding to thisRowand the specified selector. If thisRowis from a result involving outer joins, it may have noNodecorresponding to the specified selector. In such a case this method returnsnull.- Parameters:
 selectorName- aString- Returns:
 - a 
Node - Throws:
 RepositoryException- ifselectorNameis not the alias of a selector in this query or if another error occurs.- Since:
 - JCR 2.0
 
 
- 
getPath
java.lang.String getPath() throws RepositoryExceptionEquivalent toRow.getNode().getPath(). However, some implementations may be able gain efficiency by not resolving the actualNode.- Returns:
 - a 
String - Throws:
 RepositoryException- if this query has more than one selector (and therefore, thisRowcorresponds to more than oneNode) or if another error occurs.- Since:
 - JCR 2.0
 
 
- 
getPath
java.lang.String getPath(java.lang.String selectorName) throws RepositoryExceptionEquivalent toRow.getNode(selectorName).getPath(). However, some implementations may be able gain efficiency by not resolving the actualNode. If thisRowis from a result involving outer joins, it may have noNodecorresponding to the specified selector. In such a case this method returnsnull.- Parameters:
 selectorName- aString- Returns:
 - a 
String - Throws:
 RepositoryException- ifselectorNameis not the alias of a selector in this query or if another error occurs.- Since:
 - JCR 2.0
 
 
- 
getScore
double getScore() throws RepositoryExceptionReturns the full text search score for this row associated with the default selector. This corresponds to the score of a particular node.If no
FullTextSearchScoreAQM object is associated with the default selector this method will still return a value. However, in that case the returned value may not be meaningful or may simply reflect the minimum possible relevance level (for example, in some systems this might be a score of 0).Note, in JCR-SQL2 a
FullTextSearchScoreAQM object is represented by aSCORE()function. In JCR-JQOM it is represented by a Java object of typejavax.jcr.query.qom.FullTextSearchScore.- Returns:
 - a 
double - Throws:
 RepositoryException- if this query has more than one selector (and therefore, thisRowcorresponds to more than oneNode) or if another error occurs.- Since:
 - JCR 2.0
 
 
- 
getScore
double getScore(java.lang.String selectorName) throws RepositoryExceptionReturns the full text search score for this row associated with the specified selector. This corresponds to the score of a particular node.If no
FullTextSearchScoreAQM object is associated with the selectorselectorNamethis method will still return a value. However, in that case the returned value may not be meaningful or may simply reflect the minimum possible relevance level (for example, in some systems this might be a score of 0).Note, in JCR-SQL2 a
FullTextSearchScoreAQM object is represented by aSCORE()function. In JCR-JQOM it is represented by a Java object of typejavax.jcr.query.qom.FullTextSearchScore.If this
Rowis from a result involving outer joins, it may have noNodecorresponding to the specified selector. In such a case this method returns an implementation selected value, as it would if there were noFullTextSearchScoreassociated with the selector.- Parameters:
 selectorName- aString- Returns:
 - a 
double - Throws:
 RepositoryException- ifselectorNameis not the alias of a selector in this query or if another error occurs.- Since:
 - JCR 2.0
 
 
 - 
 
 -