org.apache.ojb.broker.accesslayer
Class ConnectionFactoryManagedImpl

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

public class ConnectionFactoryManagedImpl
extends ConnectionFactoryNotPooledImpl

ConnectionFactory for use in managed environments - e.g. jboss.

Version:
$Id: ConnectionFactoryManagedImpl.java,v 1.1 2002/11/28 22:25:53 arminw Exp $
Author:
Armin Waibel

Constructor Summary
ConnectionFactoryManagedImpl()
           
 
Method Summary
 java.sql.Connection lookupConnection(JdbcConnectionDescriptor jcd)
          Lookup a connection from the connection factory implementation.
protected  java.sql.Connection newConnectionFromDriverManager(JdbcConnectionDescriptor jcd)
          Returns a new created connection
 
Methods inherited from class org.apache.ojb.broker.accesslayer.ConnectionFactoryNotPooledImpl
getConnectionFromPool, returnConnectionToPool
 
Methods inherited from class org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl
getDbURL, initializeJdbcConnection, newConnectionFromDataSource, releaseAllResources, releaseConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryManagedImpl

public ConnectionFactoryManagedImpl()
Method Detail

lookupConnection

public java.sql.Connection lookupConnection(JdbcConnectionDescriptor jcd)
                                     throws LookupException
Description copied from interface: ConnectionFactory
Lookup a connection from the connection factory implementation.

Specified by:
lookupConnection in interface ConnectionFactory
Overrides:
lookupConnection in class ConnectionFactoryAbstractImpl
Throws:
LookupException

newConnectionFromDriverManager

protected java.sql.Connection newConnectionFromDriverManager(JdbcConnectionDescriptor jcd)
                                                      throws LookupException
Description copied from class: ConnectionFactoryAbstractImpl
Returns a new created connection

Overrides:
newConnectionFromDriverManager in class ConnectionFactoryAbstractImpl
Parameters:
jcd - the connection descriptor
Returns:
an instance of Connection from the drivermanager
Throws:
LookupException


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14