Class DBSearchResults

  • All Implemented Interfaces:
    IDBSearchResults, java.util.Enumeration<java.lang.Object>

    public class DBSearchResults
    extends java.lang.Object
    implements IDBSearchResults
    A class represents the search results. A search results object contain a enumeration of Java objects that are just read from the database.
    Version:
    $Revision$, $Date$
    Author:
    thomask
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      DBSearchResults​(IDBRegistry registry, java.util.Enumeration<java.lang.Object> res)
      Constructs search results.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()
      Checks if any element is available.
      java.lang.Object nextElement()
      Retrieves next element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Enumeration

        asIterator
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • DBSearchResults

        public DBSearchResults​(IDBRegistry registry,
                               java.util.Enumeration<java.lang.Object> res)
        Constructs search results.
    • Method Detail

      • hasMoreElements

        public boolean hasMoreElements()
        Checks if any element is available.
        Specified by:
        hasMoreElements in interface java.util.Enumeration<java.lang.Object>
        Specified by:
        hasMoreElements in interface IDBSearchResults
        Returns:
        true if there is more elements
      • nextElement

        public java.lang.Object nextElement()
        Retrieves next element.
        Specified by:
        nextElement in interface java.util.Enumeration<java.lang.Object>
        Specified by:
        nextElement in interface IDBSearchResults
        Returns:
        next element