public class CustomTableObjectBuilder extends TableObjectBuilder
Constructor and Description |
---|
CustomTableObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
void | endProcess()
This method performs post processing of the data after all of the entries in a feed have been processed.
|
void | init()
Initialize the feed business object builder to obtain Load item report from dataload.
|
void | postProcess(java.lang.Object dataObject)
This method performs post processing of the data.
|
void | preProcess(java.lang.Object inputData)
This method performs pre-processing of the input data .
|
public void init() throws DataLoadException
Initialize the feed business object builder to obtain Load item report from dataload.
public void preProcess(java.lang.Object inputData) throws DataLoadException
This method performs pre-processing of the input data .
This method fetches the feed identifier from the input data and stores it in the instance variable, so it can be retrieved later.
public void postProcess(java.lang.Object dataObject) throws DataLoadException
This method performs post processing of the data.
This method updates the CMFEEDLOG table (which keeps track of the feed records processed) with the status of the feed load. The subsequent attempts to process feeds read the status from CMFEEDLOG to find out if the feed needs to be re-processed (in case of failures).
public void endProcess() throws DataLoadException
This method performs post processing of the data after all of the entries in a feed have been processed.
This method updates the feed URL cache, if the entire feed load was successful. Once, a feed URL in the cache is marked as processed, the next time the feed retriever is run, the feed is fetched only if there has been any update to the feed.