Options
All
  • Public
  • Public/Protected
  • All
Menu

Data structure to represent OData filter functions. Use the factory function filterFunction to create instances of FilterFunction.

Type parameters

Hierarchy

Index

Constructors

  • Creates an instance of FilterFunction.

    Type parameters

    Parameters

    Returns FilterFunction<EntityT, ReturnT>

Properties

edmType: EdmTypeShared<ODataVersionOf<EntityT>>
functionName: string
parameters: FilterFunctionParameterType<EntityT>[]

Methods

  • equals(value: ReturnT): Filter<EntityT, ReturnT>
  • Creates an instance of Filter for this filter function and the given value using the operator 'eq', i.e. ==.

    Parameters

    • value: ReturnT

      Value to be used in the filter

    Returns Filter<EntityT, ReturnT>

    The resulting filter

  • notEquals(value: ReturnT): Filter<EntityT, ReturnT>
  • Creates an instance of Filter for this filter function and the given value using the operator 'ne', i.e. !=.

    Parameters

    • value: ReturnT

      Value to be used in the filter

    Returns Filter<EntityT, ReturnT>

    The resulting filter

  • toString(parentFieldNames?: string[]): string
  • deprecated

    Since v1.21.0. There will be no replacement. Let us know if you were using this functionality. Serializes the filter function into a string

    Parameters

    • Optional parentFieldNames: string[]

      Names of parents in case the function is part of a filter on a navigation property

    Returns string

    The filter function as string

    Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.