|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tools.db.SchemaBrowser
This class provides methods for examining a database schema
Constructor Summary | |
SchemaBrowser(java.sql.Connection connection)
Construct a new SchemaBrowser |
Method Summary | |
Table |
getTable(java.lang.String name)
Returns the schema for the specified table |
boolean |
getTableExists(java.lang.String table)
Returns true if a table exists |
Type |
getType(Attribute attribute)
Returns the Type for an Attribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaBrowser(java.sql.Connection connection) throws PersistenceException
SchemaBrowser
connection
- the JDBC connectionPersistenceException
- if database meta-data can't be obtainedMethod Detail |
public Table getTable(java.lang.String name) throws PersistenceException
name
- the table namename
PersistenceException
- if the named table doesn't exist, or the
schema cannot be obtainedpublic Type getType(Attribute attribute) throws PersistenceException
Type
for an Attribute
attribute
- the attributePersistenceException
- if Attribute.getType()
is invalid, or
the RDBMS doesn't support the typepublic boolean getTableExists(java.lang.String table) throws PersistenceException
table
- the name of the table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |