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
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 Table getTable(Database schema,
java.lang.String name)
getAttribute
public static Attribute getAttribute(Table table,
java.lang.String name)
getSchema
public static Database getSchema()
throws PersistenceException
getSchemaFromResource
public static Database getSchemaFromResource(java.lang.String path)
throws PersistenceException
getSchema
public static Database getSchema(java.lang.String path)
throws PersistenceException
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.