uk.org.ogsadai.converters.databaseschema
Class DatabaseSchemaMetaData
java.lang.Object
|
+--uk.org.ogsadai.converters.databaseschema.DatabaseSchemaMetaData
- public class DatabaseSchemaMetaData
- extends java.lang.Object
Object containing metadata relating to a relational database schema.
- Author:
- The OGSA-DAI Project Team
Field Summary |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.util.Map |
mTableMetaData
Mapping from table names to table metadata |
private java.lang.String[] |
mTableNames
Database schema details |
Method Summary |
TableMetaData |
getTable(java.lang.String name)
Returns the table metadata for a particular table. |
java.lang.String[] |
getTableNames()
Returns the names of the tables in this database. |
java.util.Map |
getTables()
Returns table metadata as a Map which maps table names to TableMetaData . |
void |
setTableNames(java.lang.String[] tableNames)
Set the names of the tables in the database. |
void |
setTables(java.util.Map tableMetaData)
Set the table metadata in this database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement
- See Also:
- Constant Field Values
mTableNames
private java.lang.String[] mTableNames
-
Database schema details
mTableMetaData
private java.util.Map mTableMetaData
-
Mapping from table names to table metadata
DatabaseSchemaMetaData
public DatabaseSchemaMetaData()
-
Create a new database schema metadata object.
setTableNames
public void setTableNames(java.lang.String[] tableNames)
-
Set the names of the tables in the database.
-
- Parameters:
tableNames
- Table names.
getTableNames
public java.lang.String[] getTableNames()
-
Returns the names of the tables in this database.
-
- Returns:
- an array of table names
getTable
public TableMetaData getTable(java.lang.String name)
-
Returns the table metadata for a particular table.
-
- Parameters:
name
- A table name.
- Returns:
- table metadata or
null
.
setTables
public void setTables(java.util.Map tableMetaData)
-
Set the table metadata in this database.
-
- Parameters:
tableMetaData
- A mapping from table names to table metadata.
getTables
public java.util.Map getTables()
-
Returns table metadata as a
Map
which maps table names to TableMetaData
.
-
- Returns:
- metadata for all tables