projects/wms-framework/src/lib/dataService/dataServiceInterfaces.ts
Defines an object that can be tracked as part of the data services mechanism.
Properties |
Methods |
getEntityKeys |
getEntityKeys()
|
Gets the name of the fields that conform the primary key of this object.
Returns :
string[]
|
getEntityName |
getEntityName()
|
Gets the name of this entity object
Returns :
string
{string} |
getEntitySet |
getEntitySet()
|
Gets the name of the entity set for this entity object
Returns :
string
{string} |
getKey |
getKey()
|
Gets the actual key as a string for this entity
Returns :
string
|
getNamespace |
getNamespace()
|
Gets the namespace asociated to this entity
Returns :
string
{string} |
dataServiceId |
dataServiceId:
|
Type : number
|
Unique identifier for this dataService entity object. |
dataServiceState |
dataServiceState:
|
Type : DataServiceEntityState
|
Indicates the current state of this object. |
import { DataServiceEntityState } from './dataServiceEnums';
/**
* Defines an object that can be tracked as part of the data services mechanism.
*/
export interface EntityObject {
/**
* Indicates the current state of this object.
*/
dataServiceState: DataServiceEntityState;
/**
* Unique identifier for this dataService entity object.
*/
dataServiceId: number;
/**
* Gets the name of the fields that conform the primary key of this object.
*/
getEntityKeys(): string[];
/**
* Gets the actual key as a string for this entity
*/
getKey(): string;
/**
* Gets the name of the entity set for this entity object
*
* @return {*} {string}
* @memberof EntityObject
*/
getEntitySet(): string;
/**
* Gets the name of this entity object
*
* @return {*} {string}
* @memberof EntityObject
*/
getEntityName(): string;
/**
* Gets the namespace asociated to this entity
*
* @return {*} {string}
* @memberof EntityObject
*/
getNamespace(): string;
}