Skip to content

Commit b5c833f

Browse files
Merge pull request #291 from wimvelzeboer/feature/cleanUp
Correct typo's and casing of object names
2 parents 3bdba32 + 25e01e5 commit b5c833f

File tree

8 files changed

+114
-114
lines changed

8 files changed

+114
-114
lines changed

sfdx-source/apex-common/main/classes/fflib_Application.cls

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public virtual class fflib_Application
118118
}
119119

120120
/**
121-
* Simple Service Factory implementaiton
121+
* Simple Service Factory implementation
122122
**/
123123
public virtual class ServiceFactory
124124
{
@@ -154,7 +154,7 @@ public virtual class fflib_Application
154154
if(m_serviceInterfaceTypeByMockService.containsKey(serviceInterfaceType))
155155
return m_serviceInterfaceTypeByMockService.get(serviceInterfaceType);
156156

157-
// Create an instance of the type impleneting the given interface
157+
// Create an instance of the type implementing the given interface
158158
Type serviceImpl = m_serviceInterfaceTypeByServiceImplType.get(serviceInterfaceType);
159159
if(serviceImpl==null)
160160
throw new DeveloperException('No implementation registered for service interface ' + serviceInterfaceType.getName());
@@ -178,7 +178,7 @@ public virtual class fflib_Application
178178

179179
/**
180180
* Consturcts a Selector Factory linking SObjectType's with Apex Classes implement the fflib_ISObjectSelector interface
181-
* Note that the factory does not chekc the given Apex Classes implement the interface
181+
* Note that the factory does not check the given Apex Classes implement the interface
182182
* currently this is not possible in Apex.
183183
*
184184
* @Param sObjectBySelectorType Map of SObjectType's to Selector Apex Classes
@@ -191,7 +191,7 @@ public virtual class fflib_Application
191191

192192
/**
193193
* Creates a new instance of the associated Apex Class implementing fflib_ISObjectSelector
194-
* for the given SObjectType, or if provided via setMock returns the Mock implementaton
194+
* for the given SObjectType, or if provided via setMock returns the Mock implementation
195195
*
196196
* @param sObjectType An SObjectType token, e.g. Account.SObjectType
197197
**/
@@ -241,9 +241,9 @@ public virtual class fflib_Application
241241
* Account selector to query the related Account records, e.g.
242242
*
243243
* List<Account> accounts =
244-
* (List<Account>) Applicaiton.Selector.selectByRelationship(myOpps, Opportunity.AccountId);
244+
* (List<Account>) Application.Selector.selectByRelationship(myOpps, Opportunity.AccountId);
245245
*
246-
* @param relatedRecords used to extract the related record Ids, e.g. Opportunty records
246+
* @param relatedRecords used to extract the related record Ids, e.g. Opportunity records
247247
* @param relationshipField field in the passed records that contains the relationship records to query, e.g. Opportunity.AccountId
248248
**/
249249
public List<SObject> selectByRelationship(List<SObject> relatedRecords, SObjectField relationshipField)
@@ -277,7 +277,7 @@ public virtual class fflib_Application
277277
protected Map<SObjectType, fflib_ISObjectDomain> m_sObjectByMockDomain;
278278

279279
/**
280-
* Consturcts a Domain factory, using an instance of the Selector Factory
280+
* Constructs a Domain factory, using an instance of the Selector Factory
281281
* and a map of Apex classes implementing fflib_ISObjectDomain by SObjectType
282282
* Note this will not check the Apex classes provided actually implement the interfaces
283283
* since this is not possible in the Apex runtime at present
@@ -308,12 +308,12 @@ public virtual class fflib_Application
308308
}
309309

310310
/**
311-
* Dynamically constructs an instace of the Domain class for the given records
311+
* Dynamically constructs an instance of the Domain class for the given records
312312
* Will return a Mock implementation if one has been provided via setMock
313313
*
314-
* @param records A concreate list (e.g. List<Account> vs List<SObject>) of records
314+
* @param records A concrete list (e.g. List<Account> vs List<SObject>) of records
315315
* @exception Throws an exception if the SObjectType cannot be determined from the list
316-
* or the constructor for Domain class was not registered for the SOBjectType
316+
* or the constructor for Domain class was not registered for the SObjectType
317317
**/
318318
public virtual fflib_ISObjectDomain newInstance(List<SObject> records)
319319
{
@@ -337,7 +337,7 @@ public virtual class fflib_Application
337337
}
338338

339339
/**
340-
* Dynamically constructs an instace of the Domain class for the given records and SObjectType
340+
* Dynamically constructs an instance of the Domain class for the given records and SObjectType
341341
* Will return a Mock implementation if one has been provided via setMock
342342
*
343343
* @param records A list records

sfdx-source/apex-common/main/classes/fflib_ISObjectUnitOfWork.cls

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,29 @@ public interface fflib_ISObjectUnitOfWork
4343
void registerNew(List<SObject> records);
4444
/**
4545
* Register a newly created SObject instance to be inserted when commitWork is called,
46-
* you may also provide a reference to the parent record instance (should also be registered as new separatly)
46+
* you may also provide a reference to the parent record instance (should also be registered as new separately)
4747
*
4848
* @param record A newly created SObject instance to be inserted during commitWork
4949
* @param relatedToParentField A SObjectField reference to the child field that associates the child record with its parent
50-
* @param relatedToParentRecord A SObject instance of the parent record (should also be registered as new separatly)
50+
* @param relatedToParentRecord A SObject instance of the parent record (should also be registered as new separately)
5151
**/
52-
void registerNew(SObject record, Schema.sObjectField relatedToParentField, SObject relatedToParentRecord);
52+
void registerNew(SObject record, Schema.SObjectField relatedToParentField, SObject relatedToParentRecord);
5353
/**
5454
* Register a relationship between two records that have yet to be inserted to the database. This information will be
5555
* used during the commitWork phase to make the references only when related records have been inserted to the database.
5656
*
5757
* @param record An existing or newly created record
58-
* @param relatedToField A SObjectField referene to the lookup field that relates the two records together
59-
* @param relatedTo A SOBject instance (yet to be commited to the database)
58+
* @param relatedToField A SObjectField reference to the lookup field that relates the two records together
59+
* @param relatedTo A SObject instance (yet to be committed to the database)
6060
*/
61-
void registerRelationship(SObject record, Schema.sObjectField relatedToField, SObject relatedTo);
61+
void registerRelationship(SObject record, Schema.SObjectField relatedToField, SObject relatedTo);
6262
/**
6363
* Registers a relationship between a record and a Messaging.Email where the record has yet to be inserted
6464
* to the database. This information will be
6565
* used during the commitWork phase to make the references only when related records have been inserted to the database.
6666
*
6767
* @param a single email message instance
68-
* @param relatedTo A SOBject instance (yet to be commited to the database)
68+
* @param relatedTo A SObject instance (yet to be committed to the database)
6969
*/
7070
void registerRelationship(Messaging.SingleEmailMessage email, SObject relatedTo);
7171
/**
@@ -75,13 +75,13 @@ public interface fflib_ISObjectUnitOfWork
7575
* @param record An existing or newly created record
7676
* @param relatedToField A SObjectField reference to the lookup field that relates the two records together
7777
* @param externalIdField A SObjectField reference to a field on the target SObject that is marked as isExternalId
78-
* @param externalId A Object representing the targetted value of the externalIdField in said lookup
78+
* @param externalId A Object representing the targeted value of the externalIdField in said lookup
7979
*
8080
* Usage Example: uow.registerRelationship(recordSObject, record_sobject__c.relationship_field__c, lookup_sobject__c.external_id__c, 'abc123');
8181
*
8282
* Wraps putSObject, creating a new instance of the lookup sobject using the external id field and value.
8383
*/
84-
void registerRelationship(SObject record, Schema.sObjectField relatedToField, Schema.sObjectField externalIdField, Object externalId);
84+
void registerRelationship(SObject record, Schema.SObjectField relatedToField, Schema.SObjectField externalIdField, Object externalId);
8585
/**
8686
* Register an existing record to be updated during the commitWork method
8787
*
@@ -99,7 +99,7 @@ public interface fflib_ISObjectUnitOfWork
9999
**/
100100
void registerDirty(List<SObject> records, List<SObjectField> dirtyFields);
101101
/**
102-
* Register specific fields on record to be updated when work is commited
102+
* Register specific fields on record to be updated when work is committed
103103
*
104104
* If the record has previously been registered as dirty, the dirty fields on the record in this call will overwrite
105105
* the values of the previously registered dirty record
@@ -110,13 +110,13 @@ public interface fflib_ISObjectUnitOfWork
110110
void registerDirty(SObject record, List<SObjectField> dirtyFields);
111111
/**
112112
* Register an existing record to be updated when commitWork is called,
113-
* you may also provide a reference to the parent record instance (should also be registered as new separatly)
113+
* you may also provide a reference to the parent record instance (should also be registered as new separately)
114114
*
115115
* @param record A newly created SObject instance to be inserted during commitWork
116116
* @param relatedToParentField A SObjectField reference to the child field that associates the child record with its parent
117-
* @param relatedToParentRecord A SObject instance of the parent record (should also be registered as new separatly)
117+
* @param relatedToParentRecord A SObject instance of the parent record (should also be registered as new separately)
118118
**/
119-
void registerDirty(SObject record, Schema.sObjectField relatedToParentField, SObject relatedToParentRecord);
119+
void registerDirty(SObject record, Schema.SObjectField relatedToParentField, SObject relatedToParentRecord);
120120
/**
121121
* Register a list of existing records to be updated during the commitWork method
122122
*
@@ -168,7 +168,7 @@ public interface fflib_ISObjectUnitOfWork
168168
/**
169169
* Register a list of existing records to be deleted and removed from the recycle bin during the commitWork method
170170
*
171-
* @param records A list of existing records
171+
* @param record A list of existing records
172172
**/
173173
void registerPermanentlyDeleted(SObject record);
174174
/**

0 commit comments

Comments
 (0)