net.ontopia.persistence.proxy
Class JNDIConnectionFactory

java.lang.Object
  extended by net.ontopia.persistence.proxy.JNDIConnectionFactory
All Implemented Interfaces:
ConnectionFactoryIF

public class JNDIConnectionFactory
extends java.lang.Object
implements ConnectionFactoryIF

INTERNAL: Connection factory that retrieves javax.sql.DataSource from the JNDI environment given a JNDI name.


Field Summary
protected  java.lang.String jndiname
           
protected static java.lang.String propname
           
 
Constructor Summary
JNDIConnectionFactory(java.util.Map properties)
           
JNDIConnectionFactory(java.lang.String jndiname)
           
 
Method Summary
 void close()
          INTERNAL: Closes the connection factory.
 java.sql.Connection requestConnection()
          INTERNAL: Requests a new connection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propname

protected static final java.lang.String propname
See Also:
Constant Field Values

jndiname

protected java.lang.String jndiname
Constructor Detail

JNDIConnectionFactory

public JNDIConnectionFactory(java.lang.String jndiname)

JNDIConnectionFactory

public JNDIConnectionFactory(java.util.Map properties)
Method Detail

requestConnection

public java.sql.Connection requestConnection()
                                      throws java.sql.SQLException
Description copied from interface: ConnectionFactoryIF
INTERNAL: Requests a new connection object.

Specified by:
requestConnection in interface ConnectionFactoryIF
Throws:
java.sql.SQLException

close

public void close()
Description copied from interface: ConnectionFactoryIF
INTERNAL: Closes the connection factory.

Specified by:
close in interface ConnectionFactoryIF


Copyright © 2000-2012 Ontopia.