|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.arraywrapper.PTSortedArrayWrapper com.plumtree.portaluiinfrastructure.resultwrapper.APTQueryWrapper
public class APTQueryWrapper
PTObjectManagerQueryWrapper: The PTObjectManagerQueryWrapper class wraps the IPTTurboQueryResult Server object that's returned by the various Query methods of IPTObjectManager. This wrapper handles the details of retrieving a subset of the data, sorting on the client when necessary, etc.
Field Summary | |
---|---|
protected int |
m_iMaxRows
MES- The maximum number of rows we'll return |
protected int |
m_iMode
MES- Our mode- we have to treat large result sets special. |
static int |
PTTQRW_DEFAULT_MAX_ROWS
MES- By default, we only show the first 1000 rows. |
static int |
PTTQRW_MODE_CLIENT
MES- In this mode, all the data is on the client, we can sort on the client. |
static int |
PTTQRW_MODE_TRUNCATED
MES- In this mode, the data we hold is truncated, we have to go to the Server for sorts. |
Fields inherited from class com.plumtree.uiinfrastructure.arraywrapper.PTSortedArrayWrapper |
---|
m_arrData, m_arrSort, m_bSortOptimized, m_hashPropIDtoColumn, m_lstRowMapping, PTSAW_NEWITEMSINFO_INDEX, PTSAW_NEWITEMSINFO_NEWVALUE, PTSAW_NEWITEMSINFO_PROPERTYID, PTSAW_SORT_ASCENDING, PTSAW_SORT_DESCENDING, PTSAW_SORT_ROW_DIRECTION, PTSAW_SORT_ROW_PROPID |
Constructor Summary | |
---|---|
APTQueryWrapper()
|
Method Summary | |
---|---|
java.lang.Object |
GetFields(int iRow,
int iPropID)
MES- GetFields emulates the IPTQueryResult call of the same name. |
boolean |
IsComplete()
MES- IsComplete returns a boolean indicating if the rows we can return are the complete rowset (i.e. |
int |
MaxRows()
MES- MaxRows returns the maximum number of rows an instance may contain before entering PTTQRW_MODE_TRUNCATED mode. |
void |
SetMaxRows(int iMaxRows)
MES- SetMaxRows allows clients to set the maximum number of rows that this wrapper will hold before entering PTTQRW_MODE_TRUNCATED mode. |
Methods inherited from class com.plumtree.uiinfrastructure.arraywrapper.PTSortedArrayWrapper |
---|
ContainsPropID, GetCount, GetItem, GetSort, Initialize, MapColumnIDs, SetItem, SetItems, Sort, SortInternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.portaluiinfrastructure.resultwrapper.IASQueryResult |
---|
GetCount |
Field Detail |
---|
public static final int PTTQRW_DEFAULT_MAX_ROWS
public static final int PTTQRW_MODE_CLIENT
public static final int PTTQRW_MODE_TRUNCATED
protected int m_iMaxRows
protected int m_iMode
Constructor Detail |
---|
public APTQueryWrapper()
Method Detail |
---|
public java.lang.Object GetFields(int iRow, int iPropID)
GetFields
in interface IASQueryResult
iRow
- is the row desirediPropID
- is the PT_PROPIDs id of the Property desired
public boolean IsComplete()
IsComplete
in interface IASQueryResult
public int MaxRows()
public void SetMaxRows(int iMaxRows)
iMaxRows
- is the maximum number of rows desired, which must be > 0
XPException
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |