Package com.ads.mm.etl.xml.mapping
Class MMDBColumn
java.lang.Object
com.ads.mm.etl.xml.mapping.MMUUID
com.ads.mm.etl.xml.mapping.MMDBColumn
- All Implemented Interfaces:
Cloneable
- Author:
- Syed Abdul Rahim
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.ads.mm.etl.xml.mapping.MMUUID
_associatedIDs, _associatedUUIDs, uniqueName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransformation(MMMapping mapping, MMMappingTransformation mmmTrans) protected Objectclone()static MMDBColumnfindFirstValidColumn(ArrayList<MMDBColumn> mmdbcList) intgetCopyColumnCount(String mappingId) intgetCopyDerviedColumnCount(String mappingId) getId()static intintgetPreservedId(int preserveCount) getScale()getTransformation(String mappingId) TODO: Remove this methodintgetTransformationIndex(String mappingId, MMMappingTransformation mmmTrans) getTransformations(String mappingId) getXPath()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetBusinessKeyFlag(boolean businessKeyFlag) voidsetColumnAlias(String columnAlias) voidsetColumnClass(String columnClass) voidsetColumnComments(String columnComments) voidsetColumnName(String columnName) voidsetCopyColumnCount(String mappingId, int copyColumnCount) voidsetCopyColumnRequired(boolean copyColumnRequired) voidsetCopyDerviedColumnCount(String mappingId, int copyDerviedColumnCount) voidsetDataType(String dataType) voidsetDefaultValue(String defaultValue) voidsetDefinitionComments(String definitionComments) voidsetForeignKeyColumn(String foreignKeyColumn) voidsetForeignKeyFlag(boolean foreignKeyFlag) voidsetForeignKeyFlag(String foreignKeyFlag) voidsetForeignKeyTable(String foreignKeyTable) voidvoidsetIdentityFlag(String identityFlag) voidvoidsetLogicalColumnName(String logicalColumnName) voidsetMappingUtil(MMMappingUtil mappingUtil) voidsetMaxValue(String maxValue) voidsetMinValue(String minValue) voidsetNaturalKeyFlag(String naturalKeyFlag) voidsetNullableFlag(String nullableFlag) voidsetOrphanFlag(boolean orphanFlag) voidsetParentTable(MMDBTable parentTable) voidsetPercenNullValue(String percenNullValue) voidsetPrecision(String precision) static voidsetPreserveCount(int aPreserveCount) voidsetPrimaryKeyFlag(boolean primaryKeyFlag) voidsetPrimaryKeyFlag(String primaryKeyFlag) voidvoidsetSDIDescription(String sdiDescription) voidsetSDIFlag(boolean sdiFlag) voidtoString()voidtoString(StringBuilder sbu) Methods inherited from class com.ads.mm.etl.xml.mapping.MMUUID
addAssociatedCrossID, addAssociatedID, addAssociatedUUID, getAssociatedCrossID, getAssociatedID, getAssociatedUUID, getUniqueName, getUUID, setAssociatedIDCount, setUniqueName, setUUID
-
Constructor Details
-
MMDBColumn
-
-
Method Details
-
getColumnName
- Returns:
- the columnName
-
setColumnName
- Parameters:
columnName- the columnName to set
-
toString
-
toString
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getDataType
- Returns:
- the dataType
-
setDataType
- Parameters:
dataType- the dataType to set
-
getLength
- Returns:
- the length
-
setLength
- Parameters:
length- the length to set
-
getPrecision
- Returns:
- the precision
-
setPrecision
- Parameters:
precision- the precision to set
-
getScale
- Returns:
- the scale
-
setScale
- Parameters:
scale- the scale to set
-
getDefaultValue
- Returns:
- the defaultValue
-
setDefaultValue
- Parameters:
defaultValue- the defaultValue to set
-
getDefinitionComments
- Returns:
- the definitionComments
-
setDefinitionComments
- Parameters:
definitionComments- the definitionComments to set
-
getIdentityFlag
- Returns:
- the identityFlag
-
setIdentityFlag
- Parameters:
identityFlag- the identityFlag to set
-
isNullableFlag
public boolean isNullableFlag() -
getNullableFlag
- Returns:
- the nullableFlag
-
setNullableFlag
- Parameters:
nullableFlag- the nullableFlag to set
-
getPercenNullValue
- Returns:
- the percenNullValue
-
setPercenNullValue
- Parameters:
percenNullValue- the percenNullValue to set
-
getNaturalKeyFlag
- Returns:
- the naturalKeyFlag
-
setNaturalKeyFlag
- Parameters:
naturalKeyFlag- the naturalKeyFlag to set
-
getMinValue
- Returns:
- the minValue
-
setMinValue
- Parameters:
minValue- the minValue to set
-
getMaxValue
- Returns:
- the maxValue
-
setMaxValue
- Parameters:
maxValue- the maxValue to set
-
getMappingUtil
- Returns:
- the _mappingUtil
-
setMappingUtil
- Parameters:
mappingUtil- the _mappingUtil to set
-
getPreserveCount
public static int getPreserveCount()- Returns:
- the preserveCount
-
setPreserveCount
public static void setPreserveCount(int aPreserveCount) - Parameters:
aPreserveCount- the preserveCount to set
-
getPreservedId
public int getPreservedId(int preserveCount) -
getParentTable
- Returns:
- the parentTable
-
setParentTable
- Parameters:
parentTable- the parentTable to set
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
isOrphanFlag
public boolean isOrphanFlag()- Returns:
- the orphanFlag
-
setOrphanFlag
public void setOrphanFlag(boolean orphanFlag) - Parameters:
orphanFlag- the orphanFlag to set
-
getTransformationsMap
-
getTransformations
- Returns:
- the _transformations
-
addTransformation
-
isCopyColumnRequired
public boolean isCopyColumnRequired()- Returns:
- the copyColumnRequired
-
setCopyColumnRequired
public void setCopyColumnRequired(boolean copyColumnRequired) - Parameters:
copyColumnRequired- the copyColumnRequired to set
-
getCopyColumnCount
- Returns:
- the _hmCopyColumnCount
-
setCopyColumnCount
- Parameters:
copyColumnCount- the _hmCopyColumnCount to set
-
getTransformation
TODO: Remove this method- Parameters:
mappingId-- Returns:
- MMMappingTransformation
-
getCopyDerviedColumnCount
- Returns:
- the _hmCopyDerviedColumnCount
-
setCopyDerviedColumnCount
- Parameters:
copyDerviedColumnCount- the _hmCopyDerviedColumnCount to set
-
getTransformationIndex
-
findFirstValidColumn
-
isPrimaryKey
public boolean isPrimaryKey()- Returns:
- the primaryKeyFlag
-
setPrimaryKeyFlag
- Parameters:
primaryKeyFlag- the primaryKeyFlag to set
-
setPrimaryKeyFlag
public void setPrimaryKeyFlag(boolean primaryKeyFlag) - Parameters:
primaryKeyFlag- the primaryKeyFlag to set
-
isforeignKey
public boolean isforeignKey()- Returns:
- the foreignKeyFlag
-
setForeignKeyFlag
- Parameters:
foreignKeyFlag- the foreignKeyFlag to set
-
setForeignKeyFlag
public void setForeignKeyFlag(boolean foreignKeyFlag) - Parameters:
foreignKeyFlag- the foreignKeyFlag to set
-
getForeignKeyTable
- Returns:
- the foreignKeyTable
-
setForeignKeyTable
- Parameters:
foreignKeyTable- the foreignKeyTable to set
-
getForeignKeyColumn
- Returns:
- the foreignKeyColumn
-
setForeignKeyColumn
- Parameters:
foreignKeyColumn- the foreignKeyColumn to set
-
getColumnClass
- Returns:
- the columnClass
-
setColumnClass
- Parameters:
columnClass- the columnClass to set
-
isBusinessKeyFlag
public boolean isBusinessKeyFlag()- Returns:
- the businessKeyFlag
-
setBusinessKeyFlag
public void setBusinessKeyFlag(boolean businessKeyFlag) - Parameters:
businessKeyFlag- the businessKeyFlag to set
-
getLogicalColumnName
- Returns:
- the logicalColumnName
-
setLogicalColumnName
- Parameters:
logicalColumnName- the logicalColumnName to set
-
getColumnAlias
- Returns:
- the columnAlias
-
setColumnAlias
- Parameters:
columnAlias- the columnAlias to set
-
getColumnComments
- Returns:
- the columnComments
-
setColumnComments
- Parameters:
columnComments- the columnComments to set
-
isSDIFlag
public boolean isSDIFlag()- Returns:
- the sdiFlag
-
setSDIFlag
public void setSDIFlag(boolean sdiFlag) - Parameters:
sdiFlag- the sdiFlag to set
-
getSDIDescription
- Returns:
- the sdiDescription
-
setSDIDescription
- Parameters:
sdiDescription- the sdiDescription to set
-
getXPath
- Returns:
- the xpath
-
setXPath
- Parameters:
xpath- the xpath to set
-