Unit 4 - Lesson 3 - Unique IDs Flashcards

1
Q

Describe purpose of key sets

A

Curam unique IDs are drawn from repopulated, pseudorandom key sets.
Developers can use default key set or nominate a specific key set.
Process of choosing keys and replenishing key sets is covered in detail in the API documentation.
Key sets defined in Keyserver.dmx and loaded to the key server table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain how to generate unique IDs using the model approach

A

Auto ID field in a model on INSERT operation.

Auto ID Key to specify key set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Generate and return a unique ID using the programmatic approach

A

Create unique ID from general set of IDs:
UniqueID using UniqueIDFactory.
getNextID() method.
From specific set of IDs:
UniqueIDKeySet with keySetName attribute = “ACCOUNTED”.
getNextIDFromKeySet(uniqueIDKeySet) method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Outline the factors that influence the key generation approach to use

A

Business requirement specific key set.
Is default ID generation is sufficient for your code?
Programmatic IDs give full control.
Auto - Generic solution, no extra code.
Auto - centralise the choice of key set, reducing chances of a key conflict.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe system-generated Unique IDs

A

User should not create primary Keys
Unique IDs can be generated in 2 ways:
* Auto ID field in a model on INSERT operation
* Programmatically
Unique IDs can be human readable or non-human readable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain KeyServer.dmx

A

keySetCode - attribute acts as an identifier for the key set.
nextUniqueIdBlock - Setting higher number in production system may be useful - allows to skip number that might have already been used when migrating data from a legacy system.
humanReadable - attribute is set to True if the Unique IDs should be human-readable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly