org.apache.jackrabbit.spi2dav
Class QueryResultRowImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi2dav.QueryResultRowImpl
All Implemented Interfaces:
QueryResultRow

public class QueryResultRowImpl
extends Object
implements QueryResultRow

QueryResultRowImpl implements a QueryResultRow that is initialized from a multistatus response.


Constructor Summary
QueryResultRowImpl(MultiStatusResponse response, String[] columnNames, NamePathResolver resolver, QValueFactory qValueFactory, ValueFactory valueFactory, IdFactory idFactory)
           
 
Method Summary
 NodeId getNodeId(Name selectorName)
          Returns NodeId of node for a given selectorname this result row represents.
 double getScore(Name selectorName)
          Returns score for the given selectorName of this result row.
 QValue[] getValues()
          Returns an array of QValues.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultRowImpl

public QueryResultRowImpl(MultiStatusResponse response,
                          String[] columnNames,
                          NamePathResolver resolver,
                          QValueFactory qValueFactory,
                          ValueFactory valueFactory,
                          IdFactory idFactory)
                   throws RepositoryException
Throws:
RepositoryException
Method Detail

getNodeId

public NodeId getNodeId(Name selectorName)
Description copied from interface: QueryResultRow
Returns NodeId of node for a given selectorname this result row represents.

Specified by:
getNodeId in interface QueryResultRow
Parameters:
selectorName - the name of a selector or null for the default selector.
Returns:
node id of the Node this result row represents or null if there is no node present in this row for the given selector name.
See Also:
Row.getNode(), Row.getNode(String)

getScore

public double getScore(Name selectorName)
Description copied from interface: QueryResultRow
Returns score for the given selectorName of this result row.

Specified by:
getScore in interface QueryResultRow
Parameters:
selectorName - the name of a selector or null for the default selector.
Returns:
score for the given selector in this result row.

getValues

public QValue[] getValues()
Description copied from interface: QueryResultRow
Returns an array of QValues.

Specified by:
getValues in interface QueryResultRow
Returns:
an array of QValues representing the values present in this result row.
See Also:
Row.getValue(String), Row.getValues()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.