org.alfresco.cmis.search
Class CMISResultSetRowImpl

java.lang.Object
  extended by org.alfresco.cmis.search.CMISResultSetRowImpl
All Implemented Interfaces:
CMISResultSetRow, ResultSetRow

public class CMISResultSetRowImpl
extends java.lang.Object
implements CMISResultSetRow


Constructor Summary
CMISResultSetRowImpl(CMISResultSet resultSet, int index, java.util.Map scores, NodeService nodeService, java.util.Map nodeRefs, Query query, CMISDictionaryService cmisDictionaryService)
           
 
Method Summary
 ChildAssociationRef getChildAssocRef()
           
 CMISResultSet getCMISResultSet()
          Get the result set for which this row is a member.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMISResultSetRowImpl

public CMISResultSetRowImpl(CMISResultSet resultSet,
                            int index,
                            java.util.Map scores,
                            NodeService nodeService,
                            java.util.Map nodeRefs,
                            Query query,
                            CMISDictionaryService cmisDictionaryService)
Method Detail

getIndex

public int getIndex()
Description copied from interface: ResultSetRow
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.

Specified by:
getIndex in interface ResultSetRow
Returns:

getResultSet

public ResultSet getResultSet()
Description copied from interface: ResultSetRow
Get the containing result set

Specified by:
getResultSet in interface ResultSetRow
Returns:
Returns the containing resultset

getScore

public float getScore()
Description copied from interface: ResultSetRow
Get the score for this row in the result set

Specified by:
getScore in interface ResultSetRow
Returns:
Returns the score for this row in the resultset

getScore

public float getScore(java.lang.String selectorName)
Description copied from interface: ResultSetRow
Get the score related to the named selector.

Specified by:
getScore in interface ResultSetRow
Returns:
- the score.

getScores

public java.util.Map getScores()
Description copied from interface: ResultSetRow
Get the scores .

Specified by:
getScores in interface ResultSetRow
Returns:
a map of selector name to score.

getNodeRef

public NodeRef getNodeRef(java.lang.String selectorName)
Description copied from interface: ResultSetRow
Gets the node ref related to the named selector

Specified by:
getNodeRef in interface ResultSetRow
Returns:
the node ref

getNodeRefs

public java.util.Map getNodeRefs()
Description copied from interface: ResultSetRow
Gets the node refs

Specified by:
getNodeRefs in interface ResultSetRow
Returns:
a map of selector name to node ref

getValue

public java.io.Serializable getValue(java.lang.String columnName)
Description copied from interface: ResultSetRow
Get the data for a single column

Specified by:
getValue in interface ResultSetRow
Returns:
the value

getValues

public java.util.Map getValues()
Description copied from interface: ResultSetRow
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.

Specified by:
getValues in interface ResultSetRow
Returns:
Returns all the available node properties

getCMISResultSet

public CMISResultSet getCMISResultSet()
Description copied from interface: CMISResultSetRow
Get the result set for which this row is a member.

Specified by:
getCMISResultSet in interface CMISResultSetRow
Returns:
- the result set.

getChildAssocRef

public ChildAssociationRef getChildAssocRef()
Specified by:
getChildAssocRef in interface ResultSetRow
Returns:
Returns the child assoc ref for this row

getNodeRef

public NodeRef getNodeRef()
Description copied from interface: ResultSetRow
The reference to the node that equates to this row in the result set

Specified by:
getNodeRef in interface ResultSetRow
Returns:
Returns the reference to the node that makes this result

getQName

public QName getQName()
Specified by:
getQName in interface ResultSetRow
Returns:
Returns the name of the child association leading down to the node represented by this row

getValue

public java.io.Serializable getValue(QName qname)
Description copied from interface: ResultSetRow
Get a node property value by name

Specified by:
getValue in interface ResultSetRow
Parameters:
qname - the property name
Returns:
Returns the node property for the given name


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