public class RenewalNoticeRunPlugin extends java.lang.Object implements ExportBuildLinePlugin, ExportUpdatePlugin, ExportSettings
Constructor and Description |
---|
RenewalNoticeRunPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
buildDetailLine(Exporter exporter,
java.lang.StringBuilder buffer,
DBObject o)
Requests a StringBuilder to be used as the details line for the supplied
DBObject
Note: If no changes are required then the buffer should be returned
|
java.lang.StringBuilder |
buildHeader(Exporter exporter,
java.lang.StringBuilder buffer,
DBObject o)
Requests a StringBuilder to be used as the header line
Note: If no changes are required then the buffer should be returned
|
java.lang.String |
getDisplayName(Exporter exporter,
java.lang.String name)
Requests a String to be used as the display name
This value will be used as the current thread name and for log messages.
|
java.lang.String |
getTransGroupCode(ExporterWithUpdate exporter,
java.lang.String cd)
This method is called to retrieve the code that will be used on the
transaction group record which will group together all transactions for
this process
If an null or empty code is returned then it is assumed that no
transaction group will be created
|
void |
postSave(ExporterWithUpdate exporter,
MutableDataSource mds,
long transId)
This method is called after changes have been applied
|
void |
preSave(ExporterWithUpdate exporter,
MutableDataSource mds)
This method is called to allow final changes before datasource is saved.
|
void |
preSave(MutableDataSource ds,
FileExporter exporter) |
void |
preUpdate(ExporterWithUpdate exporter,
MutableDataSource mds,
DBObject mo,
java.util.Map fldMap)
This method is called before the current dbobject is updated with the
list of changes provided in the fldMap
Entries can be added or removed from the fldMap which will then be applied
by the exporter
Changes can also be made directly to the mdbObj supplied
|
public java.lang.String getDisplayName(Exporter exporter, java.lang.String name)
ExportSettings
getDisplayName
in interface ExportSettings
exporter
- - current exporter that called this methodname
- - Default name generated by the exporterpublic void preSave(MutableDataSource ds, FileExporter exporter)
public java.lang.StringBuilder buildHeader(Exporter exporter, java.lang.StringBuilder buffer, DBObject o) throws java.lang.Exception
ExportBuildLinePlugin
buildHeader
in interface ExportBuildLinePlugin
exporter
- - current exporter that called this methodbuffer
- - A StringBuilder containing the default header line generated
by the exportero
- - The first DBObject read from the resultsjava.lang.Exception
- - Exceptionpublic java.lang.StringBuilder buildDetailLine(Exporter exporter, java.lang.StringBuilder buffer, DBObject o) throws java.lang.Exception
ExportBuildLinePlugin
buildDetailLine
in interface ExportBuildLinePlugin
exporter
- - current exporter that called this methodbuffer
- - A StringBuilder containing the default output line generated
by the exportero
- - The current DBObject used to generate output linejava.lang.Exception
- - Exceptionpublic void preSave(ExporterWithUpdate exporter, MutableDataSource mds) throws java.lang.Exception
ExportUpdatePlugin
preSave
in interface ExportUpdatePlugin
exporter
- - current exporter that called this methodmds
- - Current mutable data source containing changes for current batchjava.lang.Exception
- - Exceptionpublic void postSave(ExporterWithUpdate exporter, MutableDataSource mds, long transId)
ExportUpdatePlugin
postSave
in interface ExportUpdatePlugin
exporter
- - current exporter that called this methodmds
- - Current mutable data source containing changes for current batchtransId
- transaction id returned from save of datasourcepublic void preUpdate(@Nonnull ExporterWithUpdate exporter, @Nonnull MutableDataSource mds, @Nonnull DBObject mo, @Nonnull java.util.Map fldMap) throws java.lang.Exception
ExportUpdatePlugin
preUpdate
in interface ExportUpdatePlugin
exporter
- - current exporter that called this methodmds
- - Current mutable data source containing changes for current batchmo
- - A mutable version of the current dbobjectfldMap
- - Hashtable of Path/Value pairsjava.lang.Exception
- - Exceptionpublic java.lang.String getTransGroupCode(ExporterWithUpdate exporter, java.lang.String cd)
ExportUpdatePlugin
getTransGroupCode
in interface ExportUpdatePlugin
exporter
- - current exporter that called this methodcd
- - Default codestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.