org.jboss.test.cmp2.dbschema.util
Class DBSchemaHelper

java.lang.Object
  extended byorg.jboss.test.cmp2.dbschema.util.DBSchemaHelper

public class DBSchemaHelper
extends java.lang.Object


Constructor Summary
DBSchemaHelper()
           
 
Method Summary
static java.sql.Connection getConnection(java.lang.String url, java.lang.String user, java.lang.String pwd)
           
static Table (src) getTable(java.sql.DatabaseMetaData dbMD, java.lang.String tableName)
           
static java.util.List getTableNames(java.sql.DatabaseMetaData dbMD)
           
static void safeClose(java.sql.Connection con)
           
static void safeClose(java.sql.ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBSchemaHelper

public DBSchemaHelper()
Method Detail

getTable

public static Table (src)  getTable(java.sql.DatabaseMetaData dbMD,
                             java.lang.String tableName)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

getTableNames

public static java.util.List getTableNames(java.sql.DatabaseMetaData dbMD)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getConnection

public static java.sql.Connection getConnection(java.lang.String url,
                                                java.lang.String user,
                                                java.lang.String pwd)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

safeClose

public static void safeClose(java.sql.Connection con)

safeClose

public static void safeClose(java.sql.ResultSet rs)