org.alfresco.repo.search
Class AbstractResultSetRowIterator
java.lang.Object
org.alfresco.repo.search.AbstractResultSetRowIterator
- All Implemented Interfaces:
- java.util.Iterator, java.util.ListIterator, ResultSetRowIterator
- Direct Known Subclasses:
- ChildAssocRefResultSetRowIterator, LuceneResultSetRowIterator, SortedResultSetRowIterator
public abstract class AbstractResultSetRowIterator
- extends java.lang.Object
- implements ResultSetRowIterator
Iterate over the rows in a ResultSet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResultSetRowIterator
public AbstractResultSetRowIterator(ResultSet resultSet)
- Create an iterator over the result set. Follows stadard ListIterator
conventions
- Parameters:
resultSet -
getResultSet
public ResultSet getResultSet()
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator- Specified by:
hasNext in interface java.util.ListIterator
allowsReverse
public boolean allowsReverse()
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious in interface java.util.ListIterator
next
public abstract ResultSetRow next()
- Specified by:
next in interface java.util.Iterator- Specified by:
next in interface java.util.ListIterator
moveToNextPosition
protected int moveToNextPosition()
previous
public abstract ResultSetRow previous()
- Specified by:
previous in interface java.util.ListIterator
moveToPreviousPosition
protected int moveToPreviousPosition()
nextIndex
public int nextIndex()
- Specified by:
nextIndex in interface java.util.ListIterator
previousIndex
public int previousIndex()
- Specified by:
previousIndex in interface java.util.ListIterator
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator- Specified by:
remove in interface java.util.ListIterator
set
public void set(ResultSetRow o)
- Specified by:
set in interface java.util.ListIterator
add
public void add(ResultSetRow o)
- Specified by:
add in interface java.util.ListIterator
Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.