org.edg.data.util
Class JNDIConnectionFactory

java.lang.Object
  |
  +--org.edg.data.util.ConnectionFactory
        |
        +--org.edg.data.util.JNDIConnectionFactory

public final class JNDIConnectionFactory
extends ConnectionFactory

A JNDI based connection factory.

Version:
$Id: JNDIConnectionFactory.java,v 1.1 2004/03/25 14:47:25 jamesc Exp $
Author:
James Casey

Field Summary
 
Fields inherited from class org.edg.data.util.ConnectionFactory
m_log
 
Constructor Summary
JNDIConnectionFactory(javax.naming.Context initCtx, java.lang.String dataSourceName)
           
 
Method Summary
 java.sql.Connection connection()
           
 
Methods inherited from class org.edg.data.util.ConnectionFactory
getMaxColumnNameSize, getVendor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIConnectionFactory

public JNDIConnectionFactory(javax.naming.Context initCtx,
                             java.lang.String dataSourceName)
                      throws javax.naming.NamingException
Method Detail

connection

public java.sql.Connection connection()
                               throws java.sql.SQLException
Specified by:
connection in class ConnectionFactory
java.sql.SQLException