Interface Expressions.Operand

All Known Subinterfaces:
ComplexProperty<EntityT,TargetT>, Expressions.OperandMultiple, Expressions.OperandSingle, FieldReference, FieldUntyped, FilterableBoolean, FilterableBoolean<EntityT>, FilterableCollection, FilterableCollection<EntityT,ItemT>, FilterableComparisonAbsolute, FilterableComparisonRelative, FilterableComplex<EntityT,ItemT>, FilterableDate, FilterableDate<EntityT>, FilterableDateTime<EntityT>, FilterableDateTimeOffset, FilterableDuration, FilterableDuration<EntityT>, FilterableEnum<EntityT,EnumT>, FilterableGuid<EntityT>, FilterableNumeric, FilterableNumeric<EntityT>, FilterableNumericDecimal<EntityT>, FilterableNumericInteger<EntityT>, FilterableString, FilterableString<EntityT>, FilterableTime<EntityT>, FilterableTimeOfDay, FilterableValue<EntityT,PrimitiveT>, FilterExpression, NavigationProperty<EntityT,TargetT>, Property<EntityT>, SimpleProperty<EntityT>, com.sap.cloud.sdk.datamodel.odatav4.core.StructuredProperty<EntityT,TargetT>, ValueBinary, ValueBoolean, ValueCollection, ValueDate, ValueDateTime, ValueDateTimeOffset, ValueDuration, ValueEnum, ValueGuid, ValueNumeric, ValueString, ValueTimeOfDay
All Known Implementing Classes:
ComplexProperty.Collection, ComplexProperty.Single, ComplexPropertyQuery, FilterableBoolean.Expression, FilterableCollection.Expression, FilterableDate.Expression, FilterableDateTime.Expression, FilterableDuration.Expression, FilterableNumericDecimal.Expression, FilterableNumericInteger.Expression, FilterableString.Expression, FilterableTime.Expression, 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, ValueBinary.Expression, ValueBoolean.Expression, ValueCollection.Expression, ValueDate.Expression, ValueDateTime.Expression, ValueDateTimeOffset.Expression, ValueDuration.Expression, ValueNumeric.Expression, ValueString.Expression, ValueTimeOfDay.Expression
Enclosing class:
Expressions
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Expressions.Operand
Generic OData filter expression operand.
  • Field Details

    • NULL

      static final Expressions.Operand NULL
      The null operand, representing the absence of any value.
  • Method Details

    • getExpression

      @Nonnull default String getExpression(@Nonnull ODataProtocol protocol)
      Create the String representation of the expression based on a given ODataProtocol.
      Parameters:
      protocol - The ODataProtocol that the expression should conform to.
      Returns:
      The expression String.
    • getExpression

      @Nonnull String getExpression(@Nonnull ODataProtocol protocol, @Nonnull Map<String,Predicate<FieldReference>> prefixes)
      Create the String representation of the expression.
      Parameters:
      protocol - The OData protocol to derive serialization rules from.
      prefixes - Additional field prefixes, e.g. when using lambda expressions.
      Returns:
      The expression String.