1 package net.sf.tomp.djunit.simple;
2
3 import net.sf.tomp.djunit.Record;
4 import net.sf.tomp.djunit.RecordIterator;
5
6 abstract public class RecordIteratorBase implements RecordIterator
7 {
8 protected int index = -1;
9
10 public Object next()
11 {
12 return nextRecord();
13 }
14
15 public void remove()
16 {
17 throw new UnsupportedOperationException("Cannot delete via " + this);
18 }
19
20 public abstract boolean hasNext();
21
22 public abstract Record nextRecord();
23
24 public Record firstRecord()
25 {
26 index = -1;
27
28 return nextRecord();
29 }
30 }