Class MMMappingUtil

java.lang.Object
com.ads.mm.etl.xml.mapping.MMMappingUtil

public class MMMappingUtil extends Object
Author:
Syed Abdul Rahim
  • Field Details

  • Constructor Details

    • MMMappingUtil

      public MMMappingUtil()
    • MMMappingUtil

      public MMMappingUtil(String path)
  • Method Details

    • getMapping

      public MMMapping getMapping(String mappingId)
    • createMapping

      public void createMapping(MMMapping mapping, String tokenType, String token)
    • saveMapping

      public void saveMapping(MMMapping mapping, String tokenType, String token)
    • fillMappings

      public void fillMappings(String mappingIds) throws Exception
      Throws:
      Exception
    • fillMappingsInfo

      public void fillMappingsInfo(String mappingIds)
    • ensureTableExists

      public MMDBTable ensureTableExists(MMSystemMap systemMap, String systemName, String environmentName, String schema, String tableName)
    • ensureTableExists

      public MMDBTable ensureTableExists(MMSystemMap systemMap, String systemName, String environmentName, String schema, String tableName, String xPath)
    • addTableToSupportSystem

      public void addTableToSupportSystem(String systemName, String environmentName, String schema, String tableName)
    • addTableToSupportSystem

      public void addTableToSupportSystem(String systemName, String environmentName, String schema, String tableName, String tableXpath)
    • 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

      public static void printTabsInNewLine(StringBuilder sbu, int tabCount)
    • printArrayList

      public static void printArrayList(ArrayList al, StringBuilder sbu, boolean printTabs, int tabCount)
    • 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

      public String generateUUID()
    • getAppPath

      public static String getAppPath()
      Returns:
      the appPath
    • setAppPath

      public static void setAppPath(String path)
      Parameters:
      path - the appPath to set
    • isValidObject

      public boolean isValidObject(MMDBValidator mmdbVal)
      Parameters:
      mmdbVal -
      Returns:
      boolean
    • countWordOccurence

      public static int countWordOccurence(String source, String toFind)
    • 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

      public MMSystemMap getSourceSystems()
      Returns:
      the _sourceSystems
    • getTargetSystems

      public MMSystemMap getTargetSystems()
      Returns:
      the _targetSystems
    • getSupportSystems

      public MMSystemMap getSupportSystems()
      Returns:
      the _supportSystems
    • setSourceSystems

      public void setSourceSystems(MMSystemMap _sourceSystems)
      Parameters:
      _sourceSystems - the _sourceSystems to set
    • setTargetSystems

      public void setTargetSystems(MMSystemMap _targetSystems)
      Parameters:
      _targetSystems - the _targetSystems to set
    • setSupportSystems

      public void setSupportSystems(MMSystemMap _supportSystems)
      Parameters:
      _supportSystems - the _supportSystems to set
    • getMappings

      public Iterable<MMMapping> getMappings()
    • getUUID

      public String getUUID()
      Returns:
      the uuid
    • setAddUnsuedMetadata

      public void setAddUnsuedMetadata(MMSystemMap.Type type, boolean val)
    • setFillMetadata

      public void setFillMetadata(MMSystemMap.Type type, boolean val)