API Reference
classes
Subjectentity

@coasys/ad4m / Exports / SubjectEntity

Class: SubjectEntity

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new SubjectEntity(perspective, baseExpression?, source?)

Parameters

NameType
perspectivePerspectiveProxy
baseExpression?string
source?string

Defined in

subject/SubjectEntity.ts:20 (opens in a new tab)

Properties

#baseExpression

Private #baseExpression: string

Defined in

subject/SubjectEntity.ts:13 (opens in a new tab)


#perspective

Private #perspective: PerspectiveProxy

Defined in

subject/SubjectEntity.ts:16 (opens in a new tab)


#source

Private #source: string

Defined in

subject/SubjectEntity.ts:15 (opens in a new tab)


#subjectClass

Private #subjectClass: string

Defined in

subject/SubjectEntity.ts:14 (opens in a new tab)


author

author: string

Defined in

subject/SubjectEntity.ts:17 (opens in a new tab)


timestamp

timestamp: string

Defined in

subject/SubjectEntity.ts:18 (opens in a new tab)

Accessors

baseExpression

get baseExpression(): string

Returns

string

Defined in

subject/SubjectEntity.ts:26 (opens in a new tab)

Methods

delete

delete(): Promise<void>

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:212 (opens in a new tab)


get

get(): Promise<SubjectEntity>

Returns

Promise<SubjectEntity>

Defined in

subject/SubjectEntity.ts:206 (opens in a new tab)


getData

Private getData(id?): Promise<SubjectEntity>

Parameters

NameType
id?string

Returns

Promise<SubjectEntity>

Defined in

subject/SubjectEntity.ts:30 (opens in a new tab)


save

save(): Promise<void>

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:158 (opens in a new tab)


setCollectionAdder

Private setCollectionAdder(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:126 (opens in a new tab)


setCollectionRemover

Private setCollectionRemover(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:142 (opens in a new tab)


setCollectionSetter

Private setCollectionSetter(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:109 (opens in a new tab)


setProperty

Private setProperty(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:92 (opens in a new tab)


update

update(): Promise<void>

Returns

Promise<void>

Defined in

subject/SubjectEntity.ts:174 (opens in a new tab)


all

Static all(perspective): Promise<any[]>

Parameters

NameType
perspectivePerspectiveProxy

Returns

Promise<any[]>

Defined in

subject/SubjectEntity.ts:217 (opens in a new tab)


query

Static query(perspective, query?): Promise<SubjectEntity[]>

Parameters

NameType
perspectivePerspectiveProxy
query?SubjectEntityQueryParam

Returns

Promise<SubjectEntity[]>

Defined in

subject/SubjectEntity.ts:236 (opens in a new tab)