|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.db.JNDIConnectionSource
public class JNDIConnectionSource
Connection source for getting DB connections from JNDI sources.
| Constructor Summary | |
|---|---|
JNDIConnectionSource()
Get an instance of JNDIConnectionSource. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection(SpyConfig conf)
This will get a connection to the JNDI resource. |
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 JNDIConnectionSource()
| Method Detail |
|---|
public java.sql.Connection getConnection(SpyConfig conf)
throws java.sql.SQLException
InitialContext after
being converted to a Hashtable object. Note: It will not
be cast to Hashtable, but instead a new Hashtable instance will be
created with those parameters. This allows you to get connections
from a JNDI context that doesn't know about SpyConfig.
getConnection in interface ConnectionSourceconf - The configuration to use for getting the database
source
java.sql.SQLExceptionConnectionSourcepublic 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 | |||||||||