jdbcadmin.core.tools
Class ConnectionFactory

java.lang.Object
  extended byjdbcadmin.core.tools.ConnectionFactory

public final class ConnectionFactory
extends java.lang.Object

JDBC connections factory

Author:
Thomas Recloux (trecloux@norsys.fr)

Method Summary
static java.sql.Connection getCnx(ConnectionInfo aConInfo)
          Init a JDBC connection using the specified connection informations
If the dataSourceJndiName property is specified, it will try to retrieve the connection from the datasource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCnx

public static java.sql.Connection getCnx(ConnectionInfo aConInfo)
                                  throws TechnicalException
Init a JDBC connection using the specified connection informations
If the dataSourceJndiName property is specified, it will try to retrieve the connection from the datasource.
Else, the connection la connection is created using the classics informations (driver, url, user, password)

Parameters:
aConInfo - connection parameters
Returns:
the connection
Throws:
TechnicalException - Connection error


Copyright © 2004-2005 Norsys. All Rights Reserved.