com.partnersoft.data
Interface DataRecordFetcher

All Known Implementing Classes:
BinaryFixedWidthDataRecordSource.MyFetcher

public interface DataRecordFetcher

Implements the data fetching portion of the DataRecordSource framework. This includes getting field names, if any, and then supplying field values for each record in turn.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Method Summary
 void close()
          Performs any housekeeping measures required (closing files or connections or what-have-you).
 void fetchFieldNames(StringDataBuffer names)
          Sets field names and, by implication, number of fields.
 boolean fetchRecord(ObjectBuffer values)
          Sets field values for the next record.
 

Method Detail

fetchFieldNames

void fetchFieldNames(StringDataBuffer names)
Sets field names and, by implication, number of fields. Data types that do not have proper field names should use the convention "field1", "field2", etc. The StringDataBuffer provided is empty.


fetchRecord

boolean fetchRecord(ObjectBuffer values)
Sets field values for the next record. Returns true if there is a next record; false otherwise. This should increment the record position/cursor/whatever so that each call returns a new record. The StringDataBuffer provided is empty.


close

void close()
Performs any housekeeping measures required (closing files or connections or what-have-you).