|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.excalibur.datasource.JdbcConnectionFactory
The Factory implementation for JdbcConnections.
Constructor Summary | |
JdbcConnectionFactory(java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
boolean oradb)
Deprecated. Use the new constructor with the keepalive and connectionClass specified. |
|
JdbcConnectionFactory(java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
boolean oradb,
java.lang.String connectionClass)
Deprecated. Use the new constructor with the keepalive and connectionClass specified. |
|
JdbcConnectionFactory(java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
java.lang.String keepAlive,
int keepAliveAge,
java.lang.String connectionClass)
Creates and configures a new JdbcConnectionFactory. |
|
JdbcConnectionFactory(java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
java.lang.String keepAlive,
java.lang.String connectionClass)
Creates and configures a new JdbcConnectionFactory. |
Method Summary | |
void |
decommission(java.lang.Object object)
|
java.lang.Class |
getCreatedClass()
|
java.lang.Object |
newInstance()
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, boolean oradb)
public JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, boolean oradb, java.lang.String connectionClass)
public JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, java.lang.String keepAlive, java.lang.String connectionClass)
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.public JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, java.lang.String keepAlive, int keepAliveAge, java.lang.String connectionClass)
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.keepAliveAge
- the maximum age in milliseconds since a connection was last
used before it must be pinged using the keepAlive query. Ignored
if keepAlive is null.connectionClass
- class of connections created by the factory.Method Detail |
public java.lang.Object newInstance() throws java.lang.Exception
newInstance
in interface ObjectFactory
java.lang.Exception
public java.lang.Class getCreatedClass()
getCreatedClass
in interface ObjectFactory
public void decommission(java.lang.Object object) throws java.lang.Exception
decommission
in interface ObjectFactory
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |