com.servingxml.components.sql
Class SqlWriterFactory

java.lang.Object
  extended by com.servingxml.components.recordio.AbstractRecordWriterFactory
      extended by com.servingxml.components.sql.SqlWriterFactory
All Implemented Interfaces:
RecordFilterAppender, RecordPipelineAppender, RecordWriterFactory

public class SqlWriterFactory
extends AbstractRecordWriterFactory
implements RecordWriterFactory

A SqlWriterFactory instance may be used to obtain objects that implement the RecordWriter interface.


Field Summary
 
Fields inherited from interface com.servingxml.components.recordio.RecordPipelineAppender
EMPTY_ARRAY
 
Constructor Summary
SqlWriterFactory(JdbcConnectionPool connectionPool, SqlUpdateDatabaseFactory sqlUpdate)
           
 
Method Summary
 RecordWriter createRecordWriter(ServiceContext context, Flow flow)
           
 
Methods inherited from class com.servingxml.components.recordio.AbstractRecordWriterFactory
appendToRecordPipeline, createRecordPipeline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.servingxml.components.recordio.RecordPipelineAppender
appendToRecordPipeline, createRecordPipeline
 

Constructor Detail

SqlWriterFactory

public SqlWriterFactory(JdbcConnectionPool connectionPool,
                        SqlUpdateDatabaseFactory sqlUpdate)
Method Detail

createRecordWriter

public RecordWriter createRecordWriter(ServiceContext context,
                                       Flow flow)
Specified by:
createRecordWriter in interface RecordWriterFactory
Specified by:
createRecordWriter in class AbstractRecordWriterFactory