org.apache.commons.scaffold.sql
Class PoolmanAdaptor
java.lang.Object
org.apache.commons.scaffold.sql.ConnectionAdaptor
org.apache.commons.scaffold.sql.PoolmanAdaptor
public class PoolmanAdaptor
- extends ConnectionAdaptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoolmanAdaptor
public PoolmanAdaptor()
getDataSource
protected DataSource getDataSource(String key)
throws SQLException
- Description copied from class:
ConnectionAdaptor
- Return datasource using JNDI lookup. Subclasses may
override this method to provide other means of obtaining
a datasource reference.
- Overrides:
getDataSource
in class ConnectionAdaptor
- Parameters:
key
- The attribute name for the resource.
If null is passed, null is returned.
- Returns:
- null or the datasource object related to "key"
TODO: Add cache to store references to the datasources by key.
- Throws:
SQLException
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.