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

ru.spb.devclub.utils.db.OptionalRowMapper Maven / Gradle / Ivy

package ru.spb.devclub.utils.db;

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

/**
 * Extends {@link ru.spb.devclub.utils.db.ExtendedRowMapper} interface,
 * uses {@link ru.spb.devclub.utils.db.OptionalResultSet}.
 *
 * @author Grig Alex
 * @version 0.1.0
 * @see ru.spb.devclub.utils.db.ExtendedRowMapper
 * @see ru.spb.devclub.utils.db.OptionalResultSet
 * @since 0.1.0
 */
public interface OptionalRowMapper extends ExtendedRowMapper {
    @Override
    default T mapRow(ResultSet resultSet, int i) throws SQLException {
        return mapRow(ResultSetUtils.optional(resultSet), i);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy