Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/odbms/ObjectSet.java


1   /*
2    * Original source: http://www.odbms.org
3    */
4   
5   
6   package  org.odbms;
7   
8   /**
9    * query resultset.
10   * <br><br>The <code>ObjectSet</code> interface providedes iterator functions to
11   * navigate through a set of objects retrieved by a query.
12   */
13  public interface ObjectSet {
14  
15  
16      /**
17     * returns <code>true</code> if the <code>ObjectSet</code> has more elements.
18       * @return boolean <code>true</code> if the <code>ObjectSet</code> has more
19     * elements.
20       */
21      public boolean hasNext ();
22  
23  
24      /**
25     * returns the next object in the <code>ObjectSet</code>.
26       * @return the next object in the <code>ObjectSet</code>.
27       */
28      public Object next ();
29  
30  
31      /**
32     * resets the <code>ObjectSet</code> cursor before the first element. <br><br>
33     * A subsequent call to <code>next()</code> will return the first element.
34       */
35      public void reset ();
36  
37  
38  
39      /**
40     * returns the number of elements in the <code>ObjectSet</code>.
41       * @return the number of elements in the <code>ObjectSet</code>.
42       */
43      public int size ();
44  }
45  
46  
47