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