org.exolab.jms.tools.db
Class RDBMSTool

java.lang.Object
  |
  +--org.exolab.jms.tools.db.RDBMSTool

public class RDBMSTool
extends java.lang.Object

This class provides support for creating and destroying tables in RDBMS databases.

Version:
$Revision: 1.7 $ $Date: 2003/08/07 13:33:11 $
Author:
Tim Anderson

Constructor Summary
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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSTool

public RDBMSTool(java.sql.Connection connection)
          throws PersistenceException
Construct a new RDBMSTool
Parameters:
connection - the JDBC connection
Throws:
PersistenceException - if database meta-data can't be obtained
Method Detail

create

public void create(org.exolab.jms.tools.db.Database schema)
            throws PersistenceException
Creates the database
Parameters:
schema - the database schema
Throws:
PersistenceException - if elements cannot be created in the database

drop

public void drop(org.exolab.jms.tools.db.Database schema)
          throws PersistenceException
Drops tables from the database
Parameters:
schema - the database schema
Throws:
PersistenceException - if elements cannot be dropped from the database

close

public void close()
Close the connection to the database

create

public void create(org.exolab.jms.tools.db.Table table)
            throws PersistenceException
Creates a table in the database
Parameters:
table - the table to create
Throws:
PersistenceException - if the table exists, or cannot be created

drop

public void drop(org.exolab.jms.tools.db.Table table)
          throws PersistenceException
Drops a table from the database. If the table doesn't exist, then it will be ignored.
Parameters:
table - the table to drop
Throws:
PersistenceException - for any database error

getSchemaBrowser

public SchemaBrowser getSchemaBrowser()
Returns the schema browser
Returns:
the schema browser


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.