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.IOExceptionpublic void newRecord(DDMCallbackEvent event, DDMDataBuffer dataBuffer) throws java.io.IOException
DDMReadCallbacknewRecord in interface DDMReadCallbackjava.io.IOExceptionpublic void recordNotFound(DDMCallbackEvent event)
DDMReadCallbackrecordNotFound in interface DDMReadCallbackpublic void endOfFile(DDMCallbackEvent event)
DDMReadCallbackendOfFile in interface DDMReadCallbackpublic void reset()
isDone()