Class CollectionField<EntityT, DeSerializersT, CollectionFieldT, NullableT, SelectableT>

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

Type Parameters

  • EntityT extends EntityBase

    Type of the entity the field belongs to.

  • DeSerializersT extends DeSerializers

    Type of the (de-)serializers.

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

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

  • NullableT extends boolean = false

    Boolean type that represents whether the field is nullable.

  • SelectableT extends boolean = false

    Boolean type that represents whether the field is selectable.

Hierarchy

  • Field<EntityT, NullableT, SelectableT>
    • CollectionField

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, DeSerializersT, CollectionFieldT, NullableT, SelectableT>

Properties

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

Methods

  • Gets the path to the complex type property represented by this.

    Returns

    The path to the complex type property.

    Returns string

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