# Class: DataIdentifier

## DataIdentifier

#### 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:
  - data/model/data-identifier.js, line 28

### Extends

- external:Montage

### Members

#### _typeName :String

The primaryKey of the object the dataIdentifier represents

##### Type:

- String

Source:
  - data/model/data-identifier.js, line 62

#### dataService :DataService

The DataService that created this DataIdentifier

##### Type:

- DataService

Source:
  - data/model/data-identifier.js, line 35

#### isPersistent :boolean

Whether a DataIdentifier is persistent/final vs temporary when created client side.

##### Type:

- boolean

Source:
  - data/model/data-identifier.js, line 80

#### name :String

The name of this descriptor

##### Type:

- String

Source:
  - data/service/connection-descriptor.js, line 18

#### objectDescriptor :ObjectDescriptor

The ObjectDescriptor associated with a dataIdentifier if available

##### Type:

- ObjectDescriptor

Source:
  - data/model/data-identifier.js, line 44

#### primaryKey :Object

The primaryKey of the object the dataIdentifier represents

##### Type:

- Object

Source:
  - data/model/data-identifier.js, line 53

#### url :string

The url representation of a dataIdentifier

##### Type:

- string

Source:
  - data/model/data-identifier.js, line 97