public class AttributeDictionaryAttributeMediator extends AbstractBaseCatalogMediator
Constructor and Description |
---|
AttributeDictionaryAttributeMediator() |
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()
Returns the change history action code for the attribute dictionary attribute.
|
boolean | getAllowChangeAttributeType()
Get the value for the config property allowChangeAttributeType.
|
protected java.lang.String | getAttrDictID()
Gets the attribute dictionary id.
|
protected java.lang.String | getAttrID(AttributePropertyType attributeProperty)
This method gets the unique id from the attributeProperty object.
|
protected java.lang.String | getAttrIdentifier()
Gets external attribute identifier.
|
void | init()
This method performs initialization for the catalog entry attribute mediator.
|
protected TableDataObject | populateATTR(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag)
Populates the physical object of ATTR table from the attribute logical object.
|
protected TableDataObject | populateATTRDESC(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag)
Populates the physical object of ATTRDESC table from the attribute logical object.
|
protected void | populateATTRDESCExtendedDataColumns(TableDataObject attrDescDO, java.util.Map attributesMap)
Populates the ATTRDESC physical object with ExtendedData.
|
protected TableDataObject | populateATTRDICTSRCHCONF(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String fieldName, java.lang.String masterCatalogID, boolean deleteFlag)
Populates the physical object of ATTRDICTSRCHCONF table from the attribute logical object.
|
protected java.util.List | populateATTRVAL(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag)
Populates a list of physical objects of ATTRVAL table from the attribute logical object.
|
protected TableDataObject | populateATTRVAL(java.lang.String attrID, AttributeAllowedValueType attributeValue, java.lang.String dataType, boolean deleteFlag)
Populates the physical object of ATTRVAL table from the attribute value logical object.
|
protected java.util.List | populateATTRVALDESC(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag)
Populates a list of physical objects of ATTRVALDESC table from the attribute logical object.
|
protected TableDataObject | populateATTRVALDESC(java.lang.String attrID, AttributeAllowedValueType attributeValue, java.lang.String dataType, java.lang.String unitOfMeasure, boolean deleteFlag)
Populates the physical object of ATTRVALDESC table from the attribute value logical object.
|
protected TableDataObject | populateFACET(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.Integer storeentID, boolean deleteFlag)
Deprecated.
|
protected TableDataObject | populateFACET(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String srchattrID, java.lang.Integer storeentID, boolean deleteFlag)
Populates the physical object of FACET table from the attribute logical object.
|
protected TableDataObject | populateSrchAttr(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag)
Populates the physical object of SRCHATTR table from the attribute logical object.
|
protected java.lang.Integer | populateSRCHATTR(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag)
Deprecated.
|
protected TableDataObject | populateSRCHATTRPROP(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String masterCatalogID, boolean deleteFlag)
Deprecated.
|
protected TableDataObject | populateSRCHATTRPROP(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String srchattrID, java.lang.String masterCatalogID, boolean deleteFlag)
Populates the physical object of SRCHATTRPROP table from the attribute logical object.
|
protected java.lang.String | resolveAttributeDictionaryID(com.ibm.commerce.foundation.common.datatypes.AttributeExternalIdentifierType attributeExternalID)
Resolves attrdict unique id from AttributeIdentifierType logical object and sets them in the writer.
|
void | setAllowChangeAttributeType(boolean allowChangeAttributeType)
Set the value for the config property allowChangeAttributeType.
|
protected void | setAttrDictID(java.lang.String attrDictID)
Sets the attribute dictionary id.
|
protected void | setAttrID(AttributePropertyType attributeProperty, java.lang.String attrID)
This method sets the unique id in the attributeProperty object.
|
protected void | setAttrIdentifier(java.lang.String attrIdentifier)
Sets external attribute identifier.
|
protected void | transform(java.lang.Object attributeDictionaryAttributeNoun, boolean deleteFlag)
Transform the logical noun to list of physical objects.
|
protected void | validateAttributeAllowedValue(java.lang.String attrValID)
Checks if the given attribute allowed value can be updated or deleted in current store.
|
protected void | validateAttributeDictionaryAttribute()
Checks if the given attribute dictionary attribute can be updated or deleted in current store.
|
protected void | validateAttributeUsageForAllowedValueAttribute(java.lang.String attrID)
Validates the value of AttributeType of the attribute.
|
protected void | validateAttrScope(java.lang.String attrID)
Validates if an attribute is owned by the context store.
|
public AttributeDictionaryAttributeMediator()
protected java.lang.String getAttrIdentifier()
protected void setAttrIdentifier(java.lang.String attrIdentifier)
protected java.lang.String getAttrDictID()
protected void setAttrDictID(java.lang.String attrDictID)
protected java.lang.String resolveAttributeDictionaryID(com.ibm.commerce.foundation.common.datatypes.AttributeExternalIdentifierType attributeExternalID) throws DataLoadException
protected java.lang.String getAttrID(AttributePropertyType attributeProperty) throws DataLoadException
This method gets the unique id from the attributeProperty object.
protected void setAttrID(AttributePropertyType attributeProperty, java.lang.String attrID)
This method sets the unique id in the attributeProperty object.
protected void validateAttrScope(java.lang.String attrID) throws DataLoadException
public void init() throws DataLoadException
protected void transform(java.lang.Object attributeDictionaryAttributeNoun, boolean deleteFlag) throws DataLoadException
protected void clearUniqueID()
protected TableDataObject populateFACET(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String srchattrID, java.lang.Integer storeentID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateFACET(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.Integer storeentID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSrchAttr(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag) throws DataLoadException
protected java.lang.Integer populateSRCHATTR(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSRCHATTRPROP(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String srchattrID, java.lang.String masterCatalogID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSRCHATTRPROP(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String masterCatalogID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRDICTSRCHCONF(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, java.lang.String fieldName, java.lang.String masterCatalogID, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTR(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRDESC(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag) throws DataLoadException
protected void populateATTRDESCExtendedDataColumns(TableDataObject attrDescDO, java.util.Map attributesMap) throws DataLoadException
protected java.util.List populateATTRVAL(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVAL(java.lang.String attrID, AttributeAllowedValueType attributeValue, java.lang.String dataType, boolean deleteFlag) throws DataLoadException
protected java.util.List populateATTRVALDESC(com.ibm.commerce.catalog.facade.datatypes.AttributeDictionaryAttributeType attributeDictionaryAttribute, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateATTRVALDESC(java.lang.String attrID, AttributeAllowedValueType attributeValue, java.lang.String dataType, java.lang.String unitOfMeasure, boolean deleteFlag) throws DataLoadException
protected void validateAttributeAllowedValue(java.lang.String attrValID) throws DataLoadException
protected void validateAttributeDictionaryAttribute() throws DataLoadException
protected void validateAttributeUsageForAllowedValueAttribute(java.lang.String attrID) throws DataLoadException
public void setAllowChangeAttributeType(boolean allowChangeAttributeType)
public boolean getAllowChangeAttributeType()
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()