|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.avalon.excalibur.datasource.JdbcDataSource
The Default implementation for DataSources in Avalon. This uses the
normal java.sql.Connection
object and
java.sql.DriverManager
.
Field Summary | |
protected JdbcConnectionPool |
m_pool
|
Constructor Summary | |
JdbcDataSource()
|
Method Summary | |
void |
configure(Configuration configuration)
Configure and set up DB connection. |
void |
dispose()
Dispose properly of the pool |
java.sql.Connection |
getConnection()
Get the database connection |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JdbcConnectionPool m_pool
Constructor Detail |
public JdbcDataSource()
Method Detail |
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
conf
- The Configuration object needed to describe the
connection.ConfigurationException
- public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface DataSourceComponent
public void dispose()
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |