org.apache.ojb.broker.accesslayer
Class ConnectionFactoryNotPooledImpl

java.lang.Object
  extended byorg.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl
      extended byorg.apache.ojb.broker.accesslayer.ConnectionFactoryNotPooledImpl
All Implemented Interfaces:
ConnectionFactory
Direct Known Subclasses:
ConnectionFactoryManagedImpl

public class ConnectionFactoryNotPooledImpl
extends ConnectionFactoryAbstractImpl

Base implementation without connection pooling.

Version:
$Id: ConnectionFactoryNotPooledImpl.java,v 1.5 2004/04/04 23:53:30 brianm Exp $
Author:
Armin Waibel

Constructor Summary
ConnectionFactoryNotPooledImpl()
           
 
Method Summary
 java.sql.Connection getConnectionFromPool(JdbcConnectionDescriptor jcd)
          Implement this method.
 void returnConnectionToPool(JdbcConnectionDescriptor jcd, java.sql.Connection con)
          Implement this method.
 
Methods inherited from class org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl
lookupConnection, releaseAllResources, releaseConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryNotPooledImpl

public ConnectionFactoryNotPooledImpl()
Method Detail

getConnectionFromPool

public java.sql.Connection getConnectionFromPool(JdbcConnectionDescriptor jcd)
                                          throws LookupException
Description copied from class: ConnectionFactoryAbstractImpl
Implement this method. This method was called to obtain a jdbc-connection from the pool.
Note: This method was not called, if jdbc-connection-descriptor use datasources - OJB only pool connections from DriverManager.

Specified by:
getConnectionFromPool in class ConnectionFactoryAbstractImpl
Throws:
LookupException

returnConnectionToPool

public void returnConnectionToPool(JdbcConnectionDescriptor jcd,
                                   java.sql.Connection con)
                            throws LookupException
Description copied from class: ConnectionFactoryAbstractImpl
Implement this method. Was called to return a connection to pool.
Note: This method was not called, if the jdbc-connection-descriptor uses datasources - OJB only pool connections from DriverManager.

Specified by:
returnConnectionToPool in class ConnectionFactoryAbstractImpl
Throws:
LookupException


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2