Abstract
Type of the entity the field belongs to.
Type of the (de-)serializers.
Type of complex type represented by this field.
Boolean type that represents whether the field is nullable.
Boolean type that represents whether the field is selectable.
Creates an instance of ComplexTypeField.
Actual name of the field as used in the OData request.
Either the parent entity constructor of the parent complex type this field belongs to.
(De-)serializers used for transformation.
The complex type of the complex type property represented by this.
Optional
fieldOptions: FieldOptions<NullableT, SelectableT>Optional settings for this field.
Readonly
_complexReadonly
_entityReadonly
_fieldReadonly
_fieldOptional
Readonly
Internal
complexNote that this property is crucial, although not really used.
If it is removed this class becomes structural equivalent to e.g. ComplexTypeStringPropertyField which leads to unexpected behavior on the selectable
list of objects.
Readonly
deReadonly
field
Represents a complex type property of an entity or a complex type.
ComplexTypeField
s 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 ofComplexTypeField
(or rather one of its subclasses) in the corresponding generated class file.ComplexTypeField
s 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 ofComplexTypeField<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.