Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComplexTypeField<EntityT, ComplexT>

Represents a complex type property of an entity.

ComplexTypeFields are used as static properties of entities and are generated from the metadata, i.e. for each property of an OData entity, that has a complex type, there exists one static instance of ComplexTypeField (or rather one of its subclasses) in the corresponding generated class file. ComplexTypeFields are used to represent the domain of complex or custom structures that can be used in select, filter and order by functions. For example, when constructing a query on the TimeSheetEntry entity, an instance of ComplexTypeField<TimeSheetEntry> can be supplied as argument to the select function, e.g. TimeSheetEntry.TIME_SHEET_DATA_FIELDS. Moreover, classes implementing this abstract class will provide property fields, that can be used for filtering and ordering.

See also: Selectable

Type parameters

  • EntityT: EntityBase

    Type of the entity the field belongs to

  • ComplexT = any

Hierarchy

  • Field<EntityT>
    • ComplexTypeField

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

  • Creates an instance of ComplexTypeField.

    Parameters

    • fieldName: string

      Actual name of the field as used in the OData request.

    • fieldOf: ConstructorOrField<EntityT, ComplexT>

      Either the parent entity constructor of the parent complex type this field belongs to.

    • Optional complexType: ComplexTypeNamespace<ComplexT>

      The complex type of the complex type property represented by this.

    Returns ComplexTypeField

  • Creates an instance of ComplexTypeField. Creates an instance of ComplexTypeField. Creates an instance of ComplexTypeField.

    deprecated

    Since v1.19.0.

    Creates an instance of ComplexTypeField.

    Parameters

    • fieldName: string

      Actual name of the field as used in the OData request.

    • entityConstructor: Constructable<EntityT>

      Constructor type of the entity the field belongs to.

    • complexTypeName: string

      Name of the type of the field according to the metadata description.

    Returns ComplexTypeField

Properties

Readonly _complexType

_complexType: ComplexTypeNamespace<ComplexT>

The complex type of the complex type property represented by this.

Readonly _entity

_entity: EntityT

Readonly _entityConstructor

_entityConstructor: Constructable<EntityT>

Constructor type of the entity the field belongs to

Readonly _fieldName

_fieldName: string

Actual name of the field used in the OData request

Readonly fieldOf

fieldOf: ConstructorOrField<EntityT, ComplexT>

Either the parent entity constructor of the parent complex type this field belongs to.

Methods

fieldPath

  • fieldPath(): string