Package org.opennms.netmgt.config.api
Interface DatabaseSchemaConfig
-
- All Known Implementing Classes:
DatabaseSchemaConfigFactory
public interface DatabaseSchemaConfigAn interface for DatabaseSchemaConfigFactory- Author:
- Ryan Lambeth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddColumn(List<Table> tables, String column)StringconstructJoinExprForTables(List<Table> tables)constructJoinExprForTablesTablefindTableByVisibleColumn(String colName)findTableByVisibleColumnDatabaseSchemagetDatabaseSchema()getDatabaseSchemaList<String>getJoinTables(List<Table> tables)getJoinTablesTablegetPrimaryTable()getPrimaryTableTablegetTableByName(String name)getTableByNameintgetTableCount()getTableCount
-
-
-
Method Detail
-
getDatabaseSchema
DatabaseSchema getDatabaseSchema()
getDatabaseSchema
- Returns:
- a DatabaseSchema
-
getPrimaryTable
Table getPrimaryTable()
getPrimaryTable
- Returns:
- a Table
-
getTableByName
Table getTableByName(String name)
getTableByName
- Parameters:
a- String- Returns:
- a Table
-
findTableByVisibleColumn
Table findTableByVisibleColumn(String colName)
findTableByVisibleColumn
- Parameters:
a- String- Returns:
- a Table
-
getTableCount
int getTableCount()
getTableCount
- Returns:
- an int
-
getJoinTables
List<String> getJoinTables(List<Table> tables)
getJoinTables
- Parameters:
a- List of Tables- Returns:
- a List of Strings
-
constructJoinExprForTables
String constructJoinExprForTables(List<Table> tables)
constructJoinExprForTables
- Parameters:
a- List of Tables- Returns:
- a String
-
-