public class GenericSelectField extends GenericField
SELECT User.UID FROM User this field represents the User.UID. Consists of a type identifier
like User, a qualifier like UID which identifies an attribute of the type and which will be
selected, and the resulting type like User.class or PK.class (dependent on desire and
compatibility).| Constructor and Description |
|---|
GenericSelectField(String qualifier)
Creates a new select field with empty type identifier and result class.
|
GenericSelectField(String qualifier,
Class returnClass)
Creates a new select field with empty type identifier.
|
GenericSelectField(String typeIdentifier,
String qualifier,
Class returnClass)
Creates a new select field.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getReturnClass()
Gets the configured result class of this select field.
|
protected void |
setReturnClass(Class returnClass)
Sets the desired result class for values represented by this select field.
|
void |
toFlexibleSearch(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.
|
getQualifier, getTypeCode, getTypeIdentifier, setQualifier, setTypeIdentifiergetAliasFromTypeMappublic GenericSelectField(String qualifier)
qualifier - attribute qualifier of attribute which will be selectedpublic GenericSelectField(String qualifier, Class returnClass)
qualifier - attribute qualifier of attribute which will be selectedreturnClass - desired resulting class of this select field - gathered value will be tried to converted to this classpublic GenericSelectField(String typeIdentifier, String qualifier, Class returnClass)
qualifier - attribute qualifier of attribute which will be selectedreturnClass - desired resulting class of this select field - gathered value will be tried to converted to this classpublic void toFlexibleSearch(StringBuilder queryBuffer, Map<String,String> typeIndexMap, Map<String,Object> valueMap)
toFlexibleSearch in class GenericFieldqueryBuffer - contains the querytypeIndexMap - contains typeCode <> typeIndex mappingsvalueMap - contains valueQualifier <> value mappingsFlexibleSearchTranslatable.toFlexibleSearch(java.lang.StringBuilder,Map,Map)public Class getReturnClass()
protected void setReturnClass(Class returnClass)
returnClass - the result class to useCopyright © 2017 SAP SE. All Rights Reserved.