public class CatalogEntryAttributeDictionaryAttributeMediator extends AbstractCatalogEntryMediator
Constructor and Description |
---|
CatalogEntryAttributeDictionaryAttributeMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | clearUniqueID()
Remove the unique ids being set.
|
void | close()
This method will perform cleanup on the business object mediator.
|
protected java.lang.String | getActionString()
It checks the main physical object to see if it is insert, update or delete to return the corresponding action string.
|
protected void | handleExistingAttributeValues(java.lang.String attrID, java.lang.String attrIdentifier, java.lang.String attrValID, java.lang.String attrValIdentifier, java.lang.String attrVal, CatalogAttributeType catalogAttribute, boolean deleteFlag)
Handles populating catalog entry attribute relationships when the specified attribute value exists.
|
protected java.lang.String | handleNewAttributeValues(java.lang.String attrID, java.lang.String attrIdentifier, java.lang.String attrValIdentifier, java.lang.String attrVal, CatalogAttributeType catalogAttribute, boolean deleteFlag)
Handles populating catalog entry attribute relationships when the specified attribute value does not exist.
|
protected boolean | isAttributeValueUsedByOtherCatalogEntries(java.lang.String attrID, java.lang.String attrValID, java.lang.String catentryID)
Checks if the specified attribute value of a attribute is used by any catalog entries other than the specified one.
|
protected TableDataObject | populateCATENTRYATTR(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of CATENTRYATTR table from the catalog entry attribute logical object.
|
protected java.util.List | populateCATENTRYATTR(CatalogEntryType catalogEntry, boolean deleteFlag)
Populates a list of physical objects of CATENTRYATTR table from the catalog entry logical object.
|
protected void | transform(java.lang.Object catalogEntryNoun, boolean deleteFlag)
Transform the logical noun to list of physical objects.
|
public CatalogEntryAttributeDictionaryAttributeMediator()
protected void transform(java.lang.Object catalogEntryNoun, boolean deleteFlag) throws DataLoadException
protected java.util.List populateCATENTRYATTR(CatalogEntryType catalogEntry, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATENTRYATTR(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected java.lang.String handleNewAttributeValues(java.lang.String attrID, java.lang.String attrIdentifier, java.lang.String attrValIdentifier, java.lang.String attrVal, CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected void handleExistingAttributeValues(java.lang.String attrID, java.lang.String attrIdentifier, java.lang.String attrValID, java.lang.String attrValIdentifier, java.lang.String attrVal, CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected void clearUniqueID()
protected boolean isAttributeValueUsedByOtherCatalogEntries(java.lang.String attrID, java.lang.String attrValID, java.lang.String catentryID) 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.
protected java.lang.String getActionString()