All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jarbframework.utils.JdbcConnectionCallback Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
package org.jarbframework.utils;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * Callback interface invoked for the JDBC connection.
 *
 * @author Jeroen van Schagen
 * @date Sep 8, 2011
 *
 * @param  type of operation result
 */
public interface JdbcConnectionCallback {

    /**
     * Perform operation(s) on a new JDBC connection.
     * @param connection the JDBC connection made available
     * @return result of the operation
     * @throws SQLException whenever an SQL error occurs
     */
    T doWork(Connection connection) throws SQLException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy