public abstract class AbstractCatalogEntryMediator extends AbstractBaseCatalogMediator
Constructor and Description |
---|
AbstractCatalogEntryMediator() |
Modifier and Type | Method and Description |
---|---|
protected void | clearCATENTRATTRCache()
Clears the cache for the primary keys (attr_id, attrval_id and catentry_id) of the CATENTYATTR table in the same request (row).
|
protected void | clearUniqueID()
Remove the unique ids being set.
|
void | close()
This method will perform cleanup on the business object mediator.
|
protected CatalogEntryType | composeCatalogEntryNounForTheMissingParent(java.lang.String parentPartNumber)
This method returns catalog entry noun for parent product.
|
protected TableDataObject | createATTRDataObject(java.util.Map uniqueIndexValueMap)
Create the ATTR data object.
|
protected TableDataObject | createATTRIBUTEDataObject(java.util.Map uniqueIndexValueMap)
Create the ATTRIBUTE data object.
|
protected TableDataObject | createCATGPRENRELTableObject(java.lang.String catalogId, java.lang.String parentCatGroupID, java.lang.String catalogEntryId)
Creates the table object for CATGPRENREL table according to the parameters passed in.
|
protected TableDataObject | createCATGPRENRELTableObject(java.lang.String catalogId, java.lang.String parentCatGroupID, java.lang.String catalogEntryId, double displaySequence)
Creates the table object for CATGPRENREL table according to the parameters passed in.
|
protected int | deleteAttibuteAssignedValues(java.lang.String catentryID)
This method deletes all attribute assigned values of the catalog entry
|
protected int | deleteATTRVAL(java.lang.String catentryID, java.lang.String attrID)
Delete the ATTRVAL data which is associated with catentryID, attrID.
|
protected int | deleteATTRVALUE(java.lang.String catentryID, java.lang.String attributeID, java.lang.Integer languageID)
Delete the ATTRVALUE data.
|
protected int | deleteCATENTRYATTR(java.lang.String catentryID, java.lang.String attrID)
Delete the CATENTRYATTR data.
|
protected int | deleteOtherAssignedATTRVAL(java.lang.String catentryID, java.lang.String attrID, java.lang.String attrValID)
Delete the ATTRVAL data which is associated with catentryID, attrID, except attrValID.
|
protected int | deleteOtherATTRVALUE(java.lang.String catentryID, java.lang.String attributeID, java.lang.Integer languageID, java.lang.String name)
Delete the ATTRVALUE data with catentryID, attributeID, languageID, except name.
|
protected int | deleteOtherCATENTRYATTR(java.lang.String catentryID, java.lang.String attrID, java.lang.String attrValID)
Delete the CATENTRYATTR data with catentryID, attrID, except attrValID.
|
protected java.lang.String | getAttrDictID()
Gets attribute dictionary id.
|
protected java.lang.String | getAttrDictID(CatalogAttributeType catalogAttribute)
Gets attribute dictionary id.
|
protected java.lang.String | getAttributeID(CatalogAttributeType catalogAttribute)
Gets the attribute id from the catalog entry attribute logical object.
|
boolean | getAttributeValueValidation()
Get the value for the config property attributeValueValidation.
|
protected java.lang.String | getAttrID()
Gets the attribute id.
|
protected java.lang.String | getAttrIdentifier(CatalogAttributeType catalogAttribute)
Gets external attribute identifier.
|
protected java.lang.String | getAttrValIdentifier(CatalogAttributeType catalogAttribute)
Gets external attribute value identifier.
|
protected java.lang.String | getBaseItemID()
Get base item ID.
|
CatalogEntryType | getCatalogEntry() |
protected java.util.List | getCatalogEntryAttributes_Attributes()
Gets the list of catalog entry attributes which need to be saved to the attribute tables.
|
protected java.util.List | getCatalogEntryAttributes_CATENTREL()
Gets the list of catalog entry attributes which need to be saved to the CATENTREL table.
|
protected java.util.List | getCatalogEntryAttributes_CATENTRY()
Gets the list of catalog entry attributes which need to be saved to the CATENTRY table.
|
protected java.util.List | getCatalogEntryAttributes_CATENTSHIP()
Gets the list of catalog entry attributes which need to be saved to the CATENTSHIP table.
|
protected java.util.List | getCatalogEntryAttributes_CATENTSUBS()
Gets the list of catalog entry subscriptions which need to be saved to the CATENTSUBS table.
|
protected java.lang.String | getCatalogEntryID()
Gets catalog entry id.
|
protected java.util.Map<java.lang.String,java.lang.String> | getCatalogEntryNames(CatalogEntryType catalogEntry, java.lang.String catalogEntryId)
Answers the names by language of a logical catalog entry.
|
protected java.lang.String | getCatalogEntryPartNumber()
Gets catalog entry part number.
|
protected java.util.Set | getCATENTRYATTRCache()
Returns the cache for the primary keys (attr_id, attrval_id and catentry_id) of the CATENTYATTR table in the same request (row).
|
protected java.lang.String | getCatEntryTypeResolvedById()
Get iCatEntryTypeResolvedById.
|
protected java.util.Map<java.lang.String,java.lang.String> | getDefaultSEOURLKeywords(CatalogEntryType catalogEntry, java.lang.String catalogEntryId)
Answers the map of default SEO URL keywords by language of a logical catalog entry.
|
protected java.lang.String | getExistingParentProductID()
Gets the existing parent product id.
|
protected short | getInventorySystem()
Get Inventory System.
|
protected java.lang.String | getItemSpcID()
Get item specification ID.
|
protected java.lang.String | getObjectType()
Gets the logical object type.
|
protected java.lang.String | getParentCatentryID()
Gets the parent catalog entry id.
|
protected java.lang.String | getPhysicalCatalogEntryType(java.lang.Object logicalCatalogEntryType)
Converts the type of catalog entry from logical name to physical name.
|
protected java.lang.String | getPhysicalCatalogEntryType(java.lang.String logicalCatalogEntryType)
Converts the type of catalog entry from logical name to physical name.
|
boolean | getSupportMultipleValuesForADAttributes()
Get the value for the config property supportMultipleValuesForADAttributes.
|
protected java.lang.String | getUniqueId()
Gets the catalog entry ID.
|
void | init()
This method performs initialization for the catalog entry related mediators.
|
protected boolean | isAssignedValueAttribute(java.lang.String attrID)
Checks whether the attribute with id attrID is an assigned value attribute or not.
|
boolean | isDeleteExistingParentProduct()
Get the value for the config property deleteExistingParentProductIfNewOneIsDifferent.
|
protected boolean | isExistingParentMasterCatalogGroupDeleted()
Whether or not the existing parent master catalog group is already deleted in previous method.
|
protected java.lang.String | normalizedStringOf(java.lang.String string, java.lang.String dataType)
Answers a string normalized for the data type.
|
protected TableDataObject | populateAssignedValueATTRVAL(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates a list of physical objects of ATTRVAL table from the attribute logical object.
|
protected TableDataObject | populateATTR(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of ATTR table from the attribute logical object.
|
protected TableDataObject | populateATTRDESC(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of ATTRDESC table from the attribute logical object.
|
protected TableDataObject | populateATTRIBUTE(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of ATTRIBUTE table from the catalog entry attribute logical object.
|
protected TableDataObject | populateATTRVAL(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates a list of physical objects of ATTRVAL table from the attribute logical object.
|
protected TableDataObject | populateATTRVALDESC(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates a list of physical objects of ATTRVALDESC table from the attribute logical object.
|
protected TableDataObject | populateATTRVALUE(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of ATTRVALUE table from the catalog entry logical object.
|
protected TableDataObject | populateATTRVALUE(java.lang.String attributeID, java.lang.String attrvalueID, java.lang.String catentryID, java.lang.Integer languageID, java.lang.String name, java.lang.Double sequence, java.lang.String dataType, java.lang.String stringValue, java.lang.Integer integerValue, java.lang.Double floatValue, java.lang.String image1, java.lang.String image2, java.lang.Integer field1, java.lang.String field2, java.lang.String field3, java.lang.String unitOfMeasure, java.lang.Long attachmentID, boolean deleteFlag)
Populates the physical object of ATTRVALUE table from column data.
|
protected TableDataObject | populateATTRVALUEfromAllowedValue(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of ATTRVALUE table from the catalog entry logical object.
|
protected TableDataObject | populateBASEITEM(CatalogEntryType catentryNoun, java.lang.String strBaseItemTypeCode)
This method populates the physical object of BASEITEM table from the catalog entry logical object.
|
protected TableDataObject | populateBASEITEMForMissingParent(java.lang.String partNumber, java.lang.String strBaseItemTypeCode)
This method populates the physical object of BASEITEM table from the catalog entry logical object.
|
protected TableDataObject | populateBASEITMDSC(CatalogEntryType catentryNoun)
This method populates the physical object of BASEITMDSC table from the catalog entry logical object.
|
protected java.util.List | populateCATENCALCD(boolean deleteFlag)
Populates a list of physical objects of CATENCALCD table from a list of catalog entry attributes noun part(CatalogEntry/Attributes).
|
protected TableDataObject | populateCATENCALCD(CatalogAttributeType catalogAttribute, java.lang.String tradingId, java.lang.String calFlags, boolean deleteFlag)
Populates the physical object of CATENCALCD table from a catalog entry attributes noun part (CatalogEntry/Attributes).
|
protected TableDataObject | populateCATENCALCD(java.lang.Integer storeID, java.lang.String catentryID, java.lang.String calcodeID, java.lang.String tradingID, java.lang.String calFlags, boolean deleteFlag)
Populates the physical object of CATENCALCD table from store id, catentry id, calcode id, and trading id.
|
protected TableDataObject | populateCATENTDESC(CatalogDescriptionType catalogDescriptionType)
Populates the physical object of CATENTDESC table from the catalog entry logical object.
|
protected java.util.List | populateCATENTDESC(java.util.List catalogEntryDescriptionList)
Populates a list of physical objects of CATENTDESC table from the catalog entry logical object.
|
protected TableDataObject | populateCATENTREL(java.lang.String parentCatEntryID, java.lang.String childCatEntryID, double sequence, java.lang.String relationshipType)
Populates the physical object of CATENTREL table from the catalog entry logical object.
|
protected TableDataObject | populateCATENTREL(java.lang.String parentCatEntryID, java.lang.String childCatEntryID, java.lang.String relationshipType)
Populates the physical object of CATENTREL table from the catalog entry logical object.
|
protected TableDataObject | populateCATENTRELForProductItem(CatalogEntryType catalogEntryNoun)
Populates the physical object of CATENTREL table from the catalog entry logical object.
|
protected TableDataObject | populateCATENTRYATTR(java.lang.String catentryID, java.lang.String attrID, java.lang.String attrValID, java.lang.String usage, java.lang.Double sequence, boolean deleteFlag)
Populates the physical object of CATENTRYATTR table from column data.
|
protected TableDataObject | populateCATENTRYATTR(TableDataObject catentryattrDO, java.util.Map extendedDataMap, boolean deleteFlag)
Populates the physical object of CATENTRYATTR table, with the custom fields from the extendedDataMap.
|
protected TableDataObject | populateCATENTRYATTRExtended(CatalogAttributeType catalogAttribute, boolean deleteFlag)
Populates the physical object of CATENTRYATTR table from the catalog entry attribute logical object.
|
protected TableDataObject | populateCATGPENREL(CatalogEntryType catalogEntryNoun)
Populates the physical object of CATGPENREL table from the catalog entry logical object.
|
protected TableDataObject | populateCATGPENREL(CatalogEntryType catalogEntryNoun, boolean deleteFlag)
Populates the physical object of CATGPENREL table from the catalog entry logical object.
|
protected TableDataObject | populateCATGPENREL(CatalogEntryType catalogEntryNoun, java.lang.String parentCatGroupID)
Populates the physical object of CATGPENREL table from the catalog entry logical object and using the parentCatGroupID provided in the input.
|
protected TableDataObject | populateDISTARRANG(CatalogEntryType catentryNoun)
This method populates the physical object of DISTARRANG table from the catalog entry logical object.
|
protected TableDataObject | populateFromCatEntryAttributes(TableDataObject businessObjectDO, java.util.List catalogEntryAttributeList)
This will go through each catalog entry attribute in the given catalogEntryAttributeList.
|
protected void | populateInventoryConfigurationTables(CatalogEntryType catalogEntry, boolean deleteFlag, boolean createParentProductWhenMissing)
This method populates inventory configuration related tables.
|
protected TableDataObject | populateITEMSPC(CatalogEntryType catentryNoun)
This method populates the physical object of ITEMSPC table from the catalog entry logical object.
|
protected TableDataObject | populateITEMVERSN(CatalogEntryType catentryNoun)
This method populates the physical object of ITEMVERSN table from the catalog entry logical object.
|
protected TableDataObject | populateSTOREITEM(CatalogEntryType catentryNoun)
This method populates the physical object of STOREITEM table from the catalog entry logical object.
|
protected TableDataObject | populateVERSIONSPC(CatalogEntryType catentryNoun)
This method populates the physical object of VERSIONSPC table from the catalog entry logical object.
|
protected void | processCatalogEntryAttributes(CatalogEntryType catalogEntryNoun)
This processes the attributes in the CatalogEntryAttributes/Attributes noun part of the CatalogEntry noun.
|
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 | reset()
Resets instance variables to their initial values.
|
protected java.lang.String | resolveAssignedAttrValIdOrNull(java.lang.String attrID, java.lang.String attrValIdentifier, java.lang.String attrVal)
Resolves the value id of the assigned value, assigned to the catalog entry specified.
|
protected java.lang.String | resolveAttributeId(java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey)
This method will resolve a unique id for the ATTRIBUTE physical object.
|
protected java.lang.String | resolveAttrId(CatalogAttributeType catalogAttribute)
This method will resolve a unique id for the ATTR physical object.
|
protected java.lang.String | resolveAttrId(java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey)
This method will resolve a unique id for the ATTR physical object.
|
protected java.lang.String | resolveBaseItemUniqueID(CatalogEntryIdentifierType catEntryIdentifier)
Resolve the unique id of the base item according to given parent catalog entry identifier.
|
protected java.lang.String | resolveBaseItemUniqueID(java.lang.String partnumber, java.lang.String ownerID)
Gets the unique id of the base item by part number and owner id.
|
protected java.lang.String | resolveItemVersionUniqueID(java.lang.String baseItemID)
Gets the unique id of the item version by baseitem_ID and version name.
|
protected java.lang.String | resolveOwnerId(java.lang.String catentryId)
Resolves the owner id from the given catalog entry id.
|
protected java.lang.String | resolveParentCatentryId(java.lang.String catentryID)
Resolves the parent product catentry id from the item catentry id.
|
protected java.lang.String | resolveParentCatGroupId(java.lang.String catentryId)
Resolves the parent catalog group Id from the given catalog entry Id.
|
protected void | setAttrDictID(java.lang.String attrDictID)
Sets attribute dictionary id.
|
protected void | setAttributeID(CatalogAttributeType catalogAttribute, java.lang.String attributeID)
Sets the attribute id in the catalog entry attribute logical object.
|
void | setAttributeValueValidation(boolean attributeValueValidation)
Set the value for the config property attributeValueValidation.
|
protected void | setAttrID(java.lang.String attrID)
Sets the attribute id.
|
protected void | setBaseItemID(java.lang.String baseItemID)
Set base item ID.
|
void | setCatalogEntry(CatalogEntryType catalogEntry)
Set the catalog entry noun.
|
protected void | setCatalogEntryAttributes_Attributes(java.util.List attributeList)
Sets the list of catalog entry attributes which need to be saved to the attribute tables.
|
protected void | setCatalogEntryAttributes_CATENTREL(java.util.List attributeList)
Sets the list of catalog entry attributes which need to be saved to the CATENTREL table.
|
protected void | setCatalogEntryAttributes_CATENTRY(java.util.List attributeList)
Sets the list of catalog entry attributes which need to be saved to the CATENTRY table.
|
protected void | setCatalogEntryAttributes_CATENTSHIP(java.util.List attributeList)
Sets the list of catalog entry attributes which need to be saved to the CATENTSHIP table.
|
protected void | setCatalogEntryAttributes_CATENTSUBS(java.util.List subscriptionList)
Sets the list of catalog entry subscriptions which need to be saved to the CATENTSUBS table.
|
protected void | setCatalogEntryID(java.lang.String catalogEntryID)
Sets catalog entry id.
|
protected void | setCatalogEntryPartNumber(java.lang.String catalogEntryPartNumber)
Sets catalog entry part number.
|
protected void | setCatEntryTypeResolvedById(java.lang.String catEntryTypeResolvedById)
Set iCatEntryTypeResolvedById.
|
protected void | setExistingParentMasterCatalogGroupDeleted(boolean deleted)
Sets if the existing parent catalog group in master catalog is already deleted.
|
protected void | setExistingParentProductID(java.lang.String productID)
Sets the existing parent product id.
|
protected void | setItemSpcID(java.lang.String itemSpcID)
Set item specification ID.
|
protected void | setParentCatentryID(java.lang.String parentCatentryID)
Sets the parent catalog entry id.
|
void | setSupportMultipleValuesForADAttributes(boolean supportMultipleValuesForADAttributes)
Set the value for the config property supportMultipleValuesForADAttributes.
|
protected TableDataObject | updateAssignedValueATTRVAL(java.lang.String attrValID, CatalogAttributeType catalogAttribute, boolean deleteFlag)
Updates existing ATTRVAL table from the attribute logical object.
|
protected void | validateCatalogEntryID()
Validates whether the catalog entry id has been set.
|
protected void | validateCatentryBelongsToDiffCatgroup(java.lang.String catalogEntryId, java.lang.String catalogId, java.lang.String catalogGroupId)
Validates whether the Catalog Entry already belongs to a different catalog group.
|
protected void | validateDataForCATENTDESC(TableDataObject catalogEntryDescriptionDO)
Validates the properties provided through the catalog entry description attributes of the CatalogEntry logical noun for the CATENTDESC table.
|
protected void | validateNumericDataForCATENTREL(TableDataObject catalogEntryRelationDO)
Validate the numeric data provided for the CATENTREL table.
|
protected void | validateProdcutItemDefiningAttribtues(java.lang.String itemId, java.lang.String productId)
Validates if the given item and product have the same defining attributes.
|
public CatalogEntryType getCatalogEntry()
public void setCatalogEntry(CatalogEntryType catalogEntry)
protected java.lang.String getParentCatentryID()
protected java.lang.String getExistingParentProductID()
protected void setExistingParentProductID(java.lang.String productID)
protected void setParentCatentryID(java.lang.String parentCatentryID)
protected java.lang.String getAttrDictID()
protected void setAttrDictID(java.lang.String attrDictID)
protected java.lang.String getAttrDictID(CatalogAttributeType catalogAttribute) throws DataLoadException
protected java.lang.String getAttrID()
protected void setAttrID(java.lang.String attrID)
protected short getInventorySystem() throws DataLoadException
protected java.lang.String getBaseItemID()
protected void setBaseItemID(java.lang.String baseItemID)
protected java.lang.String getItemSpcID()
protected void setItemSpcID(java.lang.String itemSpcID)
protected java.lang.String getCatEntryTypeResolvedById()
protected void setCatEntryTypeResolvedById(java.lang.String catEntryTypeResolvedById)
protected java.lang.String getCatalogEntryID()
protected void setCatalogEntryID(java.lang.String catalogEntryID)
protected void setCatalogEntryPartNumber(java.lang.String catalogEntryPartNumber)
protected java.lang.String getCatalogEntryPartNumber()
protected java.lang.String getAttributeID(CatalogAttributeType catalogAttribute)
protected void setAttributeID(CatalogAttributeType catalogAttribute, java.lang.String attributeID)
protected java.lang.String getAttrIdentifier(CatalogAttributeType catalogAttribute)
protected java.lang.String getAttrValIdentifier(CatalogAttributeType catalogAttribute)
protected java.lang.String resolveAttributeId(java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey) throws DataLoadException
This method will resolve a unique id for the ATTRIBUTE physical object.
protected java.lang.String resolveAttrId(java.util.Map uniqueIndexValueMap, boolean bGenerateNewKey) throws DataLoadException
This method will resolve a unique id for the ATTR physical object.
protected java.lang.String resolveAttrId(CatalogAttributeType catalogAttribute) throws DataLoadException
This method will resolve a unique id for the ATTR physical object.
protected TableDataObject createATTRIBUTEDataObject(java.util.Map uniqueIndexValueMap) throws DataLoadException
Create the ATTRIBUTE data object.
protected TableDataObject createATTRDataObject(java.util.Map uniqueIndexValueMap) throws DataLoadException
Create the ATTR data object.
protected int deleteATTRVALUE(java.lang.String catentryID, java.lang.String attributeID, java.lang.Integer languageID) throws DataLoadException
Delete the ATTRVALUE data.
protected int deleteOtherATTRVALUE(java.lang.String catentryID, java.lang.String attributeID, java.lang.Integer languageID, java.lang.String name) throws DataLoadException
Delete the ATTRVALUE data with catentryID, attributeID, languageID, except name.
protected int deleteAttibuteAssignedValues(java.lang.String catentryID) throws DataLoadException
This method deletes all attribute assigned values of the catalog entry
protected int deleteCATENTRYATTR(java.lang.String catentryID, java.lang.String attrID) throws DataLoadException
Delete the CATENTRYATTR data.
protected int deleteOtherCATENTRYATTR(java.lang.String catentryID, java.lang.String attrID, java.lang.String attrValID) throws DataLoadException
Delete the CATENTRYATTR data with catentryID, attrID, except attrValID.
protected int deleteOtherAssignedATTRVAL(java.lang.String catentryID, java.lang.String attrID, java.lang.String attrValID) throws DataLoadException
Delete the ATTRVAL data which is associated with catentryID, attrID, except attrValID.
protected int deleteATTRVAL(java.lang.String catentryID, java.lang.String attrID) throws DataLoadException
Delete the ATTRVAL data which is associated with catentryID, attrID.
public void init() throws DataLoadException
protected TableDataObject populateBASEITEM(CatalogEntryType catentryNoun, java.lang.String strBaseItemTypeCode) throws DataLoadException
protected TableDataObject populateBASEITEMForMissingParent(java.lang.String partNumber, java.lang.String strBaseItemTypeCode) throws DataLoadException
protected CatalogEntryType composeCatalogEntryNounForTheMissingParent(java.lang.String parentPartNumber)
protected TableDataObject populateBASEITMDSC(CatalogEntryType catentryNoun) throws DataLoadException
protected TableDataObject populateSTOREITEM(CatalogEntryType catentryNoun) throws DataLoadException
protected TableDataObject populateITEMVERSN(CatalogEntryType catentryNoun) throws DataLoadException
protected TableDataObject populateDISTARRANG(CatalogEntryType catentryNoun) throws DataLoadException
protected TableDataObject populateITEMSPC(CatalogEntryType catentryNoun) throws DataLoadException
protected TableDataObject populateVERSIONSPC(CatalogEntryType catentryNoun) throws DataLoadException
protected void populateInventoryConfigurationTables(CatalogEntryType catalogEntry, boolean deleteFlag, boolean createParentProductWhenMissing) throws DataLoadException
protected java.util.List populateCATENTDESC(java.util.List catalogEntryDescriptionList) throws DataLoadException
protected void validateDataForCATENTDESC(TableDataObject catalogEntryDescriptionDO) throws DataLoadException
protected TableDataObject populateCATENTDESC(CatalogDescriptionType catalogDescriptionType) throws DataLoadException
protected java.lang.String getPhysicalCatalogEntryType(java.lang.String logicalCatalogEntryType)
protected java.lang.String getPhysicalCatalogEntryType(java.lang.Object logicalCatalogEntryType)
protected TableDataObject populateCATGPENREL(CatalogEntryType catalogEntryNoun) throws DataLoadException
protected TableDataObject populateCATGPENREL(CatalogEntryType catalogEntryNoun, java.lang.String parentCatGroupID) throws DataLoadException
protected TableDataObject createCATGPRENRELTableObject(java.lang.String catalogId, java.lang.String parentCatGroupID, java.lang.String catalogEntryId, double displaySequence)
protected TableDataObject createCATGPRENRELTableObject(java.lang.String catalogId, java.lang.String parentCatGroupID, java.lang.String catalogEntryId)
protected TableDataObject populateCATGPENREL(CatalogEntryType catalogEntryNoun, boolean deleteFlag) throws DataLoadException
protected void processCatalogEntryAttributes(CatalogEntryType catalogEntryNoun)
protected TableDataObject populateFromCatEntryAttributes(TableDataObject businessObjectDO, java.util.List catalogEntryAttributeList)
protected TableDataObject populateCATENTREL(java.lang.String parentCatEntryID, java.lang.String childCatEntryID, double sequence, java.lang.String relationshipType) throws DataLoadException
protected TableDataObject populateCATENTREL(java.lang.String parentCatEntryID, java.lang.String childCatEntryID, java.lang.String relationshipType) throws DataLoadException
protected void validateNumericDataForCATENTREL(TableDataObject catalogEntryRelationDO) throws DataLoadException
protected TableDataObject populateCATENTRELForProductItem(CatalogEntryType catalogEntryNoun) throws DataLoadException
protected void processCatalogEntryIdentifier(CatalogEntryIdentifierType catalogEntryIdentifier) throws DataLoadException
protected java.lang.String resolveParentCatentryId(java.lang.String catentryID) throws DataLoadException
protected TableDataObject populateATTRIBUTE(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVALUE(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVALUE(java.lang.String attributeID, java.lang.String attrvalueID, java.lang.String catentryID, java.lang.Integer languageID, java.lang.String name, java.lang.Double sequence, java.lang.String dataType, java.lang.String stringValue, java.lang.Integer integerValue, java.lang.Double floatValue, java.lang.String image1, java.lang.String image2, java.lang.Integer field1, java.lang.String field2, java.lang.String field3, java.lang.String unitOfMeasure, java.lang.Long attachmentID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVALUEfromAllowedValue(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTR(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRDESC(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVAL(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVALDESC(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATENTRYATTRExtended(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATENTRYATTR(java.lang.String catentryID, java.lang.String attrID, java.lang.String attrValID, java.lang.String usage, java.lang.Double sequence, boolean deleteFlag)
protected java.util.List populateCATENCALCD(boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATENCALCD(CatalogAttributeType catalogAttribute, java.lang.String tradingId, java.lang.String calFlags, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATENCALCD(java.lang.Integer storeID, java.lang.String catentryID, java.lang.String calcodeID, java.lang.String tradingID, java.lang.String calFlags, boolean deleteFlag) throws DataLoadException
protected java.util.List getCatalogEntryAttributes_CATENTRY()
protected void setCatalogEntryAttributes_CATENTRY(java.util.List attributeList)
protected java.util.List getCatalogEntryAttributes_CATENTREL()
protected void setCatalogEntryAttributes_CATENTREL(java.util.List attributeList)
protected java.util.List getCatalogEntryAttributes_CATENTSHIP()
protected void setCatalogEntryAttributes_CATENTSHIP(java.util.List attributeList)
protected java.util.List getCatalogEntryAttributes_Attributes()
protected void setCatalogEntryAttributes_Attributes(java.util.List attributeList)
protected void validateCatalogEntryID() throws DataLoadException
protected java.lang.String resolveOwnerId(java.lang.String catentryId) throws DataLoadException
protected java.lang.String getObjectType()
protected java.lang.String resolveParentCatGroupId(java.lang.String catentryId) throws DataLoadException
protected java.lang.String resolveBaseItemUniqueID(CatalogEntryIdentifierType catEntryIdentifier) throws DataLoadException
protected java.lang.String resolveBaseItemUniqueID(java.lang.String partnumber, java.lang.String ownerID) throws DataLoadException
protected java.lang.String resolveItemVersionUniqueID(java.lang.String baseItemID) throws DataLoadException
protected void reset()
protected java.lang.String normalizedStringOf(java.lang.String string, java.lang.String dataType) throws DataLoadException
protected void clearUniqueID()
protected TableDataObject populateCATENTRYATTR(TableDataObject catentryattrDO, java.util.Map extendedDataMap, boolean deleteFlag) throws DataLoadException
protected java.util.List getCatalogEntryAttributes_CATENTSUBS()
protected void setCatalogEntryAttributes_CATENTSUBS(java.util.List subscriptionList)
public void setSupportMultipleValuesForADAttributes(boolean supportMultipleValuesForADAttributes)
public boolean getSupportMultipleValuesForADAttributes()
public boolean isDeleteExistingParentProduct()
public void setAttributeValueValidation(boolean attributeValueValidation)
public boolean getAttributeValueValidation()
protected boolean isAssignedValueAttribute(java.lang.String attrID) throws DataLoadException
protected TableDataObject populateAssignedValueATTRVAL(CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject updateAssignedValueATTRVAL(java.lang.String attrValID, CatalogAttributeType catalogAttribute, boolean deleteFlag) throws DataLoadException
protected java.lang.String resolveAssignedAttrValIdOrNull(java.lang.String attrID, java.lang.String attrValIdentifier, java.lang.String attrVal) throws DataLoadException
protected void validateCatentryBelongsToDiffCatgroup(java.lang.String catalogEntryId, java.lang.String catalogId, java.lang.String catalogGroupId) throws DataLoadException
protected java.util.Map<java.lang.String,java.lang.String> getCatalogEntryNames(CatalogEntryType catalogEntry, java.lang.String catalogEntryId) throws DataLoadException
protected java.util.Map<java.lang.String,java.lang.String> getDefaultSEOURLKeywords(CatalogEntryType catalogEntry, java.lang.String catalogEntryId) 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 getUniqueId()
protected void setExistingParentMasterCatalogGroupDeleted(boolean deleted)
protected boolean isExistingParentMasterCatalogGroupDeleted()
protected void validateProdcutItemDefiningAttribtues(java.lang.String itemId, java.lang.String productId) throws DataLoadException
protected void clearCATENTRATTRCache()
protected java.util.Set getCATENTRYATTRCache()