Package com.ads.mm.etl.xml.mapping
Class MMMappingUtil
java.lang.Object
com.ads.mm.etl.xml.mapping.MMMappingUtil
- Author:
- Syed Abdul Rahim
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTableToSupportSystem(String systemName, String environmentName, String schema, String tableName) voidaddTableToSupportSystem(String systemName, String environmentName, String schema, String tableName, String tableXpath) static intcountWordOccurence(String source, String toFind) voidcreateMapping(MMMapping mapping, String tokenType, String token) voidensureTableExists(MMSystemMap systemMap, String systemName, String environmentName, String schema, String tableName) ensureTableExists(MMSystemMap systemMap, String systemName, String environmentName, String schema, String tableName, String xPath) voidfillMappings(String mappingIds) voidfillMappingsInfo(String mappingIds) static StringintintgetMapping(String mappingId) static intintintintgetUUID()intintintvoidintintintincrementUniqueCount(int count) booleanbooleanbooleanbooleanisValidObject(MMDBValidator mmdbVal) intintintintstatic voidprintArrayList(ArrayList al, StringBuilder sbu, boolean printTabs, int tabCount) static voidprintTabsInNewLine(StringBuilder sbu, int tabCount) voidsaveMapping(MMMapping mapping, String tokenType, String token) voidsetAddUnsuedMetadata(MMSystemMap.Type type, boolean val) static voidsetAppPath(String path) voidsetFillMetadata(MMSystemMap.Type type, boolean val) voidsetGenerateGUID(boolean b) voidsetGenerateUniqueId(boolean aGenerateUniqueId) static voidsetPreserveCount(int aPreserveCount) voidsetSourceSystems(MMSystemMap _sourceSystems) voidsetSupportSystems(MMSystemMap _supportSystems) voidsetTabCount(int tabCount) voidsetTargetSystems(MMSystemMap _targetSystems) voidsetTreatLengthAsPrecision(boolean treatLengthAsPrecision)
-
Field Details
-
SYSTEM_NAME
- See Also:
-
ENVIRONMENT_NAME
- See Also:
-
TABLE_NAME
- See Also:
-
ENTITY_UID
- See Also:
-
TABLE_TYPE
- See Also:
-
COLUMN_NAME
- See Also:
-
DATATYPE_NAME
- See Also:
-
LENGTH_NAME
- See Also:
-
PRECSION_NAME
- See Also:
-
SCALE_NAME
- See Also:
-
XPATH_NAME
- See Also:
-
TABLE_BUSINESS_ENTITY_TYPE
- See Also:
-
ENV_BUSINESS_ENTITY_TYPE
- See Also:
-
-
Constructor Details
-
MMMappingUtil
public MMMappingUtil() -
MMMappingUtil
-
-
Method Details
-
getMapping
-
createMapping
-
saveMapping
-
fillMappings
- Throws:
Exception
-
fillMappingsInfo
-
ensureTableExists
-
ensureTableExists
-
addTableToSupportSystem
-
addTableToSupportSystem
-
isGenerateUniqueId
public boolean isGenerateUniqueId()- Returns:
- the generateUniqueId
-
setGenerateUniqueId
public void setGenerateUniqueId(boolean aGenerateUniqueId) - Parameters:
aGenerateUniqueId- the generateUniqueId to set
-
setGenerateGUID
public void setGenerateGUID(boolean b) -
incrementUniqueCount
public int incrementUniqueCount() -
incrementUniqueCount
public int incrementUniqueCount(int count) -
getSystemCount
public int getSystemCount() -
nextSystemCount
public int nextSystemCount() -
incrementSystemCount
public int incrementSystemCount() -
getEnvironmentCount
public int getEnvironmentCount() -
nextEnvironmentCount
public int nextEnvironmentCount() -
incrementEnvironmentCount
public int incrementEnvironmentCount() -
getTableCount
public int getTableCount() -
nextTableCount
public int nextTableCount() -
incrementTableCount
public int incrementTableCount() -
getColumnCount
public int getColumnCount() -
nextColumnCount
public int nextColumnCount() -
incrementColumnCount
public int incrementColumnCount() -
printTabsInNewLine
-
printArrayList
-
isGenerateGUID
public boolean isGenerateGUID()- Returns:
- the generateGUID
-
getTabCount
public int getTabCount()- Returns:
- the tabCount
-
setTabCount
public void setTabCount(int tabCount) - Parameters:
tabCount- the tabCount to set
-
incrementTabCount
public void incrementTabCount() -
decrementTabCount
public void decrementTabCount() -
generateUUID
-
getAppPath
- Returns:
- the appPath
-
setAppPath
- Parameters:
path- the appPath to set
-
isValidObject
- Parameters:
mmdbVal-- Returns:
- boolean
-
countWordOccurence
-
isTreatLengthAsPrecision
public boolean isTreatLengthAsPrecision()- Returns:
- the treatLengthAsPrecision
-
setTreatLengthAsPrecision
public void setTreatLengthAsPrecision(boolean treatLengthAsPrecision) - Parameters:
treatLengthAsPrecision- the treatLengthAsPrecision to set
-
getPreserveCount
public static int getPreserveCount()- Returns:
- the preserveCount
-
setPreserveCount
public static void setPreserveCount(int aPreserveCount) - Parameters:
aPreserveCount- the preserveCount to set
-
getSourceSystems
- Returns:
- the _sourceSystems
-
getTargetSystems
- Returns:
- the _targetSystems
-
getSupportSystems
- Returns:
- the _supportSystems
-
setSourceSystems
- Parameters:
_sourceSystems- the _sourceSystems to set
-
setTargetSystems
- Parameters:
_targetSystems- the _targetSystems to set
-
setSupportSystems
- Parameters:
_supportSystems- the _supportSystems to set
-
getMappings
-
getUUID
- Returns:
- the uuid
-
setAddUnsuedMetadata
-
setFillMetadata
-