Class for recursively parsing of filters and printing them as SQL conditions. Supports three types of statements

  • conditions: (field)-lt|le|eq|ge|gt|like(value)
  • negation: -not(filter)
  • conjunction: (filter)-and|or(filter) Supported conditions are comparisons (<, <=, =, >=, >) and substring match (LIKE).

Constructors

Methods

Constructors

  • Constructor for OINOFilter.

    Parameters

    • filterString: string

      string representation of filter from HTTP-request

    Returns OINOFilter

Methods

  • Does filter contain any valid conditions.

    Returns boolean

  • Print filter as SQL condition based on the datamodel of the API.

    Parameters

    • dataModel: OINODataModel

      data model (and database) to use for formatting of values

    Returns string