Interface MemoryResultSet
- All Superinterfaces:
AutoCloseable,Closeable,Serializable
- All Known Implementing Classes:
MemoryResultSetImpl,WindowedMemoryResultSet
A
It is mainly used for an multiplexing event source that provides each registered sharing event source a subset of the complete result set.
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final longGenerated ID for serialisation. -
Method Summary
Modifier and TypeMethodDescriptionintGets the amount of columns of this memory result set.getColumnLabel(int column) Gets the label for the designated column.getColumnType(int column) Gets the data type for the designated column.intGets the amount of rows of this memory result set.getValues(int row) Gets the values for the designated rows.
-
Field Details
-
serialVersionUID
static final long serialVersionUIDGenerated 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
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
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
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 theProcessConstants.AdeptDataTypeof the corresponding column.nullrepresents a usualnull.- Parameters:
row- The row for which to get the values.- Returns:
- The values for the designated row.
The values will be coupled to thisMemoryResultSet, so do not close them; clone them if required longer than thisMemoryResultSet.
-