com.mkdoc.query
Interface QueryResult

All Known Implementing Classes:
NullQueryResult, StoreQueryResult

public interface QueryResult

The result of a query.

Version:
0.4 2005-11-21
Author:
Philip Shaw

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.
 java.lang.String getString(java.lang.String propertyName, int row)
          Get the string value of a result field.
 

Method Detail

getRows

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

Returns:
The number of rows in the result set.
Since:
Version 0.1 2005-07-12

getColumns

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

Returns:
The number of columns in the result set.
Since:
Version 0.1 2005-07-12

getItemUri

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

Parameters:
row - The row index.
Returns:
The item URI.
Since:
Version 0.2 2005-07-28

getItemTitle

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

Parameters:
row - The row index.
Returns:
The item title or a "No title..." statement.
Since:
Version 0.2 2005-07-28

getItemSummary

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

Parameters:
row - The row index.
Returns:
The item summary or a "No summary..." statement.
Since:
Version 0.2 2005-07-28

getString

public java.lang.String getString(java.lang.String propertyName,
                                  int row)
Get the string value of a result field.

Parameters:
propertyName - The name of the property to look-up.
row - The row index.
Returns:
The item in string format, or null if not present.
Since:
Version 0.4 2005-11-21