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