public abstract class AbstractDataWriter extends java.lang.Object implements DataWriter
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
AbstractDataWriter() |
Modifier and Type | Method and Description |
---|---|
void | close()
Close the data writer.
|
ConfigProperties | getConfigProperties()
Get the instance of the ConfigProperties of the DataWriter.
|
protected DataLoadBatchService | getDataLoadBatchService()
Gets the data load batch service.
|
protected java.util.List | getTableNameList()
Get the List of Table Names.
|
void | init()
Do some initialization for the data writer.
|
ConfigProperties | initConfig(org.w3c.dom.Node dataWriterNode, ConfigProperties parentConfigProperties)
This method parses the DataWriter xml node read in from the data load configuration file and stores the configuration in memory.
|
protected void | initDataLoadBatchService()
Initializes the database batch service.
|
protected void | invalidateDataCache()
This method is used to Invalidate the Data Cache, by inserting an entry in the CACHEIVL table, for each table that gets affected.
|
protected void | postProcessData(TableDataObject dataObject)
This method performs any post-processing of the dataObject if needed.
|
protected void | preProcessData(TableDataObject dataObject)
This method performs any pre-processing of the dataObject if needed.
|
protected abstract void | processData(TableDataObject dataObject)
Process the data.
|
void | save(java.lang.Object obj)
Save the physical data object.
|
void | setConfigProperties(ConfigProperties aConfigProperties)
Sets the ConfigProperties to the DataWriter.
|
protected void | setDataCacheInvalidationEnabled()
This method retrieves the configured value of DataCacheInvalidationEnabled, for this data loader.
|
protected void | setDataLoadBatchService(DataLoadBatchService dataLoadBatchService)
Sets the data load batch service.
|
public static final java.lang.String COPYRIGHT
public ConfigProperties getConfigProperties()
public void setConfigProperties(ConfigProperties aConfigProperties)
public void init() throws DataLoadException
public ConfigProperties initConfig(org.w3c.dom.Node dataWriterNode, ConfigProperties parentConfigProperties) throws DataLoadException
This method parses the DataWriter xml node read in from the data load configuration file and stores the configuration in memory.
public void save(java.lang.Object obj) throws DataLoadException
protected abstract void processData(TableDataObject dataObject) throws DataLoadException
public void close() throws DataLoadException
protected void invalidateDataCache() throws DataLoadException
protected java.util.List getTableNameList()
protected void setDataCacheInvalidationEnabled()
This method retrieves the configured value of DataCacheInvalidationEnabled, for this data loader.
protected void preProcessData(TableDataObject dataObject) throws DataLoadException
This method performs any pre-processing of the dataObject if needed.
This method normally does not have any function. Implement this method only if any pre-processing of the dataObject is needed.
protected void postProcessData(TableDataObject dataObject) throws DataLoadException
This method performs any post-processing of the dataObject if needed.
This method normally does not have any function. Implement this method only if any post-processing of the dataObject is needed.
protected void initDataLoadBatchService() throws DataLoadException
protected DataLoadBatchService getDataLoadBatchService()
protected void setDataLoadBatchService(DataLoadBatchService dataLoadBatchService)