public class ModelMetaData extends Object
| Constructor and Description |
|---|
ModelMetaData(Backend backend,
DatabaseMetaData[] metaData,
String[] schemas)
Creates a database meta instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTableMetaData(TableMetaData tableMetaData)
Adds a table to this model.
If schemas are set, only tables belonging to one of given schemas will be appended. |
List<DatabaseMetaDataTableHeader> |
getAllTablesInDatabase()
Gets the header info of all tables in the database.
|
Backend |
getBackend()
Gets the backend.
|
DatabaseMetaData[] |
getMetaData()
Gets the JDBC-connection's meta data.
May be more than one if different schemas and schema-option was given in BackendInfo. |
Properties |
getProperties()
Gets the migration properties.
Used to remember settings of the migration process. |
String[] |
getSchemas()
Gets the valid schemas.
|
DatabaseMetaDataTableHeader |
getTableInDatabase(String tableName)
Gets the header info for given tablename.
|
Collection<TableMetaData> |
getTables()
Gets the tables of this model.
|
String |
toString() |
public ModelMetaData(Backend backend, DatabaseMetaData[] metaData, String[] schemas)
backend - the backendmetaData - the connections meta dataschemas - optional schemas, null if no schema checkpublic Properties getProperties()
public List<DatabaseMetaDataTableHeader> getAllTablesInDatabase() throws SQLException
SQLException - if failedpublic DatabaseMetaDataTableHeader getTableInDatabase(String tableName) throws SQLException
tableName - the tablenameSQLExceptionpublic boolean addTableMetaData(TableMetaData tableMetaData)
tableMetaData - the tablepublic Collection<TableMetaData> getTables()
public Backend getBackend()
public String[] getSchemas()
public DatabaseMetaData[] getMetaData()
BackendInfo.Tentackle - distributed, domain- and model-driven