KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > dna > api > DNACursor


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.dna.api;
5
6 import com.tc.object.dna.impl.DNAEncoding;
7
8 import java.io.IOException JavaDoc;
9
10 /**
11  * A ResultSet-like interface for iterating over the fields of a DNA strand.
12  * <p>
13  * TODO: Perhaps this could be better integrated into some Class hierarchy.
14  *
15  * @author orion
16  */

17 public interface DNACursor {
18
19   public int getActionCount();
20
21   public boolean next() throws IOException JavaDoc;
22
23   public boolean next(DNAEncoding encoding) throws IOException JavaDoc, ClassNotFoundException JavaDoc;
24   
25   public void reset() throws UnsupportedOperationException JavaDoc;
26
27   public LogicalAction getLogicalAction();
28
29   public PhysicalAction getPhysicalAction();
30
31   // XXX: This should be removed or cleaned up at some point. It's here to support TreeMap which is treated logically,
32
// except for it's "comparator" field which is treated physically
33
public Object JavaDoc getAction();
34
35 }
Popular Tags