Unit Of Work
- Stores DML interactions
- Manages bulkified DML operations
- To be created and used in the
Service
layer, and to be passed to theDomain
layer. commitWork()
to be called at the end of the transaction.- order of
SObject
s does matter. Will insert in the order provided.