public class MMMappingUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_NAME |
static java.lang.String |
DATATYPE_NAME |
static java.lang.String |
ENVIRONMENT_NAME |
static java.lang.String |
LENGTH_NAME |
static java.lang.String |
PRECSION_NAME |
static java.lang.String |
SCALE_NAME |
static java.lang.String |
SYSTEM_NAME |
static java.lang.String |
TABLE_NAME |
static java.lang.String |
XPATH_NAME |
Constructor and Description |
---|
MMMappingUtil() |
MMMappingUtil(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
void |
addTableToSupportSystem(java.lang.String systemName,
java.lang.String environmentName,
java.lang.String schema,
java.lang.String tableName,
java.lang.String tableXpath) |
static int |
countWordOccurence(java.lang.String source,
java.lang.String toFind) |
void |
createMapping(MMMapping mapping,
java.lang.String tokenType,
java.lang.String token) |
void |
decrementTabCount() |
MMDBTable |
ensureTableExists(MMSystemMap systemMap,
java.lang.String systemName,
java.lang.String environmentName,
java.lang.String schema,
java.lang.String tableName,
java.lang.String xPath) |
void |
fillMappings(java.lang.String mappingIds) |
void |
fillMappingsInfo(java.lang.String mappingIds) |
java.lang.String |
generateUUID() |
static java.lang.String |
getAppPath() |
int |
getColumnCount() |
int |
getEnvironmentCount() |
MMMapping |
getMapping(java.lang.String mappingId) |
java.lang.Iterable<MMMapping> |
getMappings() |
static int |
getPreserveCount() |
MMSystemMap |
getSourceSystems() |
MMSystemMap |
getSupportSystems() |
int |
getSystemCount() |
int |
getTabCount() |
int |
getTableCount() |
MMSystemMap |
getTargetSystems() |
java.lang.String |
getUUID() |
int |
incrementColumnCount() |
int |
incrementEnvironmentCount() |
int |
incrementSystemCount() |
void |
incrementTabCount() |
int |
incrementTableCount() |
int |
incrementUniqueCount() |
int |
incrementUniqueCount(int count) |
boolean |
isGenerateGUID() |
boolean |
isGenerateUniqueId() |
boolean |
isTreatLengthAsPrecision() |
boolean |
isValidObject(MMDBValidator mmdbVal) |
static void |
main(java.lang.String[] args) |
int |
nextColumnCount() |
int |
nextEnvironmentCount() |
int |
nextSystemCount() |
int |
nextTableCount() |
static void |
printArrayList(java.util.ArrayList al,
java.lang.StringBuilder sbu,
boolean printTabs,
int tabCount) |
static void |
printTabsInNewLine(java.lang.StringBuilder sbu,
int tabCount) |
void |
saveMapping(MMMapping mapping,
java.lang.String tokenType,
java.lang.String token) |
void |
setAddUnsuedMetadata(MMSystemMap.Type type,
boolean val) |
static void |
setAppPath(java.lang.String path) |
void |
setFillMetadata(MMSystemMap.Type type,
boolean val) |
void |
setGenerateGUID(boolean b) |
void |
setGenerateUniqueId(boolean aGenerateUniqueId) |
static void |
setPreserveCount(int aPreserveCount) |
void |
setSourceSystems(MMSystemMap _sourceSystems) |
void |
setSupportSystems(MMSystemMap _supportSystems) |
void |
setTabCount(int tabCount) |
void |
setTargetSystems(MMSystemMap _targetSystems) |
void |
setTreatLengthAsPrecision(boolean treatLengthAsPrecision) |
public static final java.lang.String SYSTEM_NAME
public static final java.lang.String ENVIRONMENT_NAME
public static final java.lang.String TABLE_NAME
public static final java.lang.String COLUMN_NAME
public static final java.lang.String DATATYPE_NAME
public static final java.lang.String LENGTH_NAME
public static final java.lang.String PRECSION_NAME
public static final java.lang.String SCALE_NAME
public static final java.lang.String XPATH_NAME
public MMMappingUtil()
public MMMappingUtil(java.lang.String path)
public MMMapping getMapping(java.lang.String mappingId)
public void createMapping(MMMapping mapping, java.lang.String tokenType, java.lang.String token)
public void saveMapping(MMMapping mapping, java.lang.String tokenType, java.lang.String token)
public void fillMappings(java.lang.String mappingIds) throws java.lang.Exception
java.lang.Exception
public void fillMappingsInfo(java.lang.String mappingIds)
public MMDBTable ensureTableExists(MMSystemMap systemMap, java.lang.String systemName, java.lang.String environmentName, java.lang.String schema, java.lang.String tableName, java.lang.String xPath)
public void addTableToSupportSystem(java.lang.String systemName, java.lang.String environmentName, java.lang.String schema, java.lang.String tableName, java.lang.String tableXpath)
public boolean isGenerateUniqueId()
public void setGenerateUniqueId(boolean aGenerateUniqueId)
aGenerateUniqueId
- the generateUniqueId to setpublic void setGenerateGUID(boolean b)
public int incrementUniqueCount()
public int incrementUniqueCount(int count)
public int getSystemCount()
public int nextSystemCount()
public int incrementSystemCount()
public int getEnvironmentCount()
public int nextEnvironmentCount()
public int incrementEnvironmentCount()
public int getTableCount()
public int nextTableCount()
public int incrementTableCount()
public int getColumnCount()
public int nextColumnCount()
public int incrementColumnCount()
public static void printTabsInNewLine(java.lang.StringBuilder sbu, int tabCount)
public static void printArrayList(java.util.ArrayList al, java.lang.StringBuilder sbu, boolean printTabs, int tabCount)
public boolean isGenerateGUID()
public int getTabCount()
public void setTabCount(int tabCount)
tabCount
- the tabCount to setpublic void incrementTabCount()
public void decrementTabCount()
public java.lang.String generateUUID()
public static java.lang.String getAppPath()
public static void setAppPath(java.lang.String path)
path
- the appPath to setpublic boolean isValidObject(MMDBValidator mmdbVal)
mmdbVal
- public static int countWordOccurence(java.lang.String source, java.lang.String toFind)
public static void main(java.lang.String[] args)
public boolean isTreatLengthAsPrecision()
public void setTreatLengthAsPrecision(boolean treatLengthAsPrecision)
treatLengthAsPrecision
- the treatLengthAsPrecision to setpublic static int getPreserveCount()
public static void setPreserveCount(int aPreserveCount)
aPreserveCount
- the preserveCount to setpublic MMSystemMap getSourceSystems()
public MMSystemMap getTargetSystems()
public MMSystemMap getSupportSystems()
public void setSourceSystems(MMSystemMap _sourceSystems)
_sourceSystems
- the _sourceSystems to setpublic void setTargetSystems(MMSystemMap _targetSystems)
_targetSystems
- the _targetSystems to setpublic void setSupportSystems(MMSystemMap _supportSystems)
_supportSystems
- the _supportSystems to setpublic java.lang.Iterable<MMMapping> getMappings()
public java.lang.String getUUID()
public void setAddUnsuedMetadata(MMSystemMap.Type type, boolean val)
public void setFillMetadata(MMSystemMap.Type type, boolean val)