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

public interface FieldReference extends Expressions.OperandSingle
OData filter expression operand for a generic entity field reference.
  • Method Details

    • of

      @Nonnull static FieldUntyped of(@Nonnull String fieldName)
      Static factory method to easily instantiate a generic field reference.
      Parameters:
      fieldName - The field name.
      Returns:
      The newly created instance.
    • ofPath

      @Nonnull static FieldUntyped ofPath(@Nonnull String... fieldNames)
      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

      @Nonnull String 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 interface Expressions.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.