pt.moredata.dao.core
Class ReaderFactory

java.lang.Object
  extended bypt.moredata.dao.core.ReaderFactory

public class ReaderFactory
extends java.lang.Object

This Factory creates new objects of the pt.moredata.dao.Reader type. Company MoreData

Version:
$Revision: 1.6 $
Author:
pcarmo

Method Summary
 Reader create(DataSource dataSource, DAOFieldsInfo fieldsInfo, RecordSet recordSet)
          Create a new Reader acording to the type of DataSource.
static ReaderFactory instance()
          Devolve a instancia (singleton) do ReaderFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static ReaderFactory instance()
Devolve a instancia (singleton) do ReaderFactory.

Returns:
A instancia (singleton) do ReaderFactory.

create

public Reader create(DataSource dataSource,
                     DAOFieldsInfo fieldsInfo,
                     RecordSet recordSet)
Create a new Reader acording to the type of DataSource.

Parameters:
dataSource - The data source.
fieldsInfo - The fields information to be used by the Reader.
recordSet - The recordset with the data to be used by the Reader.
Returns:
A new Reader for the giveen DataSource.