|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.converters.databaseschema.fromxml.TableMetaDataImpl
An implementation of TableMetaData which extracts
relational table information from a
org.w3c.dom.Element.
TableMetaData| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private java.lang.String |
mCatalog
|
private java.util.Map |
mColumnMap
|
private ColumnMetaData[] |
mColumns
|
private KeyMetaData[] |
mExportedKeys
|
private KeyMetaData[] |
mImportedKeys
|
private java.lang.String |
mName
|
private java.util.Set |
mPrimaryKeys
|
private java.lang.String |
mSchema
|
| Constructor Summary | |
TableMetaDataImpl(org.w3c.dom.Element table)
Create from information in given XML fragment. |
|
| Method Summary | |
java.lang.String |
getCatalogName()
Returns the catalog name of this table. |
ColumnMetaData |
getColumn(int index)
Returns the type information of the column at the specified index. |
int |
getColumnCount()
Returns the number of columns in this table. |
KeyMetaData[] |
getExportedKeys()
Returns the exported keys of this table. |
KeyMetaData[] |
getImportedKeys()
Returns the imported keys of this table. |
java.lang.String |
getName()
Returns the name of this table. |
java.lang.String[] |
getPrimaryKeys()
Returns a set of columns which form the (composite) primary key of this table. |
java.lang.String |
getSchemaName()
Returns the schema name of this table. |
private KeyMetaData[] |
parseKeys(org.w3c.dom.Element schema,
java.lang.String elementName)
Parses the imported or exported keys of a database table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mName
private java.lang.String mSchema
private java.lang.String mCatalog
private ColumnMetaData[] mColumns
private java.util.Set mPrimaryKeys
private KeyMetaData[] mImportedKeys
private KeyMetaData[] mExportedKeys
private java.util.Map mColumnMap
| Constructor Detail |
public TableMetaDataImpl(org.w3c.dom.Element table)
table - XML fragment.| Method Detail |
private KeyMetaData[] parseKeys(org.w3c.dom.Element schema,
java.lang.String elementName)
schema - The XML element representing the database schema.elementName - The name of the element to retrieve
i.e. importedKeys or exportedKeys.
public java.lang.String getName()
TableMetaData
getName in interface TableMetaDatapublic java.lang.String getSchemaName()
TableMetaData
getSchemaName in interface TableMetaDatapublic java.lang.String getCatalogName()
TableMetaData
getCatalogName in interface TableMetaDatapublic int getColumnCount()
TableMetaData
getColumnCount in interface TableMetaDatapublic ColumnMetaData getColumn(int index)
TableMetaData
getColumn in interface TableMetaDataindex - The column index.
public java.lang.String[] getPrimaryKeys()
TableMetaData
getPrimaryKeys in interface TableMetaDatapublic KeyMetaData[] getImportedKeys()
TableMetaData
getImportedKeys in interface TableMetaDatapublic KeyMetaData[] getExportedKeys()
TableMetaData
getExportedKeys in interface TableMetaData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||