|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.db.ObjectPoolConnectionSource
public class ObjectPoolConnectionSource
Connection source to retrieve connections from an ObjectPool. The configuration passed into getConnection() requires the following parameters:
| Constructor Summary | |
|---|---|
ObjectPoolConnectionSource()
Get an instance of SpyPoolConnectionSource. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection(SpyConfig conf)
Get a new connection. |
void |
returnConnection(java.sql.Connection conn)
Return a connection. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectPoolConnectionSource()
| Method Detail |
|---|
public java.sql.Connection getConnection(SpyConfig conf)
throws java.sql.SQLException
ConnectionSource
getConnection in interface ConnectionSourceconf - a SpyConfig describing the connection that needs to be
fetched.
java.sql.SQLException - if a connection could not be obtainedConnectionSourcepublic void returnConnection(java.sql.Connection conn)
ConnectionSource
returnConnection in interface ConnectionSourceConnectionSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||