com.mkdoc.store
Class StoreQueryResult

java.lang.Object
  |
  +--com.mkdoc.store.StoreQueryResult
All Implemented Interfaces:
QueryResult

public class StoreQueryResult
extends java.lang.Object
implements QueryResult

A store query result.

A thin wrapper around a Sesame QueryResultsTable. The result rows use a zero based index.

Version:
0.3 2005-10-26
Author:
Philip Shaw

Constructor Summary
StoreQueryResult(org.openrdf.sesame.query.QueryResultsTable resultsTable)
          Adapt a Sesame query results table.
 
Method Summary
 int getColumns()
          Get the number of columns in the result set.
 java.lang.String getItemSummary(int row)
          Get the item summary for a row.
 java.lang.String getItemTitle(int row)
          Get the item title for a row.
 java.lang.String getItemUri(int row)
          Get the item URI for a row.
 int getRows()
          Get the number of rows in the result set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreQueryResult

public StoreQueryResult(org.openrdf.sesame.query.QueryResultsTable resultsTable)
Adapt a Sesame query results table.

Parameters:
resultsTable - A Sesame query results table to adapt.
Since:
Version 0.1 2005-07-14
Method Detail

getRows

public final int getRows()
Get the number of rows in the result set.

Specified by:
getRows in interface QueryResult
Returns:
The number of rows in the result set.
Since:
Version 0.1 2005-07-14

getColumns

public final int getColumns()
Get the number of columns in the result set.

Specified by:
getColumns in interface QueryResult
Returns:
The number of columns in the result set.
Since:
Version 0.1 2005-07-14

getItemUri

public final java.lang.String getItemUri(int row)
Get the item URI for a row.

Specified by:
getItemUri in interface QueryResult
Parameters:
row - The row index.
Returns:
The item URI.
Since:
Version 0.2 2005-07-28

getItemTitle

public final java.lang.String getItemTitle(int row)
Get the item title for a row.

Specified by:
getItemTitle in interface QueryResult
Parameters:
row - The row index.
Returns:
The item title or a "No title..." statement.
Since:
Version 0.2 2005-07-28

getItemSummary

public final java.lang.String getItemSummary(int row)
Get the item summary for a row.

Specified by:
getItemSummary in interface QueryResult
Parameters:
row - The row index.
Returns:
The item summary or a "No summary..." statement.
Since:
Version 0.2 2005-07-28