Class RRow

  • All Implemented Interfaces:
    IResultRow

    public class RRow
    extends java.lang.Object
    implements IResultRow
    This class represents a result row.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _rcsid  
      protected java.util.Map<java.lang.String,​java.lang.Object> rowData  
    • Constructor Summary

      Constructors 
      Constructor Description
      RRow()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnCount()
      Obtain the number of columns in the row.
      java.util.Iterator<java.lang.String> getColumns()
      Obtain the set of columns for a row.
      java.lang.Object getValue​(java.lang.String columnName)
      Get the row value for a column.
      void put​(java.lang.String name, java.lang.Object value)  
      • Methods inherited from class java.lang.Object

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

      • rowData

        protected java.util.Map<java.lang.String,​java.lang.Object> rowData
    • Constructor Detail

      • RRow

        public RRow()
    • Method Detail

      • put

        public void put​(java.lang.String name,
                        java.lang.Object value)
      • getColumnCount

        public int getColumnCount()
        Obtain the number of columns in the row.
        Specified by:
        getColumnCount in interface IResultRow
        Returns:
        the number of columns that row contains.
      • getColumns

        public java.util.Iterator<java.lang.String> getColumns()
        Obtain the set of columns for a row.
        Specified by:
        getColumns in interface IResultRow
        Returns:
        an iterator that will list all the (String) column names stored in that row.
      • getValue

        public java.lang.Object getValue​(java.lang.String columnName)
        Get the row value for a column.
        Specified by:
        getValue in interface IResultRow
        Parameters:
        columnName - is the name of the column.
        Returns:
        the value, or null if not present.