Salesforce SoC and Apex Common Tutorial Series: Ep 6 - The fflib SObjectUnitOfWork Class

preview_player
Показать описание
In this sixth episode of this tutorial series covering Separation of Concerns and the Apex Commons Library, I'm going to explain fflib_SObjectUnitOfWork class is, why you would use it and how it fits into the apex common library and SoC.

Separation of Concerns Tutorial Series Order (Subject to Change):
Episode 1 - The Basics of Separation of Concerns
Episode 2 - Introduction to the Apex Common Library
Episode 3 - The Factory Pattern
Episode 4 - The fflib_Application Class
Episode 5 - The Unit of Work Pattern
Episode 6 - The fflib_SObjectUnitOfWork Class
Episode 7 - The Service Layer
Episode 8 - Implementing the Service Layer with the Apex Common Library
Episode 9 - The Template Method Pattern
Episode 10 - The Domain Layer
Episode 11 - Implementing the Domain Layer with the Apex Common Library
Episode 12 - The Builder Pattern
Episode 13 - The Selector Layer
Episode 14 - Implementing the Selector Layer with the Apex Common Library
Episode 15 - The Difference Between Unit Tests and Integration Tests
Episode 16 - Unit Testing and Separation of Concerns
Episode 17 - Implementing Unit Testing with Apex Mocks

Follow all of our social media here:

Salesforce development books I recommend:

Good Non-SF Specific Development Books:

-------------------------------------------------------------------------------------------------------------------------

Table of Contents:

0:00 - Intro
2:08 - Why use the fflib_SObjectUnitOfWork class
4:06 - How to leverage the fflib_SObjectUnitOfWork class
6:10 - Building some example code together
17:22 - The importance of the application factory object type order
22:14 - Reviewing the methods in the fflib_SObjectUnitOfWork class
27:50 - Why to use the IDML Interface
31:00 - Outro

DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios.

#salesforce #salesforcedeveloper #salesforceadmin
Рекомендации по теме
Комментарии
Автор

1 AM, I am still watching your videos. That is so great. Finally, I understood the concept and work on my own. Thanks.

stevenduong
Автор

How awesome is having a personal house ghost :D
Thanks for the whole explanation series! Subbed and liking each and every vid as I watch 'em through.

Geneue
Автор

Great videos and thanks so much for sharing this.

stevenduong
Автор

Great content. I have a question: If the UOW is being stored in memory before committing, dont we run into apex heap memory limits when executed in batch content?

Vishnureddymanumachu
Автор

First of all thank you for this awesome series.

Just wanted to check is it possible to override the rollback behaviour. I want some record to save even if there is some error.

gauravchopra-rlnn
Автор

Great video and I really appreciate the work you are doing here.

Question: The registerRelationship method. Is that a one shot method call or can that be done in a for loop for bulkification of related records? Thank you again for this incredibly informative series.

And was that your local ghost or haunting that opened the door? LOL!

ericolson