|
54 | 54 | public virtual class fflib_SObjectUnitOfWork |
55 | 55 | implements fflib_ISObjectUnitOfWork |
56 | 56 | { |
57 | | - private List<Schema.SObjectType> m_sObjectTypes = new List<Schema.SObjectType>(); |
| 57 | + protected List<Schema.SObjectType> m_sObjectTypes = new List<Schema.SObjectType>(); |
58 | 58 |
|
59 | | - private Map<String, List<SObject>> m_newListByType = new Map<String, List<SObject>>(); |
| 59 | + protected Map<String, List<SObject>> m_newListByType = new Map<String, List<SObject>>(); |
60 | 60 |
|
61 | | - private Map<String, Map<Id, SObject>> m_dirtyMapByType = new Map<String, Map<Id, SObject>>(); |
| 61 | + protected Map<String, Map<Id, SObject>> m_dirtyMapByType = new Map<String, Map<Id, SObject>>(); |
62 | 62 |
|
63 | | - private Map<String, Map<Id, SObject>> m_deletedMapByType = new Map<String, Map<Id, SObject>>(); |
| 63 | + protected Map<String, Map<Id, SObject>> m_deletedMapByType = new Map<String, Map<Id, SObject>>(); |
64 | 64 |
|
65 | | - private Map<String, Relationships> m_relationships = new Map<String, Relationships>(); |
| 65 | + protected Map<String, Relationships> m_relationships = new Map<String, Relationships>(); |
66 | 66 |
|
67 | | - private List<IDoWork> m_workList = new List<IDoWork>(); |
| 67 | + protected List<IDoWork> m_workList = new List<IDoWork>(); |
68 | 68 |
|
69 | | - private SendEmailWork m_emailWork = new SendEmailWork(); |
| 69 | + protected SendEmailWork m_emailWork = new SendEmailWork(); |
70 | 70 |
|
71 | | - private IDML m_dml; |
| 71 | + protected IDML m_dml; |
72 | 72 |
|
73 | 73 | /** |
74 | 74 | * Interface describes work to be performed during the commitWork method |
@@ -145,12 +145,12 @@ public virtual class fflib_SObjectUnitOfWork |
145 | 145 | m_newListByType.put(sObjectType.getDescribe().getName(), new List<SObject>()); |
146 | 146 | m_dirtyMapByType.put(sObjectType.getDescribe().getName(), new Map<Id, SObject>()); |
147 | 147 | m_deletedMapByType.put(sObjectType.getDescribe().getName(), new Map<Id, SObject>()); |
148 | | - m_relationships.put(sObjectType.getDescribe().getName(), new Relationships()); |
| 148 | + m_relationships.put(sObjectType.getDescribe().getName(), new Relationships()); |
149 | 149 |
|
150 | 150 | // give derived class opportunity to register the type |
151 | | - onRegisterType(sObjectType); |
| 151 | + onRegisterType(sObjectType); |
152 | 152 | } |
153 | | - |
| 153 | + |
154 | 154 | /** |
155 | 155 | * Register a generic peace of work to be invoked during the commitWork phase |
156 | 156 | **/ |
@@ -312,7 +312,7 @@ public virtual class fflib_SObjectUnitOfWork |
312 | 312 |
|
313 | 313 | // Wrap the work in its own transaction |
314 | 314 | Savepoint sp = Database.setSavePoint(); |
315 | | - Boolean wasSuccessful = false; |
| 315 | + Boolean wasSuccessful = false; |
316 | 316 | try |
317 | 317 | { |
318 | 318 | // notify we're starting the DML operations |
@@ -355,7 +355,7 @@ public virtual class fflib_SObjectUnitOfWork |
355 | 355 | throw e; |
356 | 356 | } |
357 | 357 | finally |
358 | | - { |
| 358 | + { |
359 | 359 | // notify we're done with commit work |
360 | 360 | onCommitWorkFinished(wasSuccessful); |
361 | 361 | } |
|
0 commit comments