org.jmonks.batch.io
Class WriterRecord

java.lang.Object
  extended byorg.jmonks.batch.io.Record
      extended byorg.jmonks.batch.io.WriterRecord
Direct Known Subclasses:
FlatFileWriter.FlatFileWriterRecord, XMLFileWriter.XMLWriterRecord

public abstract class WriterRecord
extends Record

WriterRecord provides the methods to write the values of the fields into the record. This record will be created from and submitted to write into the file for the FileWriter's.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Constructor Summary
protected WriterRecord(RecordType recordType)
          Creates a new instance of WriterRecord by accepting the type of record.
 
Method Summary
abstract  void writeField(java.lang.String fieldName, java.lang.Object fieldValue)
           Writes the given field name and value into the record.
 
Methods inherited from class org.jmonks.batch.io.Record
getRecordType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterRecord

protected WriterRecord(RecordType recordType)
Creates a new instance of WriterRecord by accepting the type of record.

Parameters:
recordType - Type of the record.
Method Detail

writeField

public abstract void writeField(java.lang.String fieldName,
                                java.lang.Object fieldValue)

Writes the given field name and value into the record. The value will be depends on the type of file. Concrete implementors provide the details on the kind of the object should be written for different fields and what the field name corresponds to.

Parameters:
fieldName - Name of the field.
fieldValue - Value corresponding the field name.