Skip to content

Entity class

Represents one entity.

MetaEntity


The default constructor. ⊕ new Entity(parent?: Entity): Entity



● attributes: Array<EntityAttr>


The caption of entity attr.

● caption: string


The caption of entity attr in plural form.

● captionPlural: string


The description of entity.

● description: string


The endpoint of entity. It is used for odata or graphql brokers

● endpoint?: string


The id.

● id: string


The name of entity.

● name: string


The parent.

● parent: MetaEntity


● subEntities: Array<Entity>


The value indicating whether the attribute can be used in query conditions.

● useInConditions: boolean


The value indicating whether the attribute can be used in result columns (SELECT clause).

● useInResult: boolean


The value indicating whether the attribute can be used in sorting.

● useInSorting: boolean



Loads entity from its JSON representation object.

▸ loadFromData(model: DataModel,data: EntityData): void

Returns void


▸ scan(processAttribute?: (attr: EntityAttr, opts: any) => void,processEntity?: (entity: Entity, opts: any) => void): void

  • processAttribute: (attr: EntityAttr, opts: any) => void, Optional
  • processEntity: (entity: Entity, opts: any) => void, Optional

Returns void