|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ConnectionMethod Detail |
---|
public Connection getConnection()
getConnection
in interface ConnectionHandle
public void releaseConnection(Connection con)
releaseConnection
in interface ConnectionHandle
con
- 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 |