public interface AbstractQueryHelper
The reason behind this helper interface is both of FlexibleSearchQuery and GenericSearchQuery have
final attribute signature for query attribute. This results no setter for query attribute, so a new
search query object has to be instantiated with constructor to set the query and other attributes have to be copied
over.
Use case of this helper is to update the query of FlexibleSearchQuery or GenericSearchQuery
| Modifier and Type | Method and Description |
|---|---|
<T extends FlexibleSearchQuery> |
getUpdatedFlexibleSearchQuery(FlexibleSearchQuery original,
java.lang.String query)
Get an updated FlexibleSearchQuery of the given original one by setting the query with the given parameter
|
<T extends GenericSearchQuery> |
getUpdatedGenericSearchQuery(GenericSearchQuery original,
GenericQuery query)
Get an updated GenericSearchQuery of the given original one by setting the query with the given parameter
|
<T extends FlexibleSearchQuery> T getUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, java.lang.String query)
T - the subclass type of FlexibleSearchQuery to be returnedoriginal - the original FlexibleSearchQuery objectquery - the query needs to be set in the FlexibleSearchQueryFlexibleSearchQuery of original one by setting the query with the given parameterjava.lang.IllegalArgumentException - if the given original or query is null<T extends GenericSearchQuery> T getUpdatedGenericSearchQuery(GenericSearchQuery original, GenericQuery query)
T - the subclass of type GenericSearchQuery to be returnedoriginal - the original GenericSearchQuery objectquery - the query needs to be set in the GenericSearchQueryGenericSearchQuery of original one by setting the query with the given parameterjava.lang.IllegalArgumentException - if the given original or query is nullCopyright © 2018 SAP SE. All Rights Reserved.