org.apache.ldap.server.db
Class SearchResultEnumeration
java.lang.Object
org.apache.ldap.server.db.SearchResultEnumeration
- All Implemented Interfaces:
- java.util.Enumeration, javax.naming.NamingEnumeration
- public class SearchResultEnumeration
- extends java.lang.Object
- implements javax.naming.NamingEnumeration
An enumeration that transforms another underlying enumeration over a set of
IndexRecords into an enumeration over a set of SearchResults. Note that the
SearchResult created may not be complete and other parts of the system may
modify it before return. This enumeration simply creates a new copy of the
entry to return stuffing it with the attributes that were specified. This is
all that it does now but this may change later.
- Version:
- $Rev: 159259 $
- Author:
- Apache Directory Project
Constructor Summary |
SearchResultEnumeration(java.lang.String[] attrIds,
javax.naming.NamingEnumeration underlying,
Database db)
Creates an enumeration that returns entries packaged within SearchResults
using the search parameters supplied to a search call. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchResultEnumeration
public SearchResultEnumeration(java.lang.String[] attrIds,
javax.naming.NamingEnumeration underlying,
Database db)
- Creates an enumeration that returns entries packaged within SearchResults
using the search parameters supplied to a search call.
- Parameters:
attrIds
- the returned attributesunderlying
- the enumeration over IndexRecords
close
public void close()
throws javax.naming.NamingException
- Specified by:
close
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
- See Also:
NamingEnumeration.close()
hasMore
public boolean hasMore()
throws javax.naming.NamingException
- Specified by:
hasMore
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
- See Also:
NamingEnumeration.hasMore()
next
public java.lang.Object next()
throws javax.naming.NamingException
- Specified by:
next
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
- See Also:
NamingEnumeration.next()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
- See Also:
Enumeration.hasMoreElements()
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration
- See Also:
Enumeration.nextElement()
Copyright © 2002-2005 . All Rights Reserved.