org.alfresco.service.cmr.search
Interface ResultSetRow


public interface ResultSetRow

A row in a result set TODO: Support for other non attribute features such as parents and path


Method Summary
 ChildAssociationRef getChildAssocRef()
           
 int getIndex()
          Get the index of this result set in the result set If you want the overall position in paged reults you have to add the skipCount fo the result set.
 NodeRef getNodeRef()
          The reference to the node that equates to this row in the result set
 NodeRef getNodeRef(java.lang.String selectorName)
          Gets the node ref related to the named selector
 java.util.Map getNodeRefs()
          Gets the node refs
 QName getQName()
           
 ResultSet getResultSet()
          Get the containing result set
 float getScore()
          Get the score for this row in the result set
 float getScore(java.lang.String selectorName)
          Get the score related to the named selector.
 java.util.Map getScores()
          Get the scores .
 java.io.Serializable getValue(QName qname)
          Get a node property value by name
 java.io.Serializable getValue(java.lang.String columnName)
          Get the data for a single column
 java.util.Map getValues()
          Get the values of all available node properties.
 

Method Detail

getValues

java.util.Map getValues()
Get the values of all available node properties. These are only properties that were stored in the query results and can vary depending on the query language that was used.

Returns:
Returns all the available node properties

getValue

java.io.Serializable getValue(java.lang.String columnName)
Get the data for a single column

Parameters:
columnName -
Returns:
the value

getValue

java.io.Serializable getValue(QName qname)
Get a node property value by name

Parameters:
qname - the property name
Returns:
Returns the node property for the given name

getNodeRef

NodeRef getNodeRef()
The reference to the node that equates to this row in the result set

Returns:
Returns the reference to the node that makes this result

getNodeRefs

java.util.Map getNodeRefs()
Gets the node refs

Returns:
a map of selector name to node ref

getNodeRef

NodeRef getNodeRef(java.lang.String selectorName)
Gets the node ref related to the named selector

Parameters:
selectorName -
Returns:
the node ref

getScore

float getScore()
Get the score for this row in the result set

Returns:
Returns the score for this row in the resultset

getScores

java.util.Map getScores()
Get the scores .

Returns:
a map of selector name to score.

getScore

float getScore(java.lang.String selectorName)
Get the score related to the named selector.

Parameters:
selectorName -
Returns:
- the score.

getResultSet

ResultSet getResultSet()
Get the containing result set

Returns:
Returns the containing resultset

getQName

QName getQName()
Returns:
Returns the name of the child association leading down to the node represented by this row

getIndex

int getIndex()
Get the index of this result set in the result set If you want the overall position in paged reults you have to add the skipCount fo the result set.

Returns:

getChildAssocRef

ChildAssociationRef getChildAssocRef()
Returns:
Returns the child assoc ref for this row


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.