Interface FieldReference
- All Superinterfaces:
Expressions.Operand
,Expressions.OperandSingle
- All Known Subinterfaces:
ComplexProperty<EntityT,
,TargetT> FieldUntyped
,NavigationProperty<EntityT,
,TargetT> Property<EntityT>
,SimpleProperty<EntityT>
,com.sap.cloud.sdk.datamodel.odatav4.core.StructuredProperty<EntityT,
TargetT>
- All Known Implementing Classes:
ComplexProperty.Collection
,ComplexProperty.Single
,ComplexPropertyQuery
,NavigationProperty.Collection
,NavigationProperty.Single
,NavigationPropertyCollection
,NavigationPropertyCollectionQuery
,NavigationPropertySingleQuery
,SimpleProperty.All
,SimpleProperty.Binary
,SimpleProperty.Boolean
,SimpleProperty.Collection
,SimpleProperty.Date
,SimpleProperty.DateTime
,SimpleProperty.Duration
,SimpleProperty.Enum
,SimpleProperty.Guid
,SimpleProperty.NumericDecimal
,SimpleProperty.NumericInteger
,SimpleProperty.String
,SimpleProperty.Time
OData filter expression operand for a generic entity field reference.
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.datamodel.odata.client.expression.Expressions.Operand
NULL
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getExpression
(ODataProtocol protocol, Map<String, Predicate<FieldReference>> prefixes) Create the String representation of the expression.javadocstatic FieldUntyped
Static factory method to easily instantiate a generic field reference.static FieldUntyped
Static factory method to easily instantiate a nested field reference via a path of fields.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.client.expression.Expressions.Operand
getExpression
-
Method Details
-
of
Static factory method to easily instantiate a generic field reference.- Parameters:
fieldName
- The field name.- Returns:
- The newly created instance.
-
ofPath
Static factory method to easily instantiate a nested field reference via a path of fields.- Parameters:
fieldNames
- The field name(s) identifying the field.- Returns:
- The newly created instance.
-
getFieldName
javadoc- Returns:
- The field name this reference points towards.
-
getExpression
@Nonnull default String getExpression(@Nonnull ODataProtocol protocol, @Nonnull Map<String, Predicate<FieldReference>> prefixes) Description copied from interface:Expressions.Operand
Create the String representation of the expression.- Specified by:
getExpression
in interfaceExpressions.Operand
- Parameters:
protocol
- The OData protocol to derive serialization rules from.prefixes
- Additional field prefixes, e.g. when using lambda expressions.- Returns:
- The expression String.
-