com.retek.component.salesaudit.integration.resa
Interface RtlogFileWriter

All Known Implementing Classes:
RtlogBufferedFileWriter

public interface RtlogFileWriter

Interface defining the operations for a ReSA RTLOG file writer.


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 resaRecords)
          Write ReSA order transaction records to the RTLOG file.
 

Method Detail

open

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

Throws:
java.lang.Exception

write

public void write(java.util.List resaRecords)
           throws java.lang.Exception
Write ReSA order transaction records to the RTLOG file.

Parameters:
resaRecords - resa records
Throws:
java.lang.Exception

close

public void close()
           throws java.lang.Exception
Close the RTLOG file and seal it, writes an FTAIL record to the file.

Throws:
java.lang.Exception

purge

public void purge()
           throws java.lang.Exception
Physically close the RTLOG file. This physcially closes the wrapped file writer. Should only be used if an exception has occurred during process.

Throws:
java.lang.Exception

isPurged

public boolean isPurged()
                 throws java.lang.Exception
Return a boolean indiciating if the rtlog file has been purged (in error).

Returns:
true if rtlog file was purged in error
Throws:
java.lang.Exception

getRecordCount

public int getRecordCount()
Return the number of records written to the RTLOG file.


getTransactionCount

public int getTransactionCount()
Return the number of transactions written to the RTLOG file.


getExportFile

public java.io.File getExportFile()
Return the file descriptor for the rtlog export file.

Returns:
File rtlog export file


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25