Entity class

Represents one entity.

Index

Constructors

Public Properties

Public Methods

Constructors


constructor

The default constructor. ⊕ new Entity(): Entity


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


name

The name of entity.

● name: string


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:

Returns void