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(java.lang.String qualifier)
Creates a new select field with empty type identifier and result class.
|
GenericSelectField(java.lang.String qualifier,
java.lang.Class returnClass)
Creates a new select field with empty type identifier.
|
GenericSelectField(java.lang.String typeIdentifier,
java.lang.String qualifier,
java.lang.Class returnClass)
Creates a new select field.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getReturnClass()
Gets the configured result class of this select field.
|
protected void |
setReturnClass(java.lang.Class returnClass)
Sets the desired result class for values represented by this select field.
|
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)
Converts the select field to flexible search syntax by surrounding the generic field within curly braces.
|
getQualifier, getTypeCode, getTypeIdentifier, setQualifier, setTypeIdentifiergetAliasFromTypeMappublic GenericSelectField(java.lang.String qualifier)
qualifier - attribute qualifier of attribute which will be selectedpublic GenericSelectField(java.lang.String qualifier,
java.lang.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(java.lang.String typeIdentifier,
java.lang.String qualifier,
java.lang.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(java.lang.StringBuilder queryBuffer,
java.util.Map<java.lang.String,java.lang.String> typeIndexMap,
java.util.Map<java.lang.String,java.lang.Object> valueMap)
toFlexibleSearch in class GenericFieldqueryBuffer - contains the querytypeIndexMap - contains typeCode <> typeIndex mappingsvalueMap - contains valueQualifier <> value mappingsFlexibleSearchTranslatable.toFlexibleSearch(java.lang.StringBuilder,Map,Map)public java.lang.Class getReturnClass()
protected void setReturnClass(java.lang.Class returnClass)
returnClass - the result class to useCopyright © 2018 SAP SE. All Rights Reserved.