This is the abstract class that all services the Effects use must implement.
Methods
abstract add() |
---|
Sends a new row to the server |
Presentationabstract add(row: T): Observable<T[]>;
|
ParametersReturnsObservable<T[]>
|
Overload #1 |
---|
Sends a new row to the server | Presentationabstract add(row: T): Observable<T[]>;
| ParametersReturnsObservable<T[]>
|
|
abstract delete() |
---|
Deletes the row represented by the id from the server |
Presentationabstract delete(id: string): Observable<void>;
|
ParametersName | Type | Description |
---|
id | string | |
ReturnsObservable<void>
|
Overload #1 |
---|
Deletes the row represented by the id from the server | Presentationabstract delete(id: string): Observable<void>;
| ParametersName | Type | Description |
---|
id | string | |
ReturnsObservable<void>
|
|
abstract loadByIds() |
---|
Loads the rows represented by the array of ids passed in from the server |
Presentationabstract loadByIds(ids: string[]): Observable<T[]>;
|
ParametersName | Type | Description |
---|
ids | string[] | |
ReturnsObservable<T[]>
|
Overload #1 |
---|
Loads the rows represented by the array of ids passed in from the server | Presentationabstract loadByIds(ids: string[]): Observable<T[]>;
| ParametersName | Type | Description |
---|
ids | string[] | |
ReturnsObservable<T[]>
|
|
abstract loadByIndexes() |
---|
Loads the rows represented by the array of ids passed in from the server |
Presentationabstract loadByIndexes(parentId: string, childField: string, startIndex: number, length: number): Observable<PartialArrayDefinition>;
|
ParametersName | Type | Description |
---|
parentId | string | the id of the parent row | childField | string | | startIndex | number | the index to start loading from | length | number | the number of rows to load |
Returns |
Overload #1 |
---|
Loads the rows represented by the array of ids passed in from the server | Presentationabstract loadByIndexes(parentId: string, childField: string, startIndex: number, length: number): Observable<PartialArrayDefinition>;
| ParametersName | Type | Description |
---|
parentId | string | the id of the parent row | childField | string | | startIndex | number | the index to start loading from | length | number | the number of rows to load |
Returns |
|
abstract update() |
---|
Sends the updated row in the store to the server. |
Presentationabstract update(newRow: T): Observable<T[]>;
|
ParametersName | Type | Description |
---|
newRow | T | |
ReturnsObservable<T[]>
|
Overload #1 |
---|
Sends the updated row in the store to the server. | Presentationabstract update(newRow: T): Observable<T[]>;
| ParametersName | Type | Description |
---|
newRow | T | |
ReturnsObservable<T[]>
|
|