Compoze Software, Inc.

com.compoze.exchange.webdav
Class ResultSet


java.lang.Object

  |

  +--com.compoze.exchange.webdav.ResultSet


public class ResultSet
extends java.lang.Object

This class represents the results returned from performing a SEARCH request against the Exchange store. A ResultSet object encapsulates the sub-responses of a Multi-Status (207) WebDAV response, where each sub-response is represented as a row. Using the next method moves the current position in the resultset to the next row. The ResultSet class provides getter methods (getBoolean, getInteger and so on) for retrieving property values from the current row. Values can be retrieved by using the name of the property (DAV:href, DAV:contentclass, and so on) or an index (the first column is 1, the second column is 2).


Method Summary
 boolean getBoolean(int iColumnIndex)
          Gets the value of the specified property in the current row as a boolean.
 boolean getBoolean(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a boolean.
 byte getByte(int iColumnIndex)
          Gets the value of the specified property in the current row as a byte.
 byte getByte(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a byte.
 java.util.Date getDate(int iColumnIndex)
          Gets the value of the specified property in the current row as a Date.
 java.util.Date getDate(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a Date.
 double getDouble(int iColumnIndex)
          Gets the value of the specified property in the current row as a double.
 double getDouble(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a double.
 float getFloat(int iColumnIndex)
          Gets the value of the specified property in the current row as a float.
 float getFloat(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a float.
 int getInteger(int iColumnIndex)
          Gets the value of the specified property in the current row as an int.
 int getInteger(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as an int.
 long getLong(int iColumnIndex)
          Gets the value of the specified property in the current row as a long.
 long getLong(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a long.
 java.lang.String[] getMultiValueString(int iColumnIndex)
          Gets the value of the specified property in the current row as a multi-value string (String array).
 java.lang.String[] getMultiValueString(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a multi-value string (String array).
 java.lang.Object getObject(int iColumnIndex)
          Gets the value of the specified property in the current row.
 java.lang.Object getObject(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row.
 short getShort(int iColumnIndex)
          Gets the value of the specified property in the current row as a short.
 short getShort(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a short.
 int getSize()
          Gets the number of rows in this ResultSet object.
 java.lang.String getString(int iColumnIndex)
          Gets the value of the specified property in the current row as a boolean.
 java.lang.String getString(java.lang.String sPropertyName)
          Gets the value of the specified property in the current row as a boolean.
 boolean next()
          Advances to the next row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSize


public int getSize()
Gets the number of rows in this ResultSet object.
Returns:
the number of rows

getBoolean


public boolean getBoolean(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a boolean.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is false

getBoolean


public boolean getBoolean(int iColumnIndex)
Gets the value of the specified property in the current row as a boolean.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is false

getDate


public java.util.Date getDate(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a Date.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is null

getDate


public java.util.Date getDate(int iColumnIndex)
Gets the value of the specified property in the current row as a Date.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is null

getDouble


public double getDouble(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a double.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is 0

getDouble


public double getDouble(int iColumnIndex)
Gets the value of the specified property in the current row as a double.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is 0

getFloat


public float getFloat(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a float.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is 0

getFloat


public float getFloat(int iColumnIndex)
Gets the value of the specified property in the current row as a float.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is 0

getInteger


public int getInteger(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as an int.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is 0

getInteger


public int getInteger(int iColumnIndex)
Gets the value of the specified property in the current row as an int.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is 0

getLong


public long getLong(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a long.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is 0

getLong


public long getLong(int iColumnIndex)
Gets the value of the specified property in the current row as a long.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is 0

getShort


public short getShort(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a short.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is 0

getShort


public short getShort(int iColumnIndex)
Gets the value of the specified property in the current row as a short.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is 0

getByte


public byte getByte(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a byte.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is 0

getByte


public byte getByte(int iColumnIndex)
Gets the value of the specified property in the current row as a byte.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is 0

getString


public java.lang.String getString(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a boolean.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is null

getString


public java.lang.String getString(int iColumnIndex)
Gets the value of the specified property in the current row as a boolean.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is null

getMultiValueString


public java.lang.String[] getMultiValueString(java.lang.String sPropertyName)
Gets the value of the specified property in the current row as a multi-value string (String array).
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is null

getMultiValueString


public java.lang.String[] getMultiValueString(int iColumnIndex)
Gets the value of the specified property in the current row as a multi-value string (String array).
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is null

getObject


public java.lang.Object getObject(java.lang.String sPropertyName)
Gets the value of the specified property in the current row.
Parameters:
sPropertyName - the property name (must not be null)
Returns:
the property value; if value is null, the value returned is null

getObject


public java.lang.Object getObject(int iColumnIndex)
Gets the value of the specified property in the current row.
Parameters:
iColumnIndex - the index of the property (must be >= 1)
Returns:
the property value; if value is null, the value returned is null

next


public boolean next()
Advances to the next row.
Returns:
true if advanced to next row; false otherwise

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.