Interface IItemResultSet
-
public interface IItemResultSetProvides a simple ResultSet abstraction for item queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,ColumnInfo>getColumnMetadata()Returns the column metadata for the result set.IItemQuerygetQuery()Returns the query used to create the result set.ObjectgetValue(int column)Returns the value for the specified column, at the current row.booleannext()Advances the cursor to the next row in the result set.
-
-
-
Method Detail
-
getQuery
IItemQuery getQuery()
Returns the query used to create the result set.- Returns:
- the query used to create the result set.
-
getValue
Object getValue(int column) throws ItemResultSetException
Returns the value for the specified column, at the current row.- Parameters:
column- the column for which to return the value.- Returns:
- value for the specified column, at the current row.
- Throws:
ItemResultSetException- if there was a problem reading the value, such as the cursor not being at a value, the column not existing etc.
-
getColumnMetadata
Map<String,ColumnInfo> getColumnMetadata()
Returns the column metadata for the result set. Useful for finding out what column an attribute or an aggregator is mapping to.- Returns:
- the column metadata.
-
next
boolean next()
Advances the cursor to the next row in the result set. Returns true if there is still more rows, and false if the end has been reached.- Returns:
- true if there is still more rows, and false if the end has been reached.
-
-