Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CollectionField<EntityT, CollectionFieldT, NullableT, SelectableT>

Represents a field of an entity or a complex type, that can have a collection as value.

Type parameters

  • EntityT: EntityBase

    Type of the entity the field belongs to.

  • CollectionFieldT: EdmTypeShared<"any"> | Record<string, any> = any

    Type of of elements of the collection. This can either be an EDM type or complex type.

  • NullableT: boolean = false

    Boolean type that represents whether the field is nullable.

  • SelectableT: boolean = false

    Boolean type that represents whether the field is selectable.

Hierarchy

  • Field<EntityT, NullableT, SelectableT>
    • CollectionField

Index

Constructors

  • Creates an instance of CollectionField.

    Type parameters

    Parameters

    • fieldName: string

      Actual name of the field used in the OData request.

    • _fieldOf: ConstructorOrField<EntityT, any>

      The constructor of the entity or the complex type field this field belongs to.

    • _fieldType: CollectionFieldType<CollectionFieldT>

      Edm type of the field according to the metadata description.

    • Optional fieldOptions: FieldOptions<NullableT, SelectableT>

      Optional settings for this field.

    Returns CollectionField<EntityT, CollectionFieldT, NullableT, SelectableT>

Properties

_entity: EntityT
_entityConstructor: Constructable<EntityT, unknown>
_fieldName: string
_fieldOf: ConstructorOrField<EntityT, any>
_fieldOptions: Required<FieldOptions<NullableT, SelectableT>>
_fieldType: CollectionFieldType<CollectionFieldT>

Methods

  • fieldPath(): string
  • Gets the path to the complex type property represented by this.

    Returns string

    The path to the complex type property.

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