Interface IItemResultSet
-
- All Known Implementing Classes:
DefaultIItemResultSet
public interface IItemResultSet
Provides a simple ResultSet abstraction for item queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,ColumnInfo>
getColumnMetadata()
Returns the column metadata for the result set.IItemQuery
getQuery()
Returns the query used to create the result set.java.lang.Object
getValue(int column)
Returns the value for the specified column, at the current row.boolean
next()
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
java.lang.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
java.util.Map<java.lang.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.
-
-