org.exolab.jms.tools.db
Class SchemaHelper
java.lang.Object
|
+--org.exolab.jms.tools.db.SchemaHelper
- public class SchemaHelper
- extends java.lang.Object
Schema utility class
- Version:
- $Revision: 1.2 $ $Date: 2003/08/07 13:33:11 $
- Author:
- Tim Anderson
Method Summary |
static org.exolab.jms.tools.db.Attribute |
getAttribute(org.exolab.jms.tools.db.Table table,
java.lang.String name)
|
static org.exolab.jms.tools.db.Database |
getSchema()
|
static org.exolab.jms.tools.db.Database |
getSchema(java.lang.String path)
|
static org.exolab.jms.tools.db.Database |
getSchemaFromResource(java.lang.String path)
|
static java.lang.String |
getSchemaVersion(java.sql.Connection connection)
Get the schema version |
static org.exolab.jms.tools.db.Table |
getTable(org.exolab.jms.tools.db.Database schema,
java.lang.String name)
|
static void |
setVersion(java.sql.Connection connection,
java.lang.String version)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaHelper
public SchemaHelper()
getSchemaVersion
public static java.lang.String getSchemaVersion(java.sql.Connection connection)
throws PersistenceException
- Get the schema version
- Parameters:
connection
- the connection to use- Returns:
- the schema version, or null, if no version has been initialised
- Throws:
PersistenceException
- for any related persistence exception
setVersion
public static void setVersion(java.sql.Connection connection,
java.lang.String version)
throws PersistenceException
getTable
public static org.exolab.jms.tools.db.Table getTable(org.exolab.jms.tools.db.Database schema,
java.lang.String name)
getAttribute
public static org.exolab.jms.tools.db.Attribute getAttribute(org.exolab.jms.tools.db.Table table,
java.lang.String name)
getSchema
public static org.exolab.jms.tools.db.Database getSchema()
throws PersistenceException
getSchemaFromResource
public static org.exolab.jms.tools.db.Database getSchemaFromResource(java.lang.String path)
throws PersistenceException
getSchema
public static org.exolab.jms.tools.db.Database getSchema(java.lang.String path)
throws PersistenceException
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.