new DataIdentifier()
A DataIdentifier represents a universal identifier for an object managed by
Montage Data. It provides the support for uniquing in a DataService.
Whether an object exists in one or more local DataServices in an Application
or in a remote one, a DataIdentifier encapsulates the information needed to
uniquely identify an object, like a primary key in a database. A DataIdentifier
has a URL representation, which is conceptually aligned with the notion of
resource. It should have:
- a host/source/origin: where the data come from. Automatically generated
primary keys exists in only one environment - Dev, test, prod, etc...,
(a user's authorization (if any necessary) should be left to be resolved
by a client receiving the identifier, only people authenticated and authorized
would be able to get it and that happens at DataService level)
- a type
- a primary key. This could be a combination of property/value, but it needs
to be serializable as a valid url
Exact details are not exposed and may vary per specific DataService or RawDataService
- Source:
Extends
- external:Montage
Members
_typeName :String
The primaryKey of the object the dataIdentifier represents
Type:
- String
- Source:
dataService :DataService
The DataService that created this DataIdentifier
Type:
- Source:
isPersistent :boolean
Whether a DataIdentifier is persistent/final vs temporary when created
client side.
Type:
- boolean
- Source:
name :String
The name of this descriptor
Type:
- String
objectDescriptor :ObjectDescriptor
The ObjectDescriptor associated with a dataIdentifier if available
Type:
- Source:
primaryKey :Object
The primaryKey of the object the dataIdentifier represents
Type:
- Object
- Source:
url :string
The url representation of a dataIdentifier
Type:
- string
- Source: