Package net.ontopia.persistence.proxy
Interface QueryResultIF
- All Known Implementing Classes:
RDBMSQueryResult
public interface QueryResultIF
INTERNAL: Interface for representing two-dimensional (or
potentially even N-dimensional) query results.
Note: it is a goal that this interface is aligned with net.ontopia.topicmaps.query.core.QueryResultIF.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Closes the query result, which allows it to free its resources.getColumnName(int ix) PUBLIC: Returns the name of the given column.String[]PUBLIC: Returns the names of the columns.getValue(int index) INTERNAL: Get the value of the field with the specified index from the current result row.Object[]INTERNAL: Get the values of all fields from the current result row.Object[]INTERNAL: Reads the values of all fields from the current result row into the specified array.intgetWidth()INTERNAL: Returns the number of fields that each row in the query result set have.booleannext()INTERNAL: Skip to the next row in the query result set.
-
Method Details
-
next
boolean next()INTERNAL: Skip to the next row in the query result set. The method returns false if the skip was not valid, i.e. we're at the end of the result set. -
getWidth
int getWidth()INTERNAL: Returns the number of fields that each row in the query result set have. -
getColumnNames
String[] getColumnNames()PUBLIC: Returns the names of the columns. -
getColumnName
PUBLIC: Returns the name of the given column. The column index is zero-based.- Throws:
IndexOutOfBoundsException- if there is no such column.
-
getValue
INTERNAL: Get the value of the field with the specified index from the current result row. The index is zero-based. -
getValues
Object[] getValues()INTERNAL: Get the values of all fields from the current result row. -
getValues
INTERNAL: Reads the values of all fields from the current result row into the specified array. -
close
void close()INTERNAL: Closes the query result, which allows it to free its resources.
-