Skip to content

Why methods used to register records for update are called registerDirty instead of registerUpdate? #431

Answered by wimvelzeboer
lDante93 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lDante93
The reason for this is that it is the standard terminology of the design pattern "Unit Of Work".
See also: https://martinfowler.com/eaaCatalog/unitOfWork.html

In the fflib_SObjectUnitOfWork is only the registerClean missing, I had a discussion about adding that a long while ago, but at the end it did not go through.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lDante93
Comment options

@wimvelzeboer
Comment options

Answer selected by daveespo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants