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