org.apache.ibatis.abator.internal.db
Class ConnectionFactory

java.lang.Object
  extended byorg.apache.ibatis.abator.internal.db.ConnectionFactory

public class ConnectionFactory
extends java.lang.Object

This class caches drivers for performance reasons, but also to make sure that any native libraries are only loaded one time (avoids the dreaded UnsatisfiedLinkError library loaded in another classloader)

Author:
Jeff Butler

Method Summary
 java.sql.Connection getConnection(JDBCConnectionConfiguration config)
           
static ConnectionFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionFactory getInstance()

getConnection

public java.sql.Connection getConnection(JDBCConnectionConfiguration config)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException