@perspect3vism/ad4m / Exports / SubjectEntity
Class: SubjectEntity
Table of contents
Constructors
Properties
Accessors
Methods
- delete
- get
- getData
- save
- setCollectionAdder
- setCollectionRemover
- setCollectionSetter
- setProperty
- update
- all
Constructors
constructor
• new SubjectEntity(perspective
, baseExpression?
)
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
baseExpression? | string |
Defined in
subject/SubjectEntity.ts:27 (opens in a new tab)
Properties
#baseExpression
• Private
#baseExpression: string
Defined in
subject/SubjectEntity.ts:21 (opens in a new tab)
#perspective
• Private
#perspective: PerspectiveProxy
Defined in
subject/SubjectEntity.ts:23 (opens in a new tab)
#subjectClass
• Private
#subjectClass: string
Defined in
subject/SubjectEntity.ts:22 (opens in a new tab)
author
• author: string
Defined in
subject/SubjectEntity.ts:24 (opens in a new tab)
timestamp
• timestamp: string
Defined in
subject/SubjectEntity.ts:25 (opens in a new tab)
Accessors
baseExpression
• get
baseExpression(): string
Returns
string
Defined in
subject/SubjectEntity.ts:32 (opens in a new tab)
Methods
delete
▸ delete(): Promise
<void
>
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:208 (opens in a new tab)
get
▸ get(): Promise
<SubjectEntity
>
Returns
Promise
<SubjectEntity
>
Defined in
subject/SubjectEntity.ts:202 (opens in a new tab)
getData
▸ Private
getData(id?
): Promise
<SubjectEntity
>
Parameters
Name | Type |
---|---|
id? | string |
Returns
Promise
<SubjectEntity
>
Defined in
subject/SubjectEntity.ts:36 (opens in a new tab)
save
▸ save(): Promise
<void
>
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:162 (opens in a new tab)
setCollectionAdder
▸ Private
setCollectionAdder(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:130 (opens in a new tab)
setCollectionRemover
▸ Private
setCollectionRemover(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:146 (opens in a new tab)
setCollectionSetter
▸ Private
setCollectionSetter(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:113 (opens in a new tab)
setProperty
▸ Private
setProperty(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:95 (opens in a new tab)
update
▸ update(): Promise
<void
>
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:170 (opens in a new tab)
all
▸ Static
all(perspective
): Promise
<any
[]>
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
Returns
Promise
<any
[]>