Package io.micronaut.transaction.jdbc
Class SimpleConnectionHandle
- java.lang.Object
-
- io.micronaut.transaction.jdbc.SimpleConnectionHandle
-
- All Implemented Interfaces:
ConnectionHandle
public class SimpleConnectionHandle extends java.lang.Object implements ConnectionHandle
Simple implementation of theConnectionHandle
interface, containing a given JDBC Connection.- Since:
- 1.1
- Author:
- Juergen Hoeller
-
-
Constructor Summary
Constructors Constructor Description SimpleConnectionHandle(java.sql.Connection connection)
Create a new SimpleConnectionHandle for the given Connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
getConnection()
Return the specified Connection as-is.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.micronaut.transaction.jdbc.ConnectionHandle
releaseConnection
-
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection()
Return the specified Connection as-is.- Specified by:
getConnection
in interfaceConnectionHandle
- Returns:
- Fetch the JDBC Connection that this handle refers to.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-