|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tools.db.DBTool
This class provides support for creating and destroying OpenJMS tables in RDBMS databases.
Constructor Summary | |
DBTool(org.exolab.jms.config.Configuration config)
Construct a new DBTool . |
|
DBTool(java.lang.String path)
Construct an instance with the path to an openjms XML configuration file. |
Method Summary | |
void |
close()
Deallocate any resources. |
void |
create()
Creates the database tables using the default schema. |
void |
create(java.lang.String path)
Creates the database tables from the specified schema. |
void |
delete()
Deletes all data from the database tables. |
void |
drop()
Drop the database tables from the default schema. |
void |
drop(java.lang.String path)
Drop the database tables from the specified schema. |
static void |
main(java.lang.String[] args)
|
void |
migrate()
Migrates the database tables to the latest version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBTool(org.exolab.jms.config.Configuration config) throws org.exolab.jms.persistence.PersistenceException
DBTool
.config
- the configuration to use.org.exolab.jms.persistence.PersistenceException
- for any errorpublic DBTool(java.lang.String path) throws org.exolab.jms.persistence.PersistenceException
path
- the path to an openjms XML configuration fileorg.exolab.jms.persistence.PersistenceException
- if a connection cannot be establishedMethod Detail |
public void create() throws org.exolab.jms.persistence.PersistenceException
org.exolab.jms.persistence.PersistenceException
- if the tables cannot be createdpublic void create(java.lang.String path) throws org.exolab.jms.persistence.PersistenceException
path
- the path to an XML database schema fileorg.exolab.jms.persistence.PersistenceException
- if the tables cannot be createdpublic void drop() throws org.exolab.jms.persistence.PersistenceException
org.exolab.jms.persistence.PersistenceException
- if the tables cannot be droppedpublic void drop(java.lang.String path) throws org.exolab.jms.persistence.PersistenceException
path
- the path to an XML database schema fileorg.exolab.jms.persistence.PersistenceException
- if the tables cannot be droppedpublic void delete() throws org.exolab.jms.persistence.PersistenceException
org.exolab.jms.persistence.PersistenceException
- if the tables can't be deletedpublic void migrate() throws org.exolab.jms.persistence.PersistenceException
org.exolab.jms.persistence.PersistenceException
- if the database cannot be migratedpublic void close() throws java.sql.SQLException
java.sql.SQLException
- if the database connection cannot be closedpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |