<A> AbstractFunction1<Connection, A> connectionFunction(final ConnectionCallable<A> block) {
    return new AbstractFunction1<Connection, A>() {
      public A apply(Connection connection) {
        try {
          return block.call(connection);
        } catch (java.sql.SQLException e) {
          throw new RuntimeException("Connection callable failed", e);
        }
      }
    };
  }
<A> AbstractFunction1<Connection, A> connectionFunction(final ConnectionCallable<A> block) {
    return new AbstractFunction1<Connection, A>() {
      public A apply(Connection connection) {
        try {
          return block.call(connection);
        } catch (java.sql.SQLException e) {
          throw new RuntimeException("Connection callable failed", e);
        }
      }
    };
  }
< A > AbstractFunction1 < Connection , A > connectionFunction ( final ConnectionCallable < A > block ) { return new AbstractFunction1 < Connection , A > ( ) { public A apply ( Connection connection ) { try { return block . call ( connection ) ; } catch ( java . sql . SQLException e ) { throw new RuntimeException ( "Connection callable failed" , e ) ; } } } ; }
Create a Scala function wrapper for ConnectionCallable.

@param block a Java functional interface instance to wrap
@param <A> the provided block's return type
@return a scala function wrapping the given block
Create a Scala function wrapper for ConnectionCallable .