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