public class ModelMetaData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Backend |
backend |
protected DatabaseMetaData[] |
metaData |
protected String[] |
schemas |
protected Map<String,TableMetaData> |
tableMap |
| 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. |
Collection<TableMetaData> |
getTables()
Gets the tables of this model.
|
String |
toString() |
protected final Backend backend
protected final DatabaseMetaData[] metaData
protected final Map<String,TableMetaData> tableMap
protected final String[] schemas
public ModelMetaData(Backend backend, DatabaseMetaData[] metaData, String[] schemas)
backend - the backendmetaData - the connections meta dataschemas - optional schemas, null if no schema checkpublic boolean addTableMetaData(TableMetaData tableMetaData)
tableMetaData - the tablepublic Collection<TableMetaData> getTables()
public Backend getBackend()
public DatabaseMetaData[] getMetaData()
BackendInfo.Copyright © 2016 Krake Softwaretechnik. All rights reserved.