01: package net.sourceforge.jaxor.api;
02:
03: import java.sql.ResultSet;
04:
05: /*
06: * User: Mike
07: * Date: Aug 18, 2003
08: * Time: 7:17:55 PM
09: */
10:
11: public interface EntityResultSet {
12:
13: /**
14: * Get the encapsulated result set
15: * @return
16: */
17: ResultSet getResultSet();
18:
19: boolean hasNext();
20:
21: EntityInterface next();
22:
23: void close();
24:
25: /**
26: * THIS is NOT the total, unless hasNext() returns false.
27: * @return the number of records processed so far.
28: */
29: long count();
30: }
|