com.ibm.jtopenlite.ddm
Class DDMReadCallbackAdapter

java.lang.Object
  extended by com.ibm.jtopenlite.ddm.DDMReadCallbackAdapter
All Implemented Interfaces:
DDMReadCallback

public abstract class DDMReadCallbackAdapter
extends Object
implements DDMReadCallback

Helper class for implementing a DDMReadCallback.


Constructor Summary
DDMReadCallbackAdapter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMReadCallbackAdapter

public DDMReadCallbackAdapter()
Method Detail

isDone

public boolean isDone()
Returns true after an operation calls endOfFile() or recordNotFound(). To reset the state, call reset().


newRecord

public abstract void newRecord(int recordNumber,
                               byte[] recordData,
                               boolean[] nullFields)
                        throws IOException
Called by the other newRecord().

Throws:
IOException

newRecord

public void newRecord(DDMCallbackEvent event,
                      DDMDataBuffer dataBuffer)
               throws IOException
Description copied from interface: DDMReadCallback
Called by DDMConnection when a new record has been read.

Specified by:
newRecord in interface DDMReadCallback
Throws:
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 interface DDMReadCallback

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 interface DDMReadCallback

reset

public void reset()
Resets the state of this callback adapter.

See Also:
isDone()