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. |
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.
|
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 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