public class SimpleConnectionHandle extends java.lang.Object implements ConnectionHandle
ConnectionHandle interface,
containing a given JDBC Connection.| Constructor and Description |
|---|
SimpleConnectionHandle(java.sql.Connection connection)
Create a new SimpleConnectionHandle for the given Connection.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public SimpleConnectionHandle(java.sql.Connection connection)
connection - the JDBC Connectionpublic java.sql.Connection getConnection()
getConnection in interface ConnectionHandlepublic void releaseConnection(java.sql.Connection con)
releaseConnection in interface ConnectionHandlecon - the JDBC Connection to releasepublic java.lang.String toString()
toString in class java.lang.Object