public interface BusinessObjectBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Modifier and Type | Method and Description |
---|---|
void | close()
This method will perform cleanup on the business object reader.
|
void | endProcess()
This method performs any post processing of the data after all of the data has been loaded.
|
java.lang.Object | execute(java.lang.Object inputData)
This method populate the logical data object with the data read in from the data reader.
|
ConfigProperties | getConfigProperties()
Get the instance of the ConfigProperties of the BusinessObjectReader.
|
void | init()
Initialize the business object reader.
|
ConfigProperties | initConfig(org.w3c.dom.Node businessObjectBuilderNode, ConfigProperties parentConfigProperties)
This method parses the BusinessObjectBuilder xml node read in from the business object configuration file and stores the configuration in memory.
|
void | postProcess(java.lang.Object dataObject)
This method performs any post processing of the data.
|
void | preProcess(java.lang.Object inputData)
This method performs any pre-processing of the data if needed.
|
void | setConfigProperties(ConfigProperties aConfigProperties)
This method sets the ConfigProperties to the BusinessObjectReader.
|
static final java.lang.String COPYRIGHT
ConfigProperties getConfigProperties()
Get the instance of the ConfigProperties of the BusinessObjectReader.
This method shouldn't be called unless specific properties are needed from the ConfigProperties.
void setConfigProperties(ConfigProperties aConfigProperties)
This method sets the ConfigProperties to the BusinessObjectReader.
This is not needed to be called unless overriding the configuration of the business object reader is desired.
void init() throws DataLoadException
Initialize the business object reader.
ConfigProperties initConfig(org.w3c.dom.Node businessObjectBuilderNode, ConfigProperties parentConfigProperties) throws DataLoadException
This method parses the BusinessObjectBuilder xml node read in from the business object configuration file and stores the configuration in memory.
void preProcess(java.lang.Object inputData) throws DataLoadException
This method performs any pre-processing of the data if needed.
This method normally does not have any function. Implement this method only if any pre-processing of the raw data is needed.
java.lang.Object execute(java.lang.Object inputData) throws DataLoadException
This method populate the logical data object with the data read in from the data reader. Using the data mapping configuration from the business object configuration file, the data will be mapped to a specific property in the logical data object using XPath.
After the logical data object has been populated with data, this method calls the business object writer to process and load the data.
void postProcess(java.lang.Object dataObject) throws DataLoadException
This method performs any post processing of the data.
This method normally does not have any function. Implement this method only if any post processing of the populated data object is needed.
void endProcess() throws DataLoadException
This method performs any post processing of the data after all of the data has been loaded.
This method does not have any function. Child classes must override this method if any post processing of the data is needed.
void close() throws DataLoadException
This method will perform cleanup on the business object reader. It will attempt to close all of the business object writers configured for this business object reader.