Class ResultSetReader


  • public class ResultSetReader
    extends java.lang.Object
    Simplifies reading values from a ResultSet
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultSetReader​(java.sql.ResultSet rs)
      Canonical constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.math.BigDecimal getBigDecimal()
      Get a BigDecimal column value and increment the column index
      java.lang.Double getDouble()
      Get a Double column value and increment the column index
      java.lang.Integer getInt()
      Get an Integer column value and increment the column index
      java.lang.Long getLong()
      Get a Long column value and increment the column index
      java.lang.Short getShort()
      Get a Short column value and increment the column index
      java.lang.String getString()
      Get a string column value and increment the column index
      java.sql.Timestamp getTimestamp()
      Get a Timestamp column value and increment the column index
      boolean next()
      Invoke ResultSet.next()
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultSetReader

        public ResultSetReader​(java.sql.ResultSet rs)
        Canonical constructor
        Parameters:
        rs -
    • Method Detail

      • next

        public boolean next()
                     throws java.sql.SQLException
        Invoke ResultSet.next()
        Returns:
        true if the ResultSet has a row
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString()
                                   throws java.sql.SQLException
        Get a string column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException
      • getShort

        public java.lang.Short getShort()
                                 throws java.sql.SQLException
        Get a Short column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException
      • getInt

        public java.lang.Integer getInt()
                                 throws java.sql.SQLException
        Get an Integer column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException
      • getLong

        public java.lang.Long getLong()
                               throws java.sql.SQLException
        Get a Long column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException
      • getBigDecimal

        public java.math.BigDecimal getBigDecimal()
                                           throws java.sql.SQLException
        Get a BigDecimal column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException
      • getDouble

        public java.lang.Double getDouble()
                                   throws java.sql.SQLException
        Get a Double column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException
      • getTimestamp

        public java.sql.Timestamp getTimestamp()
                                        throws java.sql.SQLException
        Get a Timestamp column value and increment the column index
        Returns:
        Throws:
        java.sql.SQLException