public class GenericSearchContainer extends AbstractSearchContainer
AbstractSearchContainer which is used in the search
result pager view.searchResult| Constructor and Description |
|---|
GenericSearchContainer(DisplayState displayState,
ComposedType type) |
GenericSearchContainer(DisplayState displayState,
GenericQuery genericQuery) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the defined search (if valid) and stores the result.
|
ComposedType |
getComposedType() |
GenericQuery |
getGenericQuery() |
int |
getItemsPerPage() |
int |
getRangeStart() |
SearchContext |
getSearchContext()
The
SearchContext which will be used to execute the search. |
String |
getSortQualifier() |
boolean |
isValid() |
void |
setGenericQuery(GenericQuery genericQuery) |
void |
setItemsPerPage(int itemsPerPage) |
void |
setRangeStart(int rangeStart) |
protected void |
setSearchContext(SearchContext searchContext)
Sets the
SessionContext which will be used to execute the search. |
void |
setSortQualifier(String sortQualifier) |
String |
toString()
A String representation of the defined search.
|
getDisplayState, getItemCount, getSearchResult, getSortDirection, setRange, setSortDirectionpublic GenericSearchContainer(DisplayState displayState, ComposedType type)
public GenericSearchContainer(DisplayState displayState, GenericQuery genericQuery)
public void execute()
throws HMCSystemException
AbstractSearchContainerexecute in class AbstractSearchContainerHMCSystemException - throws a hmc exception if the search could not be executed correctly.public SearchContext getSearchContext()
SearchContext which will be used to execute the search.protected void setSearchContext(SearchContext searchContext) throws IllegalArgumentException
SessionContext which will be used to execute the search.searchContext - The searchContext to set. Can not be null.IllegalArgumentException - if parameter searchContext is nullpublic String toString()
AbstractSearchContainertoString in class AbstractSearchContainerpublic String getSortQualifier()
getSortQualifier in class AbstractSearchContainerpublic void setSortQualifier(String sortQualifier)
setSortQualifier in class AbstractSearchContainersortQualifier - the qualifer of a attribute, which should be used for sorting the search result.public boolean isValid()
isValid in class AbstractSearchContainerpublic void setItemsPerPage(int itemsPerPage)
setItemsPerPage in class AbstractSearchContaineritemsPerPage - the number of elements of the search range.public void setRangeStart(int rangeStart)
setRangeStart in class AbstractSearchContainerrangeStart - the start index of the result range, which should be returned.public int getRangeStart()
getRangeStart in class AbstractSearchContainerpublic int getItemsPerPage()
getItemsPerPage in class AbstractSearchContainerpublic GenericQuery getGenericQuery()
public void setGenericQuery(GenericQuery genericQuery)
genericQuery - the GenericQuery to be setIllegalArgumentException - if the parameter genericQuery is nullpublic ComposedType getComposedType()
getComposedType in class AbstractSearchContainerCopyright © 2017 SAP SE. All Rights Reserved.