com.ibm.jtopenlite.ddm
Class DDMReadCallbackAdapter
- java.lang.Object
-
- com.ibm.jtopenlite.ddm.DDMReadCallbackAdapter
-
- All Implemented Interfaces:
- DDMReadCallback
public abstract class DDMReadCallbackAdapter extends java.lang.Object implements DDMReadCallback
Helper class for implementing aDDMReadCallback
.
-
-
Constructor Summary
Constructors Constructor and Description DDMReadCallbackAdapter()
-
Method Summary
Methods 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 callsendOfFile()
orrecordNotFound()
.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.
-
-
-
Method Detail
-
isDone
public boolean isDone()
Returns true after an operation callsendOfFile()
orrecordNotFound()
. To reset the state, callreset()
.
-
newRecord
public abstract void newRecord(int recordNumber, byte[] recordData, boolean[] nullFields) throws java.io.IOException
Called by the other newRecord().- Throws:
java.io.IOException
-
newRecord
public void newRecord(DDMCallbackEvent event, DDMDataBuffer dataBuffer) throws java.io.IOException
Description copied from interface:DDMReadCallback
Called by DDMConnection when a new record has been read.- Specified by:
newRecord
in interfaceDDMReadCallback
- Throws:
java.io.IOException
-
recordNotFound
public void recordNotFound(DDMCallbackEvent event)
Description copied from interface:DDMReadCallback
Called by DDMConnection when a keyed read returned no matching records.- Specified by:
recordNotFound
in interfaceDDMReadCallback
-
endOfFile
public void endOfFile(DDMCallbackEvent event)
Description copied from interface:DDMReadCallback
Called by DDMConnection when a read or position operation moved the cursor to before the first record or after the last record.- Specified by:
endOfFile
in interfaceDDMReadCallback
-
reset
public void reset()
Resets the state of this callback adapter.- See Also:
isDone()
-
-