Package com.ads.mm.db.dao
Class DBSchema
java.lang.Object
com.ads.mm.db.dao.DBSchema
This class provides some beans control methods related to Environments, Schemas
and Tables, Views, Synonyms, Components.
- Author:
- AnalytiX DS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds Table as specified in DBTable Object.voidaddTableByReferenceId(DBTable table) Adds Table as specified in DBTable Object.voidaddTables(Collection<DBTable> values) Adds the Tables as specified as Collection of DBTable Objects.Returns the List of DBTable.getComponent(String componentName) Returns the DBTable Object for the specified componentName.Returns the HashMap of hmComponents.Returns the Components.Returns the DBEnvironment Object.Returns the schemaName.getSynonym(String synonymName) Returns the DBTable Object for the specified synonymName.Returns the HashMap of Synonyms.Returns the synonyms.getTable(DBTable.TableType type, String tableName) Returns the DBTable Object for the specified TableType and tableName.Returns the DBTable object for the specified tableName.Returns the HashMap of hmTables.Returns the List of DBTable Objects.getTables(DBTable.TableType[] tableTypes) Returns the List of DBTablesReturns the DBTable Object for the specified viewName.Returns the HashMap of hmViews.getViews()Returns the List of DBTable ObjectvoidsetEnvironment(DBEnvironment dbEnvironment) Sets the dbEnvironment as specified.voidsetSchemaName(String schemaName) Sets the schemaName as specified.toString()Returns the string representation.
-
Constructor Details
-
DBSchema
public DBSchema() -
DBSchema
- Parameters:
schemaName-
-
-
Method Details
-
getAllLists
Returns the List of DBTable. DBTable can be TABLE, VIEW, SYNONYM.- Returns:
- HashMap
-
getSchemaName
Returns the schemaName.- Returns:
- schemaName String
-
setSchemaName
Sets the schemaName as specified.- Parameters:
schemaName- String
-
getTableMap
Returns the HashMap of hmTables.- Returns:
- hmTables
-
getTable
Returns the DBTable object for the specified tableName.- Parameters:
tableName- String- Returns:
- DBTable Object
-
getTables
Returns the List of DBTable Objects.- Returns:
- List
-
getViewMap
Returns the HashMap of hmViews.- Returns:
- HashMap hmViews
-
getView
Returns the DBTable Object for the specified viewName.- Parameters:
viewName- String- Returns:
- DBTable Object
-
getViews
Returns the List of DBTable Object- Returns:
- List
-
getSynonymMap
Returns the HashMap of Synonyms.- Returns:
- HashMap - hmSynonyms
-
getSynonym
Returns the DBTable Object for the specified synonymName.- Parameters:
synonymName- String- Returns:
- DBTable
-
getSynonyms
Returns the synonyms.- Returns:
- List
-
getComponentMap
Returns the HashMap of hmComponents.- Returns:
- HashMap - hmComponents
-
getComponent
Returns the DBTable Object for the specified componentName.- Parameters:
componentName- String- Returns:
- DBTable
-
getComponents
Returns the Components.- Returns:
- List
-
getTable
Returns the DBTable Object for the specified TableType and tableName.- Parameters:
type- DBTabletableName- String- Returns:
- DBTable
-
addTable
Adds Table as specified in DBTable Object.- Parameters:
table- DBTable
-
addTableByReferenceId
Adds Table as specified in DBTable Object.- Parameters:
table- DBTable
-
getTables
Returns the List of DBTables- Parameters:
tableTypes- DBTable Object- Returns:
- List
-
addTables
Adds the Tables as specified as Collection of DBTable Objects.- Parameters:
values- Collection
-
toString
Returns the string representation. -
getEnvironment
Returns the DBEnvironment Object.- Returns:
- dbEnvironment
-
setEnvironment
Sets the dbEnvironment as specified.- Parameters:
dbEnvironment- DBEnvironment
-
getObject
-