public class CatalogMediator extends AbstractBaseCatalogMediator
Constructor and Description |
---|
CatalogMediator() |
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.
|
CatalogType | getCatalog()
Gets the catalog logical noun.
|
protected java.lang.String | getCatalogID()
Gets the catalog id.
|
protected java.lang.String | getCatalogIdentifier()
Gets external catalog identifier.
|
protected TableDataObject | populateCATALOG(CatalogType catalog, boolean deleteFlag)
Populates the physical object of CATALOG table from the catalog logical object.
|
protected TableDataObject | populateCATALOGDSC(CatalogDescriptionType catalogDescription, boolean deleteFlag)
Populates the physical object of CATALOGDSC table from the catalog logical object.
|
protected java.util.List | populateCATALOGDSC(java.util.List catalogDescriptionList, boolean deleteFlag)
Populates a list of physical objects of CATALOGDSC table from the catalog logical object.
|
protected TableDataObject | populateSTORECAT(java.lang.Integer storeID, java.lang.Boolean isMasterCatalog, boolean deleteFlag)
Populates the physical object of STORECAT table from the catalog logical object.
|
protected void | populateTPCLevel(CatalogType catalog, TableDataObject catalogDO)
Populates the TPCLEVEL column of CATALOG table.
|
protected java.lang.String | resolveCatalogIdentifier(CatalogIdentifierType catalogIdentifier)
Resolves owner id, catalog id from CatalogIdentifierType logical object and sets them in the writer.
|
void | setCatalog(CatalogType catalog)
Sets the catalog logical noun.
|
protected void | setCatalogID(java.lang.String catalogId)
Sets the catalog id.
|
protected void | setCatalogIdentifier(java.lang.String catalogIdentifier)
Sets external catalog identifier.
|
protected void | transform(java.lang.Object catalogNoun, boolean deleteFlag)
Transform the logical noun to list of physical objects.
|
public CatalogType getCatalog()
public void setCatalog(CatalogType catalog)
protected java.lang.String getCatalogIdentifier()
protected void setCatalogIdentifier(java.lang.String catalogIdentifier)
protected java.lang.String resolveCatalogIdentifier(CatalogIdentifierType catalogIdentifier) throws DataLoadException
protected void transform(java.lang.Object catalogNoun, boolean deleteFlag) throws DataLoadException
protected java.lang.String getCatalogID()
protected void setCatalogID(java.lang.String catalogId)
protected TableDataObject populateCATALOG(CatalogType catalog, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateSTORECAT(java.lang.Integer storeID, java.lang.Boolean isMasterCatalog, boolean deleteFlag) throws DataLoadException
protected java.util.List populateCATALOGDSC(java.util.List catalogDescriptionList, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCATALOGDSC(CatalogDescriptionType catalogDescription, boolean deleteFlag) throws DataLoadException
protected void clearUniqueID()
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 void populateTPCLevel(CatalogType catalog, TableDataObject catalogDO)