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

org.itsallcode.jdbc.dialect.ColumnValueExtractor Maven / Gradle / Ivy

There is a newer version: 0.7.1
Show newest version
package org.itsallcode.jdbc.dialect;

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

/**
 * Extracts a column value from a {@link ResultSet}.
 */
@FunctionalInterface
public interface ColumnValueExtractor {
    /**
     * Extracts a column value from a {@link ResultSet}.
     * 
     * @param resultSet   the result set
     * @param columnIndex column index (1 based)
     * @return the column value
     * @throws SQLException if reading the result set fails
     */
    Object getObject(ResultSet resultSet, int columnIndex) throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy