Class RSet

  • All Implemented Interfaces:
    IResultSet

    public class RSet
    extends java.lang.Object
    implements IResultSet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _rcsid  
      protected java.util.List<IResultRow> rows  
    • Constructor Summary

      Constructors 
      Constructor Description
      RSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRow​(IResultRow m)
      Add a row of data to the resultset.
      IResultRow getRow​(int rowNumber)
      Get a specific row in the resultset.
      int getRowCount()
      Get the number of rows in this resultset.
      IResultRow[] getRows()
      Get an array of all the rows.
      • Methods inherited from class java.lang.Object

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

      • RSet

        public RSet()
    • Method Detail

      • addRow

        public void addRow​(IResultRow m)
        Add a row of data to the resultset.
      • getRow

        public IResultRow getRow​(int rowNumber)
        Get a specific row in the resultset.
        Specified by:
        getRow in interface IResultSet
        Parameters:
        rowNumber - is the number of the row.
        Returns:
        the immutable row description, or null if there is no such row.
      • getRowCount

        public int getRowCount()
        Get the number of rows in this resultset.
        Specified by:
        getRowCount in interface IResultSet
        Returns:
        the number of rows the resultset contains.
      • getRows

        public IResultRow[] getRows()
        Get an array of all the rows. This method is NOT preferred because it requires a new array object to be constructed.
        Specified by:
        getRows in interface IResultSet
        Returns:
        the array.