Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DateFieldBase<EntityT>

Represents a property with a date value.

Type parameters

  • EntityT: Entity

    Type of the entity the field belongs to

Hierarchy

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

  • new DateFieldBase(fieldName: string, entityConstructor: Constructable<EntityT>, edmType: EdmType): DateFieldBase
  • Creates an instance of EdmTypeField.

    Parameters

    • fieldName: string

      Actual name of the field used in the OData request

    • entityConstructor: Constructable<EntityT>

      Constructor type of the entity the field belongs to

    • edmType: EdmType

      Type of the field according to the metadata description

    Returns DateFieldBase

Properties

edmType

edmType: EdmType

Type of the field according to the metadata description

entityConstructor

entityConstructor: Constructable<EntityT>

Constructor type of the entity the field belongs to

fieldName

fieldName: string

Actual name of the field used in the OData request

Methods

equals

  • equals(value: Moment): Filter<EntityT, Moment>
  • Creates an instance of Filter for this field and the given value using the operator 'eq', i.e. ==.

    Parameters

    • value: Moment

      Value to be used in the filter

    Returns Filter<EntityT, Moment>

    The resulting filter

fieldPath

  • fieldPath(): string
  • Path to the field to be used in filter and order by queries. In most cases this will just be the fieldName itself. However, for complex types for instance, the path is prefixed with the name of the complextype.

    Returns string

    Path to the field to be used in filter and order by queries.

greaterOrEqual

  • greaterOrEqual(value: Moment): Filter<EntityT, Moment>
  • Creates an instance of Filter for this field and the given value using the operator 'ge', i.e. >=.

    Parameters

    • value: Moment

      Value to be used in the filter

    Returns Filter<EntityT, Moment>

    The resulting filter

greaterThan

  • greaterThan(value: Moment): Filter<EntityT, Moment>
  • Creates an instance of Filter for this field and the given value using the operator 'gt', i.e. >.

    Parameters

    • value: Moment

      Value to be used in the filter

    Returns Filter<EntityT, Moment>

    The resulting filter

lessOrEqual

  • lessOrEqual(value: Moment): Filter<EntityT, Moment>
  • Creates an instance of Filter for this field and the given value using the operator 'le', i.e. <=.

    Parameters

    • value: Moment

      Value to be used in the filter

    Returns Filter<EntityT, Moment>

    The resulting filter

lessThan

  • lessThan(value: Moment): Filter<EntityT, Moment>
  • Creates an instance of Filter for this field and the given value using the operator 'lt', i.e. <.

    Parameters

    • value: Moment

      Value to be used in the filter

    Returns Filter<EntityT, Moment>

    The resulting filter

notEquals

  • notEquals(value: Moment): Filter<EntityT, Moment>
  • Creates an instance of Filter for this field and the given value using the operator 'ne', i.e. !=.

    Parameters

    • value: Moment

      Value to be used in the filter

    Returns Filter<EntityT, Moment>

    The resulting filter