Class ResultSetUtil

java.lang.Object
org.hawaiiframework.repository.ResultSetUtil

public final class ResultSetUtil extends Object
Utility to extract null values from a result set.
  • Method Details

    • getInteger

      public static Integer getInteger(ResultSet resultSet, String columnLabel) throws SQLException
      Returns the Integer value.
      Parameters:
      resultSet - The result set.
      columnLabel - The column to retrieve.
      Returns:
      The integer value, or null.
      Throws:
      SQLException - in case of an error.
    • getLong

      public static Long getLong(ResultSet resultSet, String columnLabel) throws SQLException
      Returns the Long value.
      Parameters:
      resultSet - The result set.
      columnLabel - The column to retrieve.
      Returns:
      The integer value, or null.
      Throws:
      SQLException - in case of an error.
    • getDate

      public static Date getDate(ResultSet resultSet, String columnLabel) throws SQLException
      Returns the Date value.
      Parameters:
      resultSet - The result set.
      columnLabel - The column to retrieve.
      Returns:
      The integer value, or null.
      Throws:
      SQLException - in case of an error.