com.spss.psapi.data

Interface RowSet



  • public interface RowSet
    This defines the properties of a tabular dataset.
    Since:
    PSAPI 1.0
    Version:
    1.0
    Author:
    Rob Duncan, Julian Clinton
    Specification Status:
    Under Development
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Class getColumnClass(int columnIndex)
      Returns the class of objects in a specified column of this dataset.
      int getColumnCount()
      Returns the number of columns in this dataset.
      java.lang.String getColumnName(int columnIndex)
      Returns the name of a specified column in this dataset.
      int getRowCount()
      Returns the number of rows in this dataset.
      java.lang.Object getValueAt(int rowIndex, int columnIndex)
      Returns the value from a specified row and column in this dataset.
    • Method Detail

      • getRowCount

        int getRowCount()
        Returns the number of rows in this dataset.
        Returns:
        the number of rows in this dataset
      • getColumnCount

        int getColumnCount()
        Returns the number of columns in this dataset.
        Returns:
        the number of columns in this dataset
      • getColumnName

        java.lang.String getColumnName(int columnIndex)
        Returns the name of a specified column in this dataset. Returns the empty string if the column does not have a name. The column index must be in the range:
        0 <= index < getColumnCount()
        Parameters:
        columnIndex - the column index
        Throws:
        java.lang.IndexOutOfBoundsException - unless the column index is in range
      • getColumnClass

        java.lang.Class getColumnClass(int columnIndex)
        Returns the class of objects in a specified column of this dataset. The column index must be in the range:
        0 <= index < getColumnCount()
        Parameters:
        columnIndex - the column index
        Throws:
        java.lang.IndexOutOfBoundsException - unless the column index is in range
      • getValueAt

        java.lang.Object getValueAt(int rowIndex,
                                  int columnIndex)
        Returns the value from a specified row and column in this dataset. The row and column indexes must be in the range:
        0 <= rowIndex < getRowCount() && 0 <= columnIndex < getColumnCount()
        The returned value will either be null or an instance of the class returned by getColumnClass for the same column index.
        Parameters:
        rowIndex - the row index
        columnIndex - the column index
        Throws:
        java.lang.IndexOutOfBoundsException - unless the row and column indexes are in range

Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.