org.alfresco.repo.search
Class AbstractResultSet

java.lang.Object
  extended by org.alfresco.repo.search.AbstractResultSet
All Implemented Interfaces:
java.lang.Iterable, ResultSet, ResultSetSPI
Direct Known Subclasses:
ChildAssocRefResultSet, DetachedResultSet, LuceneResultSet

public abstract class AbstractResultSet
extends java.lang.Object
implements ResultSet

Common result set implementation.


Constructor Summary
AbstractResultSet()
          Default constructor
 
Method Summary
 void close()
          Close the result set and release any resources held/ The result set is bound to the transaction and will auto close at the end of the transaction.
 java.util.List getChildAssocRefs()
          Get a list of all the child associations in the results set.
 java.util.List getNodeRefs()
          Get a list of all the node refs in the result set (if there is only one selector or no selector)
 float getScore(int n)
          Get the score for the node at the given position (if there is only one selector or no selector)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.cmr.search.ResultSetSPI
getChildAssocRef, getNodeRef, getResultSetMetaData, getRow, getStart, hasMore, length
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

AbstractResultSet

public AbstractResultSet()
Default constructor

Method Detail

getScore

public float getScore(int n)
Description copied from interface: ResultSetSPI
Get the score for the node at the given position (if there is only one selector or no selector)

Specified by:
getScore in interface ResultSetSPI
Parameters:
n - zero-based index
Returns:
return the score for the row if there is only one selector

close

public void close()
Description copied from interface: ResultSetSPI
Close the result set and release any resources held/ The result set is bound to the transaction and will auto close at the end of the transaction.

Specified by:
close in interface ResultSetSPI

getNodeRefs

public java.util.List getNodeRefs()
Description copied from interface: ResultSetSPI
Get a list of all the node refs in the result set (if there is only one selector or no selector)

Specified by:
getNodeRefs in interface ResultSetSPI
Returns:
the node refs if there is only one selector or no selector *

getChildAssocRefs

public java.util.List getChildAssocRefs()
Description copied from interface: ResultSetSPI
Get a list of all the child associations in the results set. (if there is only one selectoror no selector)

Specified by:
getChildAssocRefs in interface ResultSetSPI
Returns:
the child assoc refs if there is only one selector or no selector *


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