com.retek.component.salesaudit.integration.resa
Class RtlogBufferedFileWriter

java.lang.Object
  extended bycom.retek.component.salesaudit.integration.resa.RtlogBufferedFileWriter
All Implemented Interfaces:
RtlogFileWriter

public class RtlogBufferedFileWriter
extends java.lang.Object
implements RtlogFileWriter

Class defining the data and behavior for an appending RTLOG file writer.


Constructor Summary
RtlogBufferedFileWriter(java.io.File exportFile, java.lang.String rtlogFileFormatSpecification)
           
 
Method Summary
 void close()
          Close the RTLOG file and seal it, writes an FTAIL record to the file.
 java.io.File getExportFile()
          Return the file descriptor for the rtlog export file.
 int getRecordCount()
          Return the number of records written to the RTLOG file.
 int getTransactionCount()
          Return the number of transactions written to the RTLOG file.
 boolean isPurged()
          Return a boolean indiciating if the rtlog file has been purged (in error).
 void open()
          Open the RTLOG file and prepare it for processing, writes an FHEAD record to the file.
 void purge()
          Physically close the RTLOG file.
 void write(java.util.List recordsForFile)
          Write ReSA order transaction records to the RTLOG file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtlogBufferedFileWriter

public RtlogBufferedFileWriter(java.io.File exportFile,
                               java.lang.String rtlogFileFormatSpecification)
                        throws SystemException
Method Detail

getRecordCount

public int getRecordCount()
Description copied from interface: RtlogFileWriter
Return the number of records written to the RTLOG file.

Specified by:
getRecordCount in interface RtlogFileWriter

getTransactionCount

public int getTransactionCount()
Description copied from interface: RtlogFileWriter
Return the number of transactions written to the RTLOG file.

Specified by:
getTransactionCount in interface RtlogFileWriter

getExportFile

public java.io.File getExportFile()
Description copied from interface: RtlogFileWriter
Return the file descriptor for the rtlog export file.

Specified by:
getExportFile in interface RtlogFileWriter
Returns:
File rtlog export file

open

public void open()
          throws java.lang.Exception
Description copied from interface: RtlogFileWriter
Open the RTLOG file and prepare it for processing, writes an FHEAD record to the file.

Specified by:
open in interface RtlogFileWriter
Throws:
java.lang.Exception

write

public void write(java.util.List recordsForFile)
           throws java.lang.Exception
Description copied from interface: RtlogFileWriter
Write ReSA order transaction records to the RTLOG file.

Specified by:
write in interface RtlogFileWriter
Parameters:
recordsForFile - resa records
Throws:
java.lang.Exception

close

public void close()
           throws java.lang.Exception
Description copied from interface: RtlogFileWriter
Close the RTLOG file and seal it, writes an FTAIL record to the file.

Specified by:
close in interface RtlogFileWriter
Throws:
java.lang.Exception

purge

public void purge()
           throws SystemException
Description copied from interface: RtlogFileWriter
Physically close the RTLOG file. This physcially closes the wrapped file writer. Should only be used if an exception has occurred during process.

Specified by:
purge in interface RtlogFileWriter
Throws:
SystemException

isPurged

public boolean isPurged()
Description copied from interface: RtlogFileWriter
Return a boolean indiciating if the rtlog file has been purged (in error).

Specified by:
isPurged in interface RtlogFileWriter
Returns:
true if rtlog file was purged in error


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28