|
||||||||
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(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 |
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(java.lang.String path) throws java.lang.ClassNotFoundException, ConfigurationFileException, FileDoesNotExistException, java.io.IOException, PersistenceException
path
- the path to an openjms XML configuration filejava.lang.ClassNotFoundException
- if the JDBC driver cannot be loadedConfigurationFileException
- if the configuration file is invalidFileDoesNotExistException
- if the file cannot be foundjava.io.IOException
- if the RDBMS configuration contains invalid
values for the paths elementjava.lang.IllegalArgumentException
- if path is nullPersistenceException
- if a connection cannot be establishedMethod Detail |
public void create() throws PersistenceException
PersistenceException
- if the tables cannot be createdpublic void create(java.lang.String path) throws PersistenceException
path
- the path to an XML database schema filePersistenceException
- if the tables cannot be createdpublic void drop() throws PersistenceException
PersistenceException
- if the tables cannot be droppedpublic void drop(java.lang.String path) throws PersistenceException
path
- the path to an XML database schema filePersistenceException
- if the tables cannot be droppedpublic void migrate() throws PersistenceException
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 |