Interface MemoryResultSet

All Superinterfaces:
AutoCloseable, Closeable, Serializable
All Known Implementing Classes:
MemoryResultSetImpl, WindowedMemoryResultSet

public interface MemoryResultSet extends Serializable, Closeable
A MemoryResultSet resembles a ResultSet in a very simple way. It has columns and rows with values; columns have a label and a type. The values are provided per row and are of the Java equivalent of the corresponding ProcessConstants.AdeptDataType.
It is mainly used for an multiplexing event source that provides each registered sharing event source a subset of the complete result set.

Note that unlike a ResultSet, a MemoryResultSet is zero-based, that is, columns and rows start with 0!

  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      Generated ID for serialisation.
      See Also:
  • Method Details

    • getColumnCount

      int getColumnCount()
      Gets the amount of columns of this memory result set.
      Returns:
      The amount of columns of this memory result set.
    • getRowCount

      int getRowCount()
      Gets the amount of rows of this memory result set.
      Returns:
      The amount of rows of this memory result set.
    • getColumnLabel

      String getColumnLabel(int column)
      Gets the label for the designated column. The column has to be >= 0 and <getColumnCount().
      Parameters:
      column - The column for which to get the label.
      Returns:
      The label of the designated column.
    • getColumnType

      ProcessConstants.AdeptDataType getColumnType(int column)
      Gets the data type for the designated column. The column has to be >= 0 and <getColumnCount().
      Parameters:
      column - The column for which to get the data type.
      Returns:
      The data type of the designated column.
    • getValues

      Serializable[] getValues(int row)
      Gets the values for the designated rows. The row has to be >= 0 and < getRowCount(). The values in the array are of the Java-type corresponding to the ProcessConstants.AdeptDataType of the corresponding column. null represents a usual null.
      Parameters:
      row - The row for which to get the values.
      Returns:
      The values for the designated row.
      The values will be coupled to this MemoryResultSet, so do not close them; clone them if required longer than this MemoryResultSet.