| javax.jcr.query.Row
Row | public interface Row (Code) | | A row in the query result table.
|
Method Summary | |
public Node | getNode() Returns the Node corresponding to this Row .
A RepositoryException is thrown if this Row
contains values from more than one node. | public Node | getNode(String selectorName) Returns the Node corresponding to this Row and
the specified selector. | public String | getPath() Equivalent to Row.getNode().getPath() . | public String | getPath(String selectorName) Equivalent to Row.getNode(selectorName).getPath() . | public double | getScore() Returns the full text search score for this row associated with the
default selector. | public double | getScore(String selectorName) Returns the full text search score for this row associated with the
specified selector. | public Value | getValue(String columnName) Returns the value of the indicated column in this Row . | public Value[] | getValues() Returns an array of all the values in the same order as the
column names returned by
QueryResult.getColumnNames . |
getNode | public Node getNode() throws RepositoryException(Code) | | Returns the Node corresponding to this Row .
A RepositoryException is thrown if this Row
contains values from more than one node. This will be the case when more
than one selector is included among the columns specified for the query.
a Node throws: RepositoryException - if this query has more than one selector(and therefore, this Row corresponds to more than oneNode ) or if another error occurs. since: JCR 2.0 |
getNode | public Node getNode(String selectorName) throws RepositoryException(Code) | | Returns the Node corresponding to this Row and
the specified selector.
Parameters: selectorName - a String a Node throws: RepositoryException - if selectorName is not the aliasof a selector in this query or if another error occurs. since: JCR 2.0 |
getPath | public String getPath() throws RepositoryException(Code) | | Equivalent to Row.getNode().getPath() . However, some
implementations may be able gain efficiency by not resolving the actual
Node .
a String throws: RepositoryException - if this query has more than one selector(and therefore, this Row corresponds to more than oneNode ) or if another error occurs. since: JCR 2.0 |
getPath | public String getPath(String selectorName) throws RepositoryException(Code) | | Equivalent to Row.getNode(selectorName).getPath() . However, some
implementations may be able gain efficiency by not resolving the actual
Node .
Parameters: selectorName - a String a String throws: RepositoryException - if selectorName is not the aliasof a selector in this query or if another error occurs. since: JCR 2.0 |
getScore | public double getScore() throws RepositoryException(Code) | | Returns the full text search score for this row associated with the
default selector. This corresponds to the score of a particular node.
If no FullTextSearchScore AQM 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 FullTextSearchScore AQM object is represented
by a SCORE() function. In JCR-JQOM it is represented by a
Java object of type javax.jcr.query.qom.FullTextSearchScore .
a double throws: RepositoryException - if this query has more than one selector(and therefore, this Row corresponds to more than oneNode ) or if another error occurs. since: JCR 2.0 |
getScore | public double getScore(String selectorName) throws RepositoryException(Code) | | Returns the full text search score for this row associated with the
specified selector. This corresponds to the score of a particular node.
If no FullTextSearchScore AQM object is associated with the
selector selectorName 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 FullTextSearchScore AQM object is represented
by a SCORE() function. In JCR-JQOM it is represented by a
Java object of type javax.jcr.query.qom.FullTextSearchScore .
Parameters: selectorName - a String a String throws: RepositoryException - if selectorName is not the aliasof a selector in this query or if another error occurs. since: JCR 2.0 |
getValue | public Value getValue(String columnName) throws ItemNotFoundException, RepositoryException(Code) | | Returns the value of the indicated column in this Row .
If columnName is not among the column names of the query result
table, an ItemNotFoundException is thrown.
Parameters: columnName - name of query result table column a Value throws: ItemNotFoundException - if columnName s not among thecolumn names of the query result table. throws: RepositoryException - if anopther error occurs. |
|
|