Class DbRelease

    • Method Detail

      • autoClose

        public static <T extends AutoCloseable,​R> JdbcFunction<T,​R> autoClose​(JdbcFunction<T,​R> surroundedFunction)
        Surrounds surroundedFunction to surrounding closing block for object of AutoCloseable.
        Type Parameters:
        T - The fed object must be type of AutoCloseable
        R - The type of returned object
        Parameters:
        surroundedFunction - The function to be surrounded
        Returns:
        The function making AutoCloseable to be closed after the surrounded function is completed.
        See Also:
        autoClose(JdbcFunction)