org.mybatis.generator.internal.db
Class ConnectionFactory

java.lang.Object
  extended by org.mybatis.generator.internal.db.ConnectionFactory

public class ConnectionFactory
extends Object

This class assumes that classes are cached elsewhere 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
 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 Connection getConnection(JDBCConnectionConfiguration config)
                         throws SQLException
Throws:
SQLException


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.