|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.jms.tools.db.SchemaBrowser
public class 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 connection
PersistenceException - if database meta-data can't be obtained| Method Detail |
|---|
public Table getTable(java.lang.String name)
throws PersistenceException
name - the table name
name
PersistenceException - if the named table doesn't exist, or the
schema cannot be obtained
public Type getType(Attribute attribute)
throws PersistenceException
Type for an Attribute
attribute - the attribute
PersistenceException - if Attribute.getType() is invalid, or
the RDBMS doesn't support the type
public boolean getTableExists(java.lang.String table)
throws PersistenceException
table - the name of the table
PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||