ru.spb.devclub.utils.db.OptionalResultSet Maven / Gradle / Ivy
package ru.spb.devclub.utils.db;
import java.math.BigDecimal;
import java.sql.*;
import java.util.Optional;
/**
* Extends {@link ru.spb.devclub.utils.db.BoxedResultSet} interface, adds {@link java.util.Optional} usage methods.
*
* @author Grig Alex
* @version 0.1.0
* @see ru.spb.devclub.utils.db.BoxedResultSet
* @see java.util.Optional
* @since 0.1.0
*/
public interface OptionalResultSet extends BoxedResultSet {
Optional getOptionalString(int columnIndex) throws SQLException;
Optional getOptionalString(String columnName) throws SQLException;
Optional getOptionalBoolean(int columnIndex) throws SQLException;
Optional getOptionalBoolean(String columnName) throws SQLException;
Optional getOptionalByte(int columnIndex) throws SQLException;
Optional getOptionalByte(String columnName) throws SQLException;
Optional getOptionalShort(int columnIndex) throws SQLException;
Optional getOptionalShort(String columnName) throws SQLException;
Optional getOptionalInt(int columnIndex) throws SQLException;
Optional getOptionalInt(String columnName) throws SQLException;
Optional getOptionalLong(int columnIndex) throws SQLException;
Optional getOptionalLong(String columnName) throws SQLException;
Optional getOptionalFloat(int columnIndex) throws SQLException;
Optional getOptionalFloat(String columnName) throws SQLException;
Optional getOptionalDouble(int columnIndex) throws SQLException;
Optional getOptionalDouble(String columnName) throws SQLException;
Optional getOptionalBytes(int columnIndex) throws SQLException;
Optional getOptionalBytes(String columnName) throws SQLException;
Optional getOptionalDate(int columnIndex) throws SQLException;
Optional getOptionalDate(String columnName) throws SQLException;
Optional