com.mkdoc.query
Class NullQueryResult

java.lang.Object
  |
  +--com.mkdoc.query.NullQueryResult
All Implemented Interfaces:
QueryResult

public final class NullQueryResult
extends java.lang.Object
implements QueryResult

Represent a query result that has no results.

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

Constructor Summary
NullQueryResult()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullQueryResult

public NullQueryResult()
Method Detail

getRows

public 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 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 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 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 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

getString

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

Specified by:
getString in interface QueryResult
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