Chapter 6. The Life Cycle of a Domain Object Flashcards
___________ mark off the scope within which ________ have to be maintained at every stage of the life cycle.
Aggregates
invariants
DDD, p. 124
Factories and repositories operate on ________, encapsulating the complexity of specific _________.
aggregates
life cycle transitions
DDD, p. 124
With many users consulting and updating different objects in the system, we have to prevent _________ to interdependent objects
simultaneous changes
DDD, p. 126
An aggregate is a ________ of associated objects that we treat as a unit for the purposes of __________
cluster
data changes
DDD, p. 126
Each aggregate has a ________ and a _______.
root
boundary
DDD, p. 126
The __________ defines what is inside the aggregate.
boundary
DDD, p. 126
The root is a ________, _________ contained in the aggregate.
single, specific entity
DDD, p. 126-7
The root is the only member of the aggregate that _________ are allowed to __________.
outside objects
hold reference to
DDD, p, 127
Objects within the boundary may ________ to each other
hold references to
DDD, p. 127
In an aggregate, entities other than the root have a ______ identity.
local
DDD, p. 127
Invariants are ________ rules that must be maintained whenever data ________.
Consistency
Changes
DDD, p. 128
Any rule that _______ aggregates will not be expected to be _______ at all times.
spans
up-to-date
DDD, p. 128
The ______ applied within an aggregate will be _________ with the ________ of each transaction.
invariants
enforced
completion
DDD, p. 128
In the DDD UML models, invariants are indicated by: __________
rules within { }
e.g., {mileage = sum(Position.mileage)}
DDD, p.1 28
The root entity has a _______ identity and is ultimately responsible for checking _________.
global
invariants
DDD, p. 128