org.apache.avalon.excalibur.datasource
Class JdbcConnectionFactory
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.datasource.JdbcConnectionFactory
- All Implemented Interfaces:
- Component, LogEnabled, ObjectFactory
- public class JdbcConnectionFactory
- extends AbstractLogEnabled
- implements ObjectFactory
The Factory implementation for JdbcConnections.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.20 $ $Date: 2003/04/29 02:58:39 $
- Author:
- Berin Loritsch
Constructor Summary |
JdbcConnectionFactory(String url,
String username,
String password,
boolean autoCommit,
boolean oradb)
Deprecated. Use the new constructor with the keepalive and connectionClass
specified. |
JdbcConnectionFactory(String url,
String username,
String password,
boolean autoCommit,
boolean oradb,
String connectionClass)
Deprecated. Use the new constructor with the keepalive and connectionClass
specified. |
JdbcConnectionFactory(String url,
String username,
String password,
boolean autoCommit,
String keepAlive,
String connectionClass)
Creates and configures a new JdbcConnectionFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcConnectionFactory
public JdbcConnectionFactory(String url,
String username,
String password,
boolean autoCommit,
boolean oradb)
- Deprecated. Use the new constructor with the keepalive and connectionClass
specified.
JdbcConnectionFactory
public JdbcConnectionFactory(String url,
String username,
String password,
boolean autoCommit,
boolean oradb,
String connectionClass)
- Deprecated. Use the new constructor with the keepalive and connectionClass
specified.
JdbcConnectionFactory
public JdbcConnectionFactory(String url,
String username,
String password,
boolean autoCommit,
String keepAlive,
String connectionClass)
- Creates and configures a new JdbcConnectionFactory.
- Parameters:
url
- full JDBC database url.username
- username to use when connecting to the database.password
- password to use when connecting to the database.autoCommit
- true if connections to the database should operate with auto commit
enabled.keepAlive
- a query which will be used to check the statis of a connection after it
has been idle. A null value will cause the keep alive feature to
be disabled.connectionClass
- class of connections created by the factory.
newInstance
public Object newInstance()
throws Exception
- Specified by:
newInstance
in interface ObjectFactory
Exception
getCreatedClass
public Class getCreatedClass()
- Specified by:
getCreatedClass
in interface ObjectFactory
decommission
public void decommission(Object object)
throws Exception
- Specified by:
decommission
in interface ObjectFactory
Exception
Copyright © 2000-2003 Apache Avalon Project. All Rights Reserved.