public abstract class DDMReadCallbackAdapter extends java.lang.Object implements DDMReadCallback
DDMReadCallback
.Constructor and Description |
---|
DDMReadCallbackAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
endOfFile(DDMCallbackEvent event)
Called by DDMConnection when a read or position operation moved the cursor to before the first record or after the last record.
|
boolean |
isDone()
Returns true after an operation calls
endOfFile() or recordNotFound() . |
void |
newRecord(DDMCallbackEvent event,
DDMDataBuffer dataBuffer)
Called by DDMConnection when a new record has been read.
|
abstract void |
newRecord(int recordNumber,
byte[] recordData,
boolean[] nullFields)
Called by the other newRecord().
|
void |
recordNotFound(DDMCallbackEvent event)
Called by DDMConnection when a keyed read returned no matching records.
|
void |
reset()
Resets the state of this callback adapter.
|
public boolean isDone()
endOfFile()
or recordNotFound()
.
To reset the state, call reset()
.public abstract void newRecord(int recordNumber, byte[] recordData, boolean[] nullFields) throws java.io.IOException
java.io.IOException
public void newRecord(DDMCallbackEvent event, DDMDataBuffer dataBuffer) throws java.io.IOException
DDMReadCallback
newRecord
in interface DDMReadCallback
java.io.IOException
public void recordNotFound(DDMCallbackEvent event)
DDMReadCallback
recordNotFound
in interface DDMReadCallback
public void endOfFile(DDMCallbackEvent event)
DDMReadCallback
endOfFile
in interface DDMReadCallback
public void reset()
isDone()