|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.scaffold.sql.ConnectionAdaptor
org.apache.commons.scaffold.sql.MockAdaptor
| Field Summary |
| Fields inherited from class org.apache.commons.scaffold.sql.ConnectionAdaptor |
DATA_SOURCE_KEY, datasource, JNDI_CONTEXT_KEY, pool |
| Constructor Summary | |
MockAdaptor()
|
|
| Method Summary | |
protected javax.sql.DataSource |
getDataSource(java.lang.String key)
Return datasource using JNDI lookup. |
void |
setupDataSource(javax.sql.DataSource datasource)
Set internal datasource field. |
| Methods inherited from class org.apache.commons.scaffold.sql.ConnectionAdaptor |
getConnection, getConnection, getKey, getMessage, getPool, setKey, setMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MockAdaptor()
| Method Detail |
protected javax.sql.DataSource getDataSource(java.lang.String key)
throws java.sql.SQLException
ConnectionAdaptor
getDataSource in class ConnectionAdaptorkey - The attribute name for the resource.
If null is passed, null is returned.
java.sql.SQLExceptionpublic void setupDataSource(javax.sql.DataSource datasource)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||