net.ontopia.persistence.proxy
Class DefaultConnectionFactory

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

public class DefaultConnectionFactory
extends AbstractConnectionFactory

INTERNAL: Connection factory that uses java.sql.DriverManager.getConnection(...). This connection factory does no connection pooling on its own, but one might achieve it if the JDBC driver itself supports it.


Field Summary
protected  boolean readOnly
           
 
Fields inherited from class net.ontopia.persistence.proxy.AbstractConnectionFactory
connstring, driver, password, properties, username
 
Constructor Summary
DefaultConnectionFactory(java.util.Map properties, boolean readOnly)
           
 
Method Summary
 java.sql.Connection requestConnection()
          INTERNAL: Requests a new connection object.
 
Methods inherited from class net.ontopia.persistence.proxy.AbstractConnectionFactory
close, getConnectionString, getDriver, getPassword, getUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readOnly

protected boolean readOnly
Constructor Detail

DefaultConnectionFactory

public DefaultConnectionFactory(java.util.Map properties,
                                boolean readOnly)
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
Specified by:
requestConnection in class AbstractConnectionFactory
Throws:
java.sql.SQLException


Copyright © 2000-2012 Ontopia.