public class OfferMediator extends AbstractPriceBaseMediator
offer
business object mediator.
This mediator is used to create and populate a list of physical table
data objects, which are all instances of TableDataObject
, from
a price list logical noun. See transform(Object, boolean)
for
more details.
The operations that this performs include:
deleteOFFER
replaceOFFER
populateOFFER
markOfferForDelete
The unique index to determine an offer is:
CataEntryID
+Identifier
+PriceListID
Identifier
is specified in the logical data object, it
generates an Identifier
using the current date and time.
The tables populated by this mediator include:
Constructor and Description |
---|
OfferMediator() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method will perform cleanup on the business object mediator.
|
void |
init()
Performs initialization for the offer mediator.
|
getContextCurrency, getContextLanguageID, getContextOwnerID, getContextStoreID, getPriceEntry, getPriceList, setPriceEntry, setPriceList
execute, getConfigProperties, getEndKey, getStartKey, initConfig, postProcess, preProcess, setConfigProperties
public void init() throws DataLoadException
Initialization includes:
isMarkOfferForDelete
's value. It
determines whether mark for
delete is enabled for this
mediator.init
in interface BusinessObjectMediator
init
in class AbstractPriceBaseMediator
DataLoadException
- If an error occurs when setting value in
DBPreparedStatement
.AbstractPriceBaseMediator.init()
public void close() throws DataLoadException
This method will perform cleanup on the business object mediator. It will attempt to close all of the data writers configured for this business object mediator.
This method will flush and commit any data waiting to be persisted in the batch as well as clear the ID resolver cache.
close
in interface BusinessObjectMediator
close
in class AbstractBusinessObjectMediator
DataLoadException
- An application exception will be thrown if there was a problem closing the business object mediator or its data writers.