public abstract class AbstractCatalogGroupMediator extends AbstractBaseCatalogMediator
Constructor and Description |
---|
AbstractCatalogGroupMediator() |
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.
|
CatalogGroupType | getCatalogGroup()
Get the catalog group logical noun.
|
protected java.util.List | getCatalogGroupAttributes_CATGPCALCD()
Gets the list of catalog group attributes which need to be saved to the CATGPCALCD table.
|
protected java.util.Map | getCatalogGroupAttributes_UserData()
Gets the list of catalog group attributes which need to be saved to the user data tables.
|
java.lang.String | getCatalogGroupID()
Gets catalog group id.
|
java.lang.String | getCatalogGroupIdentifier()
Gets catalog group identifier.
|
protected java.util.Map<java.lang.String,java.lang.String> | getDefaultSEOURLKeywords(CatalogGroupType catalogGroup, java.lang.String catalogGroupId)
Answers the map of default SEO URL keywords by language of a logical catalog group.
|
protected java.lang.String | getObjectType()
Gets the logical object type.
|
protected java.lang.String | getUniqueId()
Gets the catalog group ID.
|
void | init()
This method performs initialization for the catalog mediators.
|
protected TableDataObject | populateCATGPCALCD(org.eclipse.emf.common.util.BasicEMap.Entry calCode, java.lang.String tradingId, java.lang.String calFlags, boolean deleteFlag)
Populates the physical object of CATGPCALCD table from a catalog group attributes noun part (CatalogGroup/Attributes).
|
protected java.util.List | populateCATGPCALCD(boolean deleteFlag)
Populates a list of physical objects of CATGPCALCD table from a list of catalog group attributes noun part(CatalogGroup/Attributes).
|
protected TableDataObject | populateCATGPCALCD(java.lang.Integer storeID, java.lang.String catgroupID, java.lang.String calcodeID, java.lang.String tradingID, java.lang.String calFlags, boolean deleteFlag)
Populates the physical object of CATGPCALCD table from store id, catgroup id, calcode id, and trading id.
|
protected TableDataObject | populateCATGRPDESC(CatalogDescriptionType catalogDescriptionType)
Populates the physical object of CATGRPDESC table from the catalog group description noun part (CatalogGroup/Description).
|
protected java.util.List | populateCATGRPDESC(java.util.List catalogGroupDescriptionList)
Populates a list of physical objects of CATGRPDESC table from a list of catalog group description noun parts (CatalogGroup/Description)
|
protected TableDataObject | populateCATGRPREL(CatalogGroupType catalogGroup)
Populates the physical object of CATGRPREL table from the catalog group parent relationship noun part (CatalogGroup/ParentCatalogGroupIdentifier).
|
protected TableDataObject | populateCATTOGRP(CatalogGroupType catalogGroup)
Populates the physical object of CATTOGRP table from the catalog group logical object if this catalog group is top level catalog group.
|
protected void | processCatalogGroupAttributes(CatalogGroupType catalogGroupNoun)
This processes the attributes in the CatalogGroupAttributes/Attributes noun part of the CatalogGroup noun.
|
protected void | processCatalogGroupIdentifier(CatalogGroupIdentifierType catalogGroupIdentifier)
Processes the catalog group identifier logical noun part and sets catalog group identifier, store id, owner id according to the noun part and the values in the business context.
|
protected java.lang.String | resolveOwnerId(java.lang.String catgroupId)
Resolves the owner id from the given catalog Id.
|
void | setCatalogGroup(CatalogGroupType catalogGroup)
Set the catalog group logical noun.
|
void | setCatalogGroupID(java.lang.String catalogGroupID)
Sets catalog group id.
|
void | setCatalogGroupIdentifier(java.lang.String catalogGroupIdentifier)
Sets catalog group identifier.
|
protected void | validateCatalogGroup(CatalogGroupType catalogGroup, boolean deleteFlag)
Validates a catalog group in a catalog.
|
public java.lang.String getCatalogGroupID()
public void setCatalogGroupID(java.lang.String catalogGroupID)
public void setCatalogGroupIdentifier(java.lang.String catalogGroupIdentifier)
public java.lang.String getCatalogGroupIdentifier()
protected java.util.List getCatalogGroupAttributes_CATGPCALCD()
protected java.util.Map getCatalogGroupAttributes_UserData()
protected java.util.List populateCATGRPDESC(java.util.List catalogGroupDescriptionList) throws DataLoadException
protected TableDataObject populateCATGRPDESC(CatalogDescriptionType catalogDescriptionType) throws DataLoadException
protected TableDataObject populateCATGRPREL(CatalogGroupType catalogGroup) throws DataLoadException
protected TableDataObject populateCATTOGRP(CatalogGroupType catalogGroup)
protected java.util.List populateCATGPCALCD(boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATGPCALCD(org.eclipse.emf.common.util.BasicEMap.Entry calCode, java.lang.String tradingId, java.lang.String calFlags, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATGPCALCD(java.lang.Integer storeID, java.lang.String catgroupID, java.lang.String calcodeID, java.lang.String tradingID, java.lang.String calFlags, boolean deleteFlag) throws DataLoadException
protected void processCatalogGroupIdentifier(CatalogGroupIdentifierType catalogGroupIdentifier) throws DataLoadException
protected void processCatalogGroupAttributes(CatalogGroupType catalogGroupNoun) throws DataLoadException
protected java.lang.String resolveOwnerId(java.lang.String catgroupId) throws DataLoadException
protected java.lang.String getObjectType()
public void init() throws DataLoadException
protected void clearUniqueID()
public CatalogGroupType getCatalogGroup()
public void setCatalogGroup(CatalogGroupType catalogGroup)
protected java.util.Map<java.lang.String,java.lang.String> getDefaultSEOURLKeywords(CatalogGroupType catalogGroup, java.lang.String catalogGroupId) 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 validateCatalogGroup(CatalogGroupType catalogGroup, boolean deleteFlag) throws DataLoadException