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.
|
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. |
void |
save(java.lang.Object obj)
Save the physical data object.
|
void |
setConfigProperties(ConfigProperties aConfigProperties)
Sets the ConfigProperties to the DataWriter.
|
public static final java.lang.String COPYRIGHT
public ConfigProperties getConfigProperties()
getConfigProperties
in interface DataWriter
public void setConfigProperties(ConfigProperties aConfigProperties)
setConfigProperties
in interface DataWriter
aConfigProperties
- a ConfigPropertiespublic void init() throws DataLoadException
init
in interface DataWriter
DataLoadException
- this exception is thrown if
there is some problem during the initialization.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.
initConfig
in interface DataWriter
dataWriterNode
- The DataWriter
xml node read in from the data load configuration file.parentConfigProperties
- The configuration properties for the parent business object mediator of this data writer.DataLoadException
- An application exception will be thrown if there was a problem initializing the configuration for the data writer.public void save(java.lang.Object obj) throws DataLoadException
save
in interface DataWriter
obj
- a single physical object or a list of physical objects.DataLoadException
- this exception is thrown if there is some
problem to save the physical data objects.
AN DataLoadApplicationException will be thrown if the obj is not a TableDataObject
and it is not a list of TableDataObject.public void close() throws DataLoadException
close
in interface DataWriter
DataLoadException
- this exception is thrown if there is an
error to close.