com.plumtree.portaluiinfrastructure.resultwrapper
Class ASQueryResultWrapper

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.resultwrapper.ASQueryResultWrapper
All Implemented Interfaces:
IASQueryResult

public class ASQueryResultWrapper
extends java.lang.Object
implements IASQueryResult

Author:
Michael Smedberg

Constructor Summary
ASQueryResultWrapper(IPTQueryResult ptResult)
          Creates a new ASQueryResultWrapper object.
 
Method Summary
static XPArrayList ConvertToArrayList(IASQueryResult asResult, int nPropID)
           
static XPArrayList ConvertToArrayList(IASQueryResult asResult, int[] anPropID)
           
 int GetCount()
          MES- GetCount should return the number of ROWS in the result set
 java.lang.Object GetFields(int nIndex, int nPropertyMask)
          MES- GetFields is used to get the value of a particular cell in the array.
 boolean IsComplete()
          MES- IsComplete returns a boolean indicating if the rows we can return are the complete rowset (i.e.
 void SetIsComplete(boolean bIsComplete)
          MES- SetIsComplete lets the code that sets us up decide if we have all the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASQueryResultWrapper

public ASQueryResultWrapper(IPTQueryResult ptResult)
Creates a new ASQueryResultWrapper object.

Parameters:
ptResult -
Throws:
XPException
Method Detail

ConvertToArrayList

public static XPArrayList ConvertToArrayList(IASQueryResult asResult,
                                             int nPropID)
Parameters:
asResult -
nPropID -
Returns:

ConvertToArrayList

public static XPArrayList ConvertToArrayList(IASQueryResult asResult,
                                             int[] anPropID)
Parameters:
asResult -
anPropID -
Returns:

GetCount

public int GetCount()
Description copied from interface: IASQueryResult
MES- GetCount should return the number of ROWS in the result set

Specified by:
GetCount in interface IASQueryResult
Returns:

GetFields

public java.lang.Object GetFields(int nIndex,
                                  int nPropertyMask)
Description copied from interface: IASQueryResult
MES- GetFields is used to get the value of a particular cell in the array.

Specified by:
GetFields in interface IASQueryResult
Parameters:
nIndex -
nPropertyMask -
Returns:

IsComplete

public boolean IsComplete()
MES- IsComplete returns a boolean indicating if the rows we can return are the complete rowset (i.e. have we truncated the rowset because it's too large to bring to the client.)

Specified by:
IsComplete in interface IASQueryResult
Returns:
A boolean indicating completeness.

SetIsComplete

public void SetIsComplete(boolean bIsComplete)
MES- SetIsComplete lets the code that sets us up decide if we have all the data. For example, if some code creates a QueryResult by doing a query that's constrained to a given number of rows, and the query returns that number of rows (and would therefore probably return more if more were asked for) the code should call SetIsComplete(false). The default value is true.

Parameters:
bIsComplete - indicates if the QueryResult we're wrapping is complete (i.e does it contain all rows that match the Query constraints, or has it been truncated?)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.