Entity class
Represents one entity.
- attributes
- caption
- description
- endpoint
- name
- parent
- subEntities
- useInConditions
- useInResult
- useInSorting
Constructors
Section titled “Constructors”constructor
Section titled “constructor”The default constructor. ⊕ new Entity(parent?: Entity): Entity
Parameters:
Section titled “Parameters:”- parent: Entity, Optional
Public Properties
Section titled “Public Properties”attributes
Section titled “attributes”List of Attributes that belong to this entity.
● attributes: EntityAttr[]
caption
Section titled “caption”The caption of entity.
● caption: string
description
Section titled “description”The description of entity.
● description: string
endpoint
Section titled “endpoint”The endpoint of entity. It is used for odata or graphql brokers
● endpoint?: string
The name of entity.
● name: string
parent
Section titled “parent”The parent.
● parent: Entity
subEntities
Section titled “subEntities”List of sub entities that belong to this entity.
● subEntities: Entity[]
useInConditions
Section titled “useInConditions”The value indicating whether the attribute can be used in query conditions.
● useInConditions: boolean
useInResult
Section titled “useInResult”The value indicating whether the attribute can be used in result columns (SELECT
clause).
● useInResult: boolean
useInSorting
Section titled “useInSorting”The value indicating whether the attribute can be used in sorting.
● useInSorting: boolean
Public Methods
Section titled “Public Methods”loadFromData
Section titled “loadFromData”Loads entity from its JSON representation object.
▸ loadFromData(model: DataModel,data: EntityData): void
Parameters:
Section titled “Parameters:”- model: DataModel - The Data Model.
- data: EntityData - The JSON representation object.
Returns void