@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:18 (opens in a new tab)
Properties
#baseExpression
• Private
#baseExpression: string
Defined in
subject/SubjectEntity.ts:12 (opens in a new tab)
#perspective
• Private
#perspective: PerspectiveProxy
Defined in
subject/SubjectEntity.ts:14 (opens in a new tab)
#subjectClass
• Private
#subjectClass: string
Defined in
subject/SubjectEntity.ts:13 (opens in a new tab)
author
• author: string
Defined in
subject/SubjectEntity.ts:15 (opens in a new tab)
timestamp
• timestamp: string
Defined in
subject/SubjectEntity.ts:16 (opens in a new tab)
Accessors
baseExpression
• get
baseExpression(): string
Returns
string
Defined in
subject/SubjectEntity.ts:23 (opens in a new tab)
Methods
delete
▸ delete(): Promise
<void
>
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:201 (opens in a new tab)
get
▸ get(): Promise
<SubjectEntity
>
Returns
Promise
<SubjectEntity
>
Defined in
subject/SubjectEntity.ts:195 (opens in a new tab)
getData
▸ Private
getData(id?
): Promise
<SubjectEntity
>
Parameters
Name | Type |
---|---|
id? | string |
Returns
Promise
<SubjectEntity
>
Defined in
subject/SubjectEntity.ts:27 (opens in a new tab)
save
▸ save(): Promise
<void
>
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:155 (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:123 (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:139 (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:106 (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:89 (opens in a new tab)
update
▸ update(): Promise
<void
>
Returns
Promise
<void
>
Defined in
subject/SubjectEntity.ts:163 (opens in a new tab)
all
▸ Static
all(perspective
): Promise
<any
[]>
Parameters
Name | Type |
---|---|
perspective | PerspectiveProxy |
Returns
Promise
<any
[]>