|
||||||||||
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.J2eeDataSource
The J2EE implementation for DataSources in Cocoon. This uses the
javax.sql.DataSource
object and assumes that the
J2EE container pools the datasources properly.
Field Summary | |
static java.lang.String |
JDBC_NAME
|
protected javax.sql.DataSource |
m_dataSource
|
Constructor Summary | |
J2eeDataSource()
|
Method Summary | |
void |
configure(Configuration configuration)
Configure and set up DB connection. |
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 |
public static final java.lang.String JDBC_NAME
protected javax.sql.DataSource m_dataSource
Constructor Detail |
public J2eeDataSource()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |