public class DefaultAbstractQueryHelper extends java.lang.Object implements AbstractQueryHelper
AbstractQueryHelper. It returns an updated object of the given original one by
setting the query with the given parameter while shallow copying original attributes to an updated object.| Constructor and Description |
|---|
DefaultAbstractQueryHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends AbstractQuery> |
copyAttributes(T original,
T target)
Copies original attributes over to target object.
|
<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
|
public <T extends FlexibleSearchQuery> T getUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, java.lang.String query)
AbstractQueryHelpergetUpdatedFlexibleSearchQuery in interface AbstractQueryHelperT - 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 parameterpublic <T extends GenericSearchQuery> T getUpdatedGenericSearchQuery(GenericSearchQuery original, GenericQuery query)
AbstractQueryHelpergetUpdatedGenericSearchQuery in interface AbstractQueryHelperT - 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 parameterprotected <T extends AbstractQuery> void copyAttributes(T original, T target)
original - the original search query objecttarget - the target search query objectCopyright © 2018 SAP SE. All Rights Reserved.