dsql.value
Interface Cursor

All Superinterfaces:
RecordHolder
All Known Implementing Classes:
TableResult, XmlRecordHolder

public interface Cursor
extends RecordHolder

A record holder that can iterate through its records


Method Summary
 int currentRecord()
           
 Value getRecord()
          get current record; this could be the actual record, as does XmlRecordHolder, or a "proxy" as does TableResult
 void gotoRecord(int pos)
           
 boolean nextRecord()
           
 void printRecord(ASTPrint printer)
           
 void reset()
           
 
Methods inherited from interface dsql.value.RecordHolder
getRecord, getRecordCount, setRecord
 

Method Detail

reset

public void reset()
           throws ExecuteException
Throws:
ExecuteException

currentRecord

public int currentRecord()
                  throws ExecuteException
Throws:
ExecuteException

gotoRecord

public void gotoRecord(int pos)
                throws ExecuteException
Parameters:
pos - is the record position: 1 is the first record, 0 is the record before first, -1 is after the last record
Throws:
ExecuteException

nextRecord

public boolean nextRecord()
                   throws ExecuteException
Throws:
ExecuteException

getRecord

public Value getRecord()
                throws ExecuteException
get current record; this could be the actual record, as does XmlRecordHolder, or a "proxy" as does TableResult

Throws:
ExecuteException

printRecord

public void printRecord(ASTPrint printer)
                 throws ExecuteException
Throws:
ExecuteException