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

connstring

protected String connstring

driver

protected String driver

username

protected String username

password

protected String password
Constructor Detail

AbstractConnectionFactory

public AbstractConnectionFactory(Map properties)
Method Detail

requestConnection

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

Specified by:
requestConnection in interface ConnectionFactoryIF
Throws:
SQLException

close

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

Specified by:
close in interface ConnectionFactoryIF

getConnectionString

protected String getConnectionString()

getDriver

protected String getDriver()

getUserName

protected String getUserName()

getPassword

protected String getPassword()


Copyright © 2000-2012 Ontopia.