public class DBTable extends DBComponent
Modifier and Type | Class and Description |
---|---|
static class |
DBTable.EntityBaseType
These constants are used to specify ENTITY, ENTITY_ROOT, ENTITY_ELEMENT, ENTITY_ATTRIBUTE.
|
static class |
DBTable.TableType
These Constants are used to specify the TableType as Table, View or Synonym.
|
Constructor and Description |
---|
DBTable() |
DBTable(java.lang.String tabName) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(DBColumn column)
Adds the column as specified.
|
void |
addColumn(java.lang.String name,
DBColumn column)
Adds the column specified with the details given as DBColumn.
|
void |
addColumnByReferenceId(DBColumn column)
Adds the Column as specified.
|
DBTable |
addExtendedProperty(KeyValue systemKeyValuesVo) |
void |
copyColumns(DBTable table)
Copies the columns as of like the columns as specified.
|
boolean |
equals_old(java.lang.Object obj)
Method used to compare for equality and returns value as true or false.
|
boolean |
equals(java.lang.Object obj)
Method used to compare for equality and returns value as true or false.
|
java.lang.String |
getActualTableName()
Returns the actualTableName.
|
java.lang.String |
getAssociatedBusinessTerm() |
int |
getAssociatedBusinessTermId() |
DBColumn |
getColumn(java.lang.String name)
Returns DBColumn Object for the specified name of the column.
|
java.util.List<DBIndex> |
getColumnIndexes() |
java.util.Map<java.lang.String,DBColumn> |
getColumnMap()
Returns the columnMap i.e it returns all the details pertaining to the column.
|
java.lang.String |
getCreatedBy()
Returns the createdBy.
|
java.util.Calendar |
getCreatedDateTime()
Returns the createdDateTime.
|
int |
getDataProfileScoreId() |
DBEnvironment.DBOperation |
getDBOperation()
Returns the dbOperation.
|
DBOperationHelper |
getDbOperationHelper()
Returns the dbOperationHelper.
|
DBOperationHelper |
getDBOperationHelper()
Returns the dbOperationHelper Object
|
java.lang.String |
getDeclarationPath() |
DBEnvironment |
getEnvironment()
Returns the environment as specified.
|
java.lang.String |
getExistence()
Returns the existence value.
|
java.lang.String |
getExpandedLogicalName() |
java.util.List<KeyValue> |
getExtendedProperties() |
java.lang.String |
getFileType()
Returns the fileType.
|
java.lang.String |
getLastModifiedBy()
Returns the lastModifiedBy.
|
java.util.Calendar |
getLastModifiedDateTime()
Returns the lastModifiedDateTime.
|
java.lang.String |
getLogicalTableName()
Returns the logicalTableName.
|
java.lang.String |
getMetadataSource() |
DBTable |
getParentTable()
Returns the parentTable.
|
java.lang.String |
getPhysicalTableName() |
java.lang.String |
getReferenceId()
Returns the referenceId.
|
int |
getSceid()
Returns the sceId.
|
java.lang.String |
getSchemaName()
Returns the schemaName.
|
int |
getSdiClassificationId() |
java.lang.String |
getSdiDescription() |
int |
getSTMId()
Returns the stmId i.e tableId.
|
java.lang.String |
getTableAlias()
Returns the tableAlias.
|
java.lang.String |
getTableClass()
Returns the tableClass.
|
java.lang.String |
getTableComments()
Returns the tableComments.
|
java.lang.String |
getTableDefinition()
Returns the tableDefinition.
|
java.lang.String |
getTableDefinitionComments()
Returns the tableDefinitionComments.
|
java.lang.String |
getTableName()
Returns the tableName,
|
java.lang.String |
getTableNameWithoutSchema()
Returns the tableName without Schema.
|
DBTable.TableType |
getTableType()
Returns the tableType.
|
java.lang.String |
getUsedInGapAnalysis()
Returns the usedInGapAnalysis.
|
java.lang.Object |
getUserData()
Returns the userData as specified.
|
java.lang.String |
getUserDefined1()
Returns the userDefined1 field.
|
java.lang.String |
getUserDefined10()
Returns the userDefined10 Field.
|
java.lang.String |
getUserDefined2()
Returns the userDefined2 field.
|
java.lang.String |
getUserDefined3()
Returns the userDefined3 field.
|
java.lang.String |
getUserDefined4()
Returns the userDefined4 field.
|
java.lang.String |
getUserDefined5()
Returns the userDefined5 field.
|
java.lang.String |
getUserDefined6()
Returns the userDefined6 Field.
|
java.lang.String |
getUserDefined7()
Returns the userDefined7 Field.
|
java.lang.String |
getUserDefined8()
Returns the userDefined8 Field.
|
java.lang.String |
getUserDefined9()
Returns the userDefined9 Field.
|
int |
hashCode()
hashCode is used to generate an integer code corresponding to the object.
|
boolean |
hasOnly(DBTable.EntityBaseType baseType)
Returns true if specified baseType is equal to the entityBaseType otherwise false.
|
boolean |
isElnExpanded() |
boolean |
isRootTable()
Returns the value of rootTable i.e returns true if it the root otherwise returns false.
|
boolean |
isSdiFlag() |
boolean |
isValid()
Returns the valid value.
|
boolean |
isValidateTransName() |
static java.lang.String |
parseSchemaName(java.lang.String tableName)
parses the specified tableName and returns the schema name.
|
void |
setActualTableName(java.lang.String actualTableName)
Sets the actualTableName as specified.
|
void |
setAssociatedBusinessTerm(java.lang.String associatedBusinessTerm) |
void |
setAssociatedBusinessTermId(int associatedBusinessTermId) |
DBTable |
setColumnIndexes(java.util.List<DBIndex> columnIndexes) |
void |
setColumnMap(java.util.Map<java.lang.String,DBColumn> columnMap)
Sets the columnMap as specified.
|
void |
setCreatedBy(java.lang.String createdBy)
Sets the createdBy as specified.
|
void |
setCreatedDateTime(java.util.Calendar createdDateTime)
Sets the createdDateTime as specified.
|
void |
setDataProfileScoreId(int dataProfileScoreId) |
void |
setDBOperation(DBEnvironment.DBOperation dbOperation)
Sets the dbOperation as specified.
|
void |
setDbOperationHelper(DBOperationHelper dbOperationHelper)
Sets the dbOperationHelper as specified.
|
void |
setDBOperationHelper(DBOperationHelper dbOperationStatus)
Sets the dbOperationHelper as specified.
|
void |
setDeclarationPath(java.lang.String declarationPath) |
void |
setElnExpanded(boolean elnExpanded) |
void |
setEnvironment(DBEnvironment environment)
Sets the environment as specified.
|
void |
setExistence(java.lang.String existence)
Sets the existence as specified.
|
void |
setExpandedLogicalName(java.lang.String expandedLogicalName) |
DBTable |
setExtendedProperties(java.util.List<KeyValue> extendedProperties) |
void |
setFileType(java.lang.String fileType)
Sets the fileType as specified.
|
void |
setLastModifiedBy(java.lang.String lastModifiedBy)
Sets the lastModifiedBy as specified.
|
void |
setLastModifiedDateTime(java.util.Calendar lastModifiedDateTime)
Sets the lastModifiedDateTime as specified.
|
void |
setLogicalTableName(java.lang.String logicalTableName)
Sets the logicalTableName as specified.
|
void |
setMetadataSource(java.lang.String metadataSource) |
void |
setParentTable(DBTable _parentTable)
Sets the parentTable as specified.
|
void |
setPhysicalTableName(java.lang.String physicalTableName) |
void |
setReferenceId(java.lang.String referenceId)
Sets the referenceId as specified.
|
void |
setRootTable(boolean rootTable)
Sets the rootTable as specified.
|
void |
setSceid(int sceid)
Sets the sceid as specified.
|
void |
setSchemaName(java.lang.String schemaName)
Sets the schemaName as specified.
|
void |
setSdiClassificationId(int sdiClassificationId) |
void |
setSdiDescription(java.lang.String sdiDescription) |
void |
setSdiFlag(boolean sdiFlag) |
void |
setSTMId(int stmId)
Sets the stmId as specified.
|
void |
setTableAlias(java.lang.String tableAlias)
Sets the tableAlias as specified.
|
void |
setTableClass(java.lang.String tableClass)
Sets the tableClass as specified.
|
void |
setTableComments(java.lang.String tableComments)
Sets the tableComments as specified.
|
void |
setTableDefinition(java.lang.String tableDefinition)
Sets the tableDefinition as specified.
|
void |
setTableDefinitionComments(java.lang.String tableDefinitionComments)
Sets the tableDefinitionComments as specified.
|
void |
setTableName(java.lang.String tableName)
Sets the tableName as specified.
|
void |
setTableType(DBTable.TableType tableType)
Sets the tableType as specified.
|
void |
setUsedInGapAnalysis(java.lang.String usedInGapAnalysis)
Sets the usedInGapAnalysis as specified.
|
void |
setUserData(java.lang.Object userData)
Sets the userData as specified.
|
void |
setUserDefined1(java.lang.String userDefined1)
Sets the userDefined1 as specified.
|
void |
setUserDefined10(java.lang.String userDefined10)
Sets the userDefined10 as specified.
|
void |
setUserDefined2(java.lang.String userDefined2)
Sets the userDefined2 as specified.
|
void |
setUserDefined3(java.lang.String userDefined3)
Sets the userDefined3 as specified.
|
void |
setUserDefined4(java.lang.String userDefined4)
Sets the userDefined4 as specified.
|
void |
setUserDefined5(java.lang.String userDefined5)
Sets the userDefined5 as specified.
|
void |
setUserDefined6(java.lang.String userDefined6)
Sets the userDefined6 as specified.
|
void |
setUserDefined7(java.lang.String userDefined7)
Sets the userDefined7 as specified.
|
void |
setUserDefined8(java.lang.String userDefined8)
Sets the userDefined8 as specified.
|
void |
setUserDefined9(java.lang.String userDefined9)
Sets the userDefined9 as specified.
|
void |
setValid(boolean valid)
Sets the valid as specified.
|
void |
setValidateTransName(boolean validateTransName) |
java.lang.String |
toString()
Returns the string representation.
|
boolean |
validate() |
boolean |
validateMandatoryFields() |
getDataStewardName, isMarked, setDataStewardName, setMarked
public DBTable getParentTable()
public void setParentTable(DBTable _parentTable)
_parentTable
- DBTablepublic boolean isValidateTransName()
public void setValidateTransName(boolean validateTransName)
public int getSceid()
public void setSceid(int sceid)
sceid
- intpublic DBEnvironment getEnvironment()
public void setEnvironment(DBEnvironment environment)
environment
- DBEnvironmentpublic java.lang.String getSchemaName()
public void setSchemaName(java.lang.String schemaName)
schemaName
- Stringpublic java.lang.String getTableName()
public java.lang.String getTableNameWithoutSchema()
public void setTableName(java.lang.String tableName)
tableName
- Stringpublic java.lang.String getTableDefinitionComments()
public void setTableDefinitionComments(java.lang.String tableDefinitionComments)
tableDefinitionComments
- Stringpublic java.lang.String getTableDefinition()
public void setTableDefinition(java.lang.String tableDefinition)
tableDefinition
- Stringpublic java.lang.String getTableComments()
public void setTableComments(java.lang.String tableComments)
tableComments
- Stringpublic java.lang.String getCreatedBy()
public void setCreatedBy(java.lang.String createdBy)
createdBy
- Stringpublic java.util.Calendar getCreatedDateTime()
public void setCreatedDateTime(java.util.Calendar createdDateTime)
createdDateTime
- Calendarpublic java.lang.String getLastModifiedBy()
public void setLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- Stringpublic java.util.Calendar getLastModifiedDateTime()
public void setLastModifiedDateTime(java.util.Calendar lastModifiedDateTime)
lastModifiedDateTime
- Calendarpublic DBTable.TableType getTableType()
public void setTableType(DBTable.TableType tableType)
tableType
- TableTypepublic java.lang.String getLogicalTableName()
public void setLogicalTableName(java.lang.String logicalTableName)
logicalTableName
- Stringpublic boolean isValid()
public void setValid(boolean valid)
valid
- booleanpublic java.lang.String getActualTableName()
public void setActualTableName(java.lang.String actualTableName)
actualTableName
- Stringpublic java.util.Map<java.lang.String,DBColumn> getColumnMap()
public void setColumnMap(java.util.Map<java.lang.String,DBColumn> columnMap)
columnMap
- Mappublic DBColumn getColumn(java.lang.String name)
name
- Stringpublic void addColumn(java.lang.String name, DBColumn column)
name
- Stringcolumn
- Stringpublic void addColumn(DBColumn column)
column
- Stringpublic void addColumnByReferenceId(DBColumn column)
column
- Stringpublic java.lang.String getReferenceId()
public void setReferenceId(java.lang.String referenceId)
referenceId
- Stringpublic DBOperationHelper getDBOperationHelper()
public void setDBOperationHelper(DBOperationHelper dbOperationStatus)
dbOperationStatus
- DBOperationHelperpublic java.lang.Object getUserData()
public void setUserData(java.lang.Object userData)
userData
- Objectpublic java.lang.String getUserDefined1()
public void setUserDefined1(java.lang.String userDefined1)
userDefined1
- Stringpublic java.lang.String getUserDefined2()
public void setUserDefined2(java.lang.String userDefined2)
userDefined2
- Stringpublic java.lang.String getUserDefined3()
public void setUserDefined3(java.lang.String userDefined3)
userDefined3
- Stringpublic java.lang.String getUserDefined4()
public void setUserDefined4(java.lang.String userDefined4)
userDefined4
- Stringpublic java.lang.String getUserDefined5()
public void setUserDefined5(java.lang.String userDefined5)
userDefined5
- Stringpublic java.lang.String getUsedInGapAnalysis()
public java.lang.String getFileType()
public void setFileType(java.lang.String fileType)
fileType
- Stringpublic void setUsedInGapAnalysis(java.lang.String usedInGapAnalysis)
usedInGapAnalysis
- Stringpublic void copyColumns(DBTable table) throws java.lang.CloneNotSupportedException
table
- - DBTablejava.lang.CloneNotSupportedException
public void setDbOperationHelper(DBOperationHelper dbOperationHelper)
dbOperationHelper
- DBOperationHelperpublic void setUserDefined10(java.lang.String userDefined10)
userDefined10
- Stringpublic void setUserDefined6(java.lang.String userDefined6)
userDefined6
- Stringpublic void setUserDefined7(java.lang.String userDefined7)
userDefined7
- Stringpublic void setUserDefined8(java.lang.String userDefined8)
userDefined8
- Stringpublic void setUserDefined9(java.lang.String userDefined9)
userDefined9
- Stringpublic DBOperationHelper getDbOperationHelper()
public java.lang.String getUserDefined10()
public java.lang.String getUserDefined6()
public java.lang.String getUserDefined7()
public java.lang.String getUserDefined8()
public java.lang.String getUserDefined9()
public java.lang.String getTableAlias()
public void setTableAlias(java.lang.String tableAlias)
tableAlias
- Stringpublic java.lang.String getTableClass()
public void setTableClass(java.lang.String tableClass)
tableClass
- Stringpublic boolean isSdiFlag()
public void setSdiFlag(boolean sdiFlag)
sdiFlag
- the sdiFlag to setpublic java.lang.String getSdiDescription()
public void setSdiDescription(java.lang.String sdiDescription)
sdiDescription
- the sdiDescription to setpublic int getSdiClassificationId()
public void setSdiClassificationId(int sdiClassificationId)
sdiClassificationId
- the sdiClassificationId to setpublic java.lang.String getExistence()
public void setExistence(java.lang.String existence)
existence
- Stringpublic DBEnvironment.DBOperation getDBOperation()
public void setDBOperation(DBEnvironment.DBOperation dbOperation)
dbOperation
- DBOperationpublic int getSTMId()
public void setSTMId(int stmId)
stmId
- intpublic static java.lang.String parseSchemaName(java.lang.String tableName)
tableName
- Stringpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Objectpublic boolean equals_old(java.lang.Object obj)
obj
- Objectpublic int hashCode()
hashCode
in class java.lang.Object
public boolean isRootTable()
public void setRootTable(boolean rootTable)
rootTable
- booleanpublic boolean hasOnly(DBTable.EntityBaseType baseType)
baseType
- DBTable Objectpublic java.lang.String getMetadataSource()
public void setMetadataSource(java.lang.String metadataSource)
metadataSource
- public java.util.List<KeyValue> getExtendedProperties()
public DBTable setExtendedProperties(java.util.List<KeyValue> extendedProperties)
public java.util.List<DBIndex> getColumnIndexes()
public java.lang.String getExpandedLogicalName()
public void setExpandedLogicalName(java.lang.String expandedLogicalName)
expandedLogicalName
- public java.lang.String getAssociatedBusinessTerm()
public void setAssociatedBusinessTerm(java.lang.String associatedBusinessTerm)
associatedBusinessTerm
- public int getAssociatedBusinessTermId()
public void setAssociatedBusinessTermId(int associatedBusinessTermId)
associatedBusinessTermId
- public boolean isElnExpanded()
public void setElnExpanded(boolean elnExpanded)
elnExpanded
- public java.lang.String getDeclarationPath()
public void setDeclarationPath(java.lang.String declarationPath)
declarationPath
- the declarationPath to setpublic int getDataProfileScoreId()
public void setDataProfileScoreId(int dataProfileScoreId)
dataProfileScoreId
- the dataProfileScoreId to setpublic java.lang.String getPhysicalTableName()
public void setPhysicalTableName(java.lang.String physicalTableName)
physicalTableName
- the physicalTableName to setpublic boolean validate()
public boolean validateMandatoryFields()