Package de.hybris.platform.core
Class GenericFunctionSelectField
java.lang.Object
de.hybris.platform.core.FlexibleSearchTranslatable
de.hybris.platform.core.GenericField
de.hybris.platform.core.GenericSelectField
de.hybris.platform.core.GenericFunctionSelectField
- All Implemented Interfaces:
Serializable
Allows to specify a function to be applied to a generic select field.
Example:
To get a query like this:
SELECT MAX( {code} ) FROM {Product} ...
you do this:
GenericQuery q = new GenericQuery("Product");
q.addSelectField(new GenericFunctionSelectField("code", "MAX"));
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGenericFunctionSelectField(String qualifier, Class returnClass, String functionName) GenericFunctionSelectField(String qualifier, String functionName) GenericFunctionSelectField(String typeIndentifier, String qualifier, Class returnClass, String functionName) -
Method Summary
Modifier and TypeMethodDescriptionvoidtoFlexibleSearch(StringBuilder queryBuffer, Map<String, String> typeIndexMap, Map<String, Object> valueMap) Converts the select field to flexible search syntax by surrounding the generic field within curly braces.Methods inherited from class de.hybris.platform.core.GenericSelectField
getReturnClass, setReturnClassMethods inherited from class de.hybris.platform.core.GenericField
getQualifier, getTypeCode, getTypeIdentifier, setQualifier, setTypeIdentifier, toPolyglotSearchMethods inherited from class de.hybris.platform.core.FlexibleSearchTranslatable
getAliasFromTypeMap
-
Constructor Details
-
GenericFunctionSelectField
-
GenericFunctionSelectField
-
GenericFunctionSelectField
-
-
Method Details
-
toFlexibleSearch
public void toFlexibleSearch(StringBuilder queryBuffer, Map<String, String> typeIndexMap, Map<String, Object> valueMap) Description copied from class:GenericSelectFieldConverts the select field to flexible search syntax by surrounding the generic field within curly braces.- Overrides:
toFlexibleSearchin classGenericSelectField- Parameters:
queryBuffer- contains the querytypeIndexMap- contains typeCode <> typeIndex mappingsvalueMap- contains valueQualifier <> value mappings- See Also:
-