|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jdbc.datasource.SimpleConnectionHandle
public class SimpleConnectionHandle
Simple implementation of the ConnectionHandle interface,
containing a given JDBC Connection.
| Constructor Summary | |
|---|---|
SimpleConnectionHandle(Connection connection)
Create a new SimpleConnectionHandle for the given Connection. |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Return the specified Connection as-is. |
void |
releaseConnection(Connection con)
This implementation is empty, as we're using a standard Connection handle that does not have to be released. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleConnectionHandle(Connection connection)
connection - the JDBC Connection| Method Detail |
|---|
public Connection getConnection()
getConnection in interface ConnectionHandlepublic void releaseConnection(Connection con)
releaseConnection in interface ConnectionHandlecon - the JDBC Connection to releasepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||