pt.moredata.dao
Interface Reader

All Known Implementing Classes:
AbstractReader

public interface Reader

This is the interface used for reading data from a repository. Company MoreData

Version:
$Revision: 1.5 $
Author:
pcarmo

Method Summary
 void read(ReaderInformation info)
          Read data from the repository and write it to a RecordSet.
 void setDAOFieldsInfo(DAOFieldsInfo fieldsInfo)
          Set the DAOFieldsInfo object with information about the columns of the RecordSet.
 void setRecordSet(RecordSet recordSet)
          Set the RecordSet used to store the information read from the repository.
 

Method Detail

setDAOFieldsInfo

public void setDAOFieldsInfo(DAOFieldsInfo fieldsInfo)
Set the DAOFieldsInfo object with information about the columns of the RecordSet.

Parameters:
fieldsInfo - The DAOFieldInfo object.

setRecordSet

public void setRecordSet(RecordSet recordSet)
Set the RecordSet used to store the information read from the repository.

Parameters:
recordSet - The RecorSet object to store the readed information.

read

public void read(ReaderInformation info)
          throws ReaderException
Read data from the repository and write it to a RecordSet.

Parameters:
info - Information to be used by the Reader to read the data from the repository.
Throws:
ReaderException - If an error occur will reading data from the repository.