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

com.rgi.common.util.jdbc.ResultSetFunction Maven / Gradle / Ivy

The newest version!
package com.rgi.common.util.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author Luke Lambert
 *
 * @param  the type of the input to the operation
 */
@FunctionalInterface
public interface ResultSetFunction
{
    /**
     * The function that performs an operation on the given {@link ResultSet}
     * and returns the type of the input to the operation after operation is applied
     *
     * @param resultSet
     *      the {@link ResultSet} to perform the operations on
     * @return
     *      the type of the input to the operation after applying the operation
     * @throws SQLException
     *      throws if an SQLException occurs
     */
    public T apply(final ResultSet resultSet) throws SQLException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy