Interface: DataModelInterface
Hierarchy
- DataModelInterface
Index
Methods
- apply
- getByPath
- getMeta
- getParameters
- getViewState
- onExecuteBegin
- onExecuteSuccess
- subscribe
- toJSON
- unsubscribe
Methods
apply
▸ apply(): void
Method to apply data, runs through each case: pivot, query, analytic, copy, virtual
Returns: void
getByPath
▸ getByPath(path
: String): DocumentDataModel
Parameters:
Name | Type |
---|---|
path |
String |
Returns: DocumentDataModel
getMeta
▸ getMeta(callback
: any): void
Get Meta
Parameters:
Name | Type | Description |
---|---|---|
callback |
any |
Returns: void
getParameters
▸ getParameters(): Object
Get datasource parameters
Returns: Object
getViewState
▸ getViewState(): any
Get viewstate
Returns: any
onExecuteBegin
▸ onExecuteBegin(): void
Begin datasource execution
Returns: void
onExecuteSuccess
▸ onExecuteSuccess(data
: DCDS, forceReset
: boolean, buffer?
: ArrayBuffer, pivotMeta?
: object): any
on Successful datasource execution
Parameters:
Name | Type | Description |
---|---|---|
data |
DCDS | - |
forceReset |
boolean | - |
buffer? |
ArrayBuffer | - |
pivotMeta? |
object |
Returns: any
subscribe
▸ subscribe(key
: string, listener
: ISubscriber, raw?
: boolean, pagingInfo?
: any): void
Subscribe to data
Parameters:
Name | Type | Description |
---|---|---|
key |
string | - |
listener |
ISubscriber | - |
raw? |
boolean | - |
pagingInfo? |
any |
Returns: void
toJSON
▸ toJSON(): Object
Returns: Object
unsubscribe
▸ unsubscribe(key
: any): void
Unsubscribe to data
Parameters:
Name | Type | Description |
---|---|---|
key |
any |
Returns: void