pt.moredata.dao.core
Class WriterFactory

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

public class WriterFactory
extends java.lang.Object

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

Version:
$Revision: 1.8 $
Author:
pcarmo

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

Method Detail

instance

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

Returns:
A instancia (singleton) do WriterFactory.

create

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

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