net.ontopia.persistence.proxy
Class AbstractConnectionFactory

java.lang.Object
  extended by net.ontopia.persistence.proxy.AbstractConnectionFactory
All Implemented Interfaces:
ConnectionFactoryIF
Direct Known Subclasses:
DBCPConnectionFactory, DefaultConnectionFactory

public abstract class AbstractConnectionFactory
extends java.lang.Object
implements ConnectionFactoryIF

INTERNAL: Abstract connection factory implementation that holds common connection properties. Used by a couple of other connection factory implementations.


Field Summary
protected  java.lang.String connstring
           
protected  java.lang.String driver
           
protected  java.lang.String password
           
protected  java.util.Map properties
           
protected  java.lang.String username
           
 
Constructor Summary
AbstractConnectionFactory(java.util.Map properties)
           
 
Method Summary
 void close()
          INTERNAL: Closes the connection factory.
protected  java.lang.String getConnectionString()
           
protected  java.lang.String getDriver()
           
protected  java.lang.String getPassword()
           
protected  java.lang.String getUserName()
           
abstract  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

properties

protected java.util.Map properties

connstring

protected java.lang.String connstring

driver

protected java.lang.String driver

username

protected java.lang.String username

password

protected java.lang.String password
Constructor Detail

AbstractConnectionFactory

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

requestConnection

public abstract 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

getConnectionString

protected java.lang.String getConnectionString()

getDriver

protected java.lang.String getDriver()

getUserName

protected java.lang.String getUserName()

getPassword

protected java.lang.String getPassword()


Copyright © 2000-2012 Ontopia.