Class SimpleConnectionHandle

  • All Implemented Interfaces:
    ConnectionHandle

    public class SimpleConnectionHandle
    extends java.lang.Object
    implements ConnectionHandle
    Simple implementation of the ConnectionHandle 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.
    • Constructor Detail

      • SimpleConnectionHandle

        public SimpleConnectionHandle​(java.sql.Connection connection)
        Create a new SimpleConnectionHandle for the given Connection.
        Parameters:
        connection - the JDBC Connection
    • Method Detail

      • getConnection

        public java.sql.Connection getConnection()
        Return the specified Connection as-is.
        Specified by:
        getConnection in interface ConnectionHandle
        Returns:
        Fetch the JDBC Connection that this handle refers to.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object