The Apex Common Library Master Class
The Unit of Work Pattern in Apex (Apex Common Part 5)
What is the Unit of Work Pattern (UOW) A Unit of Work, “Maintains a list of objects affected by a business transaction and coordinates the writing…
5 May 2021
3 min
Category
Salesforce Tutorials
All of our Salesforce tutorials
143 posts
The Apex Common Library Master Class
The Unit of Work Pattern in Apex (Apex Common Part 5)
What is the Unit of Work Pattern (UOW) A Unit of Work, “Maintains a list of objects affected by a business transaction and coordinates the writing…
5 May 2021
3 min
The Apex Common Library Master Class
The fflib_Application Class Explained (Apex Common Part 4)
What is the fflib_Application class? Quality question… I mean honestly wtf is this thing? Lol, sorry, let’s figure it out together. The fflib_Application class is around…
5 May 2021
12 min
The Apex Common Library Master Class
The Selector Layer Pattern in Apex (Apex Common Part 13)
What is the Selector Layer The Selector Layer is Salesforce is based off Martin Fowler’s Data Mapper Layer concept. It’s, “a layer of Mappers that moves…
5 May 2021
3 min
The Apex Common Library Master Class
The Factory Method Pattern in Apex (Apex Common Part 3)
What is the Factory Method Pattern? The factory method pattern allows you to create objects (or instantiate classes) without having to specify the exact class that…
5 May 2021
4 min
The Apex Common Library Master Class
Unit Testing with the Apex Mocks Library (Part 17)
What is Apex Mocks? Apex Mocks is unit test mocking framework for Apex that was inspired by the very popular Java Mockito framework. The Apex Mocks…
5 May 2021
21 min
The Apex Common Library Master Class
Implementing the Service Layer with fflib (Part 8)
Preparation for the rest of this article There is NO FRAMEWORK that can be made for service layer classes. This is a business logic layer and…
5 May 2021
10 min
The Apex Common Library Master Class
The Template Method Pattern in Apex (Apex Common Part 9)
What is the Template Method Pattern? The Template Method Pattern is one of the more popular Behavioral Design Pattern. The Template Design Pattern basically is creating…
5 May 2021
2 min
The Apex Common Library Master Class
Unit Test Mocks with Separation of Concerns (Part 16)
How does Unit Testing fit into Separation of Concerns? The answer to this is simple, without Separation of Concerns, there is no unit testing, it just…
5 May 2021
6 min
The Apex Common Library Master Class
The Builder Pattern in Apex (Apex Common Part 12)
What is the Builder Pattern? The Builder Pattern is a Creational Design Pattern that allows you to construct a complex object one step at a time.…
5 May 2021
5 min
The Apex Common Library Master Class
Unit Tests vs Integration Tests in Apex (Part 15)
What is Unit Testing? Unit Testing, is a way to test the logic in one class and ONLY one class at a time. Most classes in…
5 May 2021
4 min
The Apex Common Library Master Class
The fflib_SObjectUnitOfWork Class (Apex Common Part 6)
What is the fflib_SObjectUnitOfWork class? It is a foundation built to allow you to leverage the unit of work design pattern from within Salesforce. Basically this…
5 May 2021
6 min
The Apex Common Library Master Class
Implementing the Domain Layer with fflib (Part 11)
The template for every Domain Class you create Every Domain layer class you create for an object should at minimum have the following logic in it…
5 May 2021
9 min