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.
aConfigProperties
- The configuration for this business object reader.void init() throws DataLoadException
Initialize the business object reader.
DataLoadException
- An application exception will be thrown if there was a problem initializing 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.
businessObjectBuilderNode
- The BusinessObjectBuilder
xml node read in from the business object configuration file.parentConfigProperties
- The configuration properties for the parent data loader of this business object builder.DataLoadException
- An application exception will be thrown if there was a problem initializing the configuration for the business object builder.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.
inputData
- The raw data read in by the data reader. (DataReader)
DataLoadException
- An application exception should be thrown is there was a problem pre-processing the input data.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.
inputData
- The input data that the base logical data object will be populated with.DataLoadException
- An application exception will be thrown if there was a problemvoid 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.
dataObject
- The data object populated with raw data read in by the data reader. (DataReader)
DataLoadException
- An application exception should be thrown is there was a problem post processing the input data.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.
DataLoadException
- An application exception will be thrown is there was a problem post processing the loaded data.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.
DataLoadException
- An application exception will be thrown if there was a problem closing the business object reader or its business object writers.