|
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.QueryProperties
The QueryProperties class provides getters and setters for various properties of the queries
primarily used in getItems() method of the IUWLItemManager.
QueryResult| Constructor Summary | |
QueryProperties()
|
|
| Method Summary | |
void |
enableSubstitutionCount(boolean enable)
If substituioncount is enabled, then getItems() method call on the IUWLItemManager
returns QueryResult with valid getSubstitutingUsers values. |
String |
getConfigurationGroup()
Configuration group could be set by the caller to limit the provider systems that UWL needs to connect. |
Date |
getFromDate()
Returns the fromDate. |
int |
getMaxNumberOfItemsToFetch()
Returns the maximum number of records to fetch. |
boolean[] |
getSortAscending()
Returns the sorting order of the records. |
String[] |
getSortBy()
Returns the array of strings which contain column names used to sort the records by. |
int |
getStartingItemNumber()
Returns the starting record number. |
String |
getSubstitutedUser()
Returns the filter set for the substituting user. |
boolean |
isSubstitutionCountNeeded()
Indicates if substitution count needs to be returned. |
void |
setConfigurationGroup(String configurationGroup)
Configuration group could be set by the caller to limit the provider systems that UWL needs to connect. |
void |
setFromDate(Date fromDate)
Sets the date from which items need to be retrieved. |
void |
setMaxNumberOfItemsToFetch(int maxNumberOfRecordsToFetch)
Sets the maximum number of records to fetch. |
void |
setSortAscending(boolean[] sortAscending)
Sets the whether the sort fields set in setSortBy() method need to be correspondingly ascending or descending sorted. |
void |
setSortBy(String[] sortBy)
Sets the sorting fields. |
void |
setStartingItemNumber(int startingItemPosition)
Sets the starting item number. |
void |
setSubstitutedUser(String usr)
Provides a means to filter the items based on the user to whom current users is substituting. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryProperties()
| Method Detail |
public Date getFromDate()
public String getConfigurationGroup()
public void setConfigurationGroup(String configurationGroup)
configurationGroup - the configuration group.public int getMaxNumberOfItemsToFetch()
public boolean[] getSortAscending()
public String[] getSortBy()
public int getStartingItemNumber()
public void setFromDate(Date fromDate)
fromDate - The fromDate to setpublic void setMaxNumberOfItemsToFetch(int maxNumberOfRecordsToFetch)
maxNumberOfRecordsToFetch - The maxNumberOfRecordsToFetch to setpublic void setSortAscending(boolean[] sortAscending)
sortAscending - boolean array of true or false with corresponding sort fieldspublic void setSortBy(String[] sortBy)
sortBy - The sortBy to setpublic void setStartingItemNumber(int startingItemPosition)
startingItemPosition - starting numberpublic String getSubstitutedUser()
public void setSubstitutedUser(String usr)
usr - specifies the filtering on the items. If not null
specifies only from the user specified, items are requested.
This parameter should be the com.sap.security.api.IUser.getUniqueId().
For example setSubstitutedUser("USER.PRIVATE_DATASOURCE.un:testuser1"
asks for items only for the user testUser1 whom the current user is substituting.
public boolean isSubstitutionCountNeeded()
QueryResult.getSubstitutingUsers(),
SubstitutedItemCountpublic void enableSubstitutionCount(boolean enable)
getItems() method call on the IUWLItemManager
returns QueryResult with valid getSubstitutingUsers values.
enable - sets if substution user, item count is needed.QueryResult.getSubstitutingUsers(),
SubstitutedItemCount
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||