org.LexGrid.util.sql.sqlReconnect
Class ConnectionHelper

java.lang.Object
  extended by org.LexGrid.util.sql.sqlReconnect.ConnectionHelper
All Implemented Interfaces:
ConnectionHelperIF

public class ConnectionHelper
extends java.lang.Object
implements ConnectionHelperIF

This class is just a hack so that I can get the driver manager to connect to a sql database with a driver that was loaded using a different class loader. This class needs to be loaded by the same class loader that registered the sql driver(s).

Author:
armbrust

Constructor Summary
ConnectionHelper()
           
 
Method Summary
 java.sql.Connection getConnection(java.lang.String url, java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHelper

public ConnectionHelper()
Method Detail

getConnection

public java.sql.Connection getConnection(java.lang.String url,
                                         java.util.Properties properties)
                                  throws java.sql.SQLException
Specified by:
getConnection in interface ConnectionHelperIF
Throws:
java.sql.SQLException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.