|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.QueryResult
The QueryResult class provides the result of queries
with the key data on item collections and provider providerStatusArray.
In addition optionally it also contains the users to whom current logged
in user has substituted items on behalf of.
Some times, if aynchronous connections are made from the UWL service and items are still being updated in the background thread, this class indicates the status through isPossiblyOutDated() method.
QueryProperties,
isPossiblyOutDated()| Constructor Summary | |
QueryResult()
This is a default constructor. |
|
QueryResult(ItemCollection items,
List providerStatusList)
This constructor takes two arguments: an instance of ItemCollection
and a list of instances of ProviderStatus. |
|
QueryResult(List itemsAsList,
List providerStatusList)
This constructor is simalar to QueryResult#QueryResult(Itemcollection, List)
except for the fact that it takes in a list of items instead of an instance of ItemCollection.
|
|
| Method Summary | |
void |
addItems(ItemCollection itemCollection)
Adds to the existing collection of items. |
void |
addStatus(List providerStatusList)
Adds to the existing list if the exsting list is not null. |
void |
addStatus(ProviderStatus stat)
|
ItemCollection |
getItems()
Returns the items set to the QueryResult |
int |
getStartingItemNumber()
Returns the startingRecordNumber. |
List |
getStatus()
Status of different provider systems are returned. |
ProviderStatus[] |
getStatusAsArray()
This returns the array of Provider objects.
|
SubstitutedItemCount[] |
getSubstitutingUsers()
Returns for the current View passed, who are users, current user is substituting and has items from them. |
int |
getTotalNumberOfItems()
Returns the totalNumberOfItems. |
boolean |
isPossiblyOutDated()
Result being dirty i.e, some connection to provider is made in the background and call is still going on. |
void |
setItems(ItemCollection itemCollection)
|
void |
setItems(List listOfItems)
First, it constructs of the object of ItemCollection and then,
assigns the result to items. |
void |
setPossiblyOutDated(boolean b)
Internal method used by UWL service to indicate the client that result may be dirty. |
void |
setStartingItemNumber(int startingItemNumber)
Sets the startingRecordNumber. |
void |
setSubstitutingUsers(SubstitutedItemCount[] set)
For internal use only. |
void |
setTotalNumberOfItems(int totalNumberOfItems)
Sets the totalNumberOfItems. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryResult(ItemCollection items,
List providerStatusList)
ItemCollection
and a list of instances of ProviderStatus.
items - the collection of items.providerStatusList - the list of ProviderStatus instances.
public QueryResult(List itemsAsList,
List providerStatusList)
QueryResult#QueryResult(Itemcollection, List)
except for the fact that it takes in a list of items instead of an instance of ItemCollection.
Consequently, it creates an object of ItemCollection with the help of the list of items provided.
itemsAsList - the list of items.providerStatusList - the list of ProviderStatus instances.public QueryResult()
QueryResult with the list of ProviderStatus objects equal to null and
the object of ItemCollection equal to null.
| Method Detail |
public ItemCollection getItems()
ItemCollection.
It could be null.public void setItems(ItemCollection itemCollection)
itemCollection - public void setItems(List listOfItems)
ItemCollection and then,
assigns the result to items.
listOfItems - items as a list.public ProviderStatus[] getStatusAsArray()
Provider objects.
If the private field of this object providerStatusArray is null,
it will populate it by calling providerArrayList's toArray method.
ProviderStatus objects.
Even if the list of ProviderStatus is null, it will not return null
but an array of zero length.public List getStatus()
ProviderStatus.
This does return null even if the list is null instead it returns
Collections.EMPTY_LIST.ProviderStatuspublic void addItems(ItemCollection itemCollection)
ItemCollection and adds it.
itemCollection - the item collection to be added.public void addStatus(List providerStatusList)
providerStatusList - the provider status list.public void addStatus(ProviderStatus stat)
stat - the new instance that needs to be added.public int getTotalNumberOfItems()
public void setTotalNumberOfItems(int totalNumberOfItems)
totalNumberOfItems - The totalNumberOfItems to setpublic int getStartingItemNumber()
public void setStartingItemNumber(int startingItemNumber)
public SubstitutedItemCount[] getSubstitutingUsers()
QueryProperties#enableSubstitionCountpublic void setSubstitutingUsers(SubstitutedItemCount[] set)
set - for internal use. UWL Service sets this.public boolean isPossiblyOutDated()
public void setPossiblyOutDated(boolean b)
b -
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||