|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.tools.db.RDBMSTool
public class RDBMSTool
This class provides support for creating and destroying tables in RDBMS databases.
Constructor Summary | |
---|---|
RDBMSTool(org.exolab.jms.config.Configuration config)
Construct a new RDBMSTool . |
|
RDBMSTool(java.sql.Connection connection)
Construct a new RDBMSTool . |
Method Summary | |
---|---|
void |
close()
Close the connection to the database. |
void |
create(org.exolab.jms.tools.db.Database schema)
Creates the database. |
void |
create(org.exolab.jms.tools.db.Table table)
Creates a table in the database. |
void |
delete(org.exolab.jms.tools.db.Database schema)
Deletes data from all tables in the database. |
void |
drop(org.exolab.jms.tools.db.Database schema)
Drops tables from the database. |
void |
drop(org.exolab.jms.tools.db.Table table)
Drops a table from the database. |
SchemaBrowser |
getSchemaBrowser()
Returns the schema browser. |
boolean |
hasTables(org.exolab.jms.tools.db.Table[] tables)
Determines if a set of tables are present in the dataase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RDBMSTool(java.sql.Connection connection) throws org.exolab.jms.persistence.PersistenceException
RDBMSTool
.
connection
- the JDBC connection
org.exolab.jms.persistence.PersistenceException
- if database meta-data can't be obtainedpublic RDBMSTool(org.exolab.jms.config.Configuration config) throws org.exolab.jms.persistence.PersistenceException
RDBMSTool
.
config
- the configuration
org.exolab.jms.persistence.PersistenceException
- for any errorMethod Detail |
---|
public boolean hasTables(org.exolab.jms.tools.db.Table[] tables) throws org.exolab.jms.persistence.PersistenceException
tables
- the tables
true
if all tables are present
org.exolab.jms.persistence.PersistenceException
- for any errorpublic void create(org.exolab.jms.tools.db.Database schema) throws org.exolab.jms.persistence.PersistenceException
schema
- the database schema
org.exolab.jms.persistence.PersistenceException
- if elements cannot be created in the
databasepublic void drop(org.exolab.jms.tools.db.Database schema) throws org.exolab.jms.persistence.PersistenceException
schema
- the database schema
org.exolab.jms.persistence.PersistenceException
- if elements cannot be dropped from the
databasepublic void delete(org.exolab.jms.tools.db.Database schema) throws org.exolab.jms.persistence.PersistenceException
schema
- the database schema
org.exolab.jms.persistence.PersistenceException
- if a table can't be truncatedpublic void close()
public void create(org.exolab.jms.tools.db.Table table) throws org.exolab.jms.persistence.PersistenceException
table
- the table to create
org.exolab.jms.persistence.PersistenceException
- if the table exists, or cannot be createdpublic void drop(org.exolab.jms.tools.db.Table table) throws org.exolab.jms.persistence.PersistenceException
table
- the table to drop
org.exolab.jms.persistence.PersistenceException
- for any database errorpublic SchemaBrowser getSchemaBrowser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |