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:
java.io.Serializable
public class GenericFunctionSelectField extends GenericSelectField
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericFunctionSelectField(java.lang.String qualifier, java.lang.Class returnClass, java.lang.String functionName)GenericFunctionSelectField(java.lang.String qualifier, java.lang.String functionName)GenericFunctionSelectField(java.lang.String typeIndentifier, java.lang.String qualifier, java.lang.Class returnClass, java.lang.String functionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtoFlexibleSearch(java.lang.StringBuilder queryBuffer, java.util.Map<java.lang.String,java.lang.String> typeIndexMap, java.util.Map<java.lang.String,java.lang.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, setReturnClass
-
Methods inherited from class de.hybris.platform.core.GenericField
getQualifier, getTypeCode, getTypeIdentifier, setQualifier, setTypeIdentifier, toPolyglotSearch
-
Methods inherited from class de.hybris.platform.core.FlexibleSearchTranslatable
getAliasFromTypeMap
-
-
-
-
Constructor Detail
-
GenericFunctionSelectField
public GenericFunctionSelectField(java.lang.String qualifier, java.lang.String functionName)
-
GenericFunctionSelectField
public GenericFunctionSelectField(java.lang.String qualifier, java.lang.Class returnClass, java.lang.String functionName)
-
GenericFunctionSelectField
public GenericFunctionSelectField(java.lang.String typeIndentifier, java.lang.String qualifier, java.lang.Class returnClass, java.lang.String functionName)
-
-
Method Detail
-
toFlexibleSearch
public void toFlexibleSearch(java.lang.StringBuilder queryBuffer, java.util.Map<java.lang.String,java.lang.String> typeIndexMap, java.util.Map<java.lang.String,java.lang.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:
FlexibleSearchTranslatable.toFlexibleSearch(java.lang.StringBuilder, Map, Map)
-
-