public class FulfillmentPropertyMediator extends AbstractCatalogEntryMediator
Constructor and Description |
---|
FulfillmentPropertyMediator() |
Modifier and Type | Method and Description |
---|---|
void | close()
This method will perform cleanup on the business object mediator.
|
protected java.lang.String | generateMarkForDeltePartNumber(java.lang.String partNumber, java.sql.Timestamp currentTime)
Generates the part number for mark for delete according to the time stamp.
|
void | init()
This method performs initialization for the catalog entry mediator.
|
protected boolean | isMarkForDelete()
Whether or not mark for delete is enabled for the mediator.
|
protected void | markFulfillmentPropertyForDelete(java.lang.String catalogEntryId)
Marks the specified catalog entry as delete.
|
protected void | processCatalogEntryIdentifier(CatalogEntryIdentifierType catalogEntryIdentifier)
Processes the catalog entry identifier logical noun part and sets catalog entry unique id, catalog entry part number, store id, owner id according to the noun part and the values in the business context.
|
protected void | transform(java.lang.Object catalogEntryNoun, boolean deleteFlag)
Transform the logical noun of catalog entry to list of physical objects.
|
protected void | updateFulfillmentTablesAsMarkForDelete(java.lang.String partNumber, long nBaseItemId, long nItemSpcId, java.sql.Timestamp currentTime)
Marks related tables as delete according to the specified information.
|
protected boolean isMarkForDelete()
public void init() throws DataLoadException
protected void transform(java.lang.Object catalogEntryNoun, boolean deleteFlag) throws DataLoadException
The method populateInventoryConfigurationTables was called to populate the inventory data of the given catalog entry.
protected java.lang.String generateMarkForDeltePartNumber(java.lang.String partNumber, java.sql.Timestamp currentTime)
protected void markFulfillmentPropertyForDelete(java.lang.String catalogEntryId) throws DataLoadException
protected void updateFulfillmentTablesAsMarkForDelete(java.lang.String partNumber, long nBaseItemId, long nItemSpcId, java.sql.Timestamp currentTime) throws DataLoadException
protected void processCatalogEntryIdentifier(CatalogEntryIdentifierType catalogEntryIdentifier) throws DataLoadException
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.