WimVelzeboer
0b4d878382
Add domain method to map the record Id to a grand-grand-...-parent record Id
2022-05-25 12:22:48 +01:00
WimVelzeboer
601c45ab1b
Avoid unexpected exceptions when the recordIds contains incorrect data
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-05-10 14:40:55 +01:00
WimVelzeboer
54490cc32d
Fix for updated fflib-apex-common
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-05-09 16:05:54 +01:00
William Velzeboer
06abca48d3
Merge pull request #39 from wimvelzeboer/feature/MoreDomainMethods
...
Add fflib_SObjects2.getRecords(sObjectField, Boolean) method
2022-03-21 07:20:01 +00:00
William Velzeboer
0773178d39
Merge pull request #38 from wimvelzeboer/feature/Factories
...
Add Factory method for records based on an Id field
2022-03-16 21:51:49 +00:00
WimVelzeboer
ee8a8465c0
Add fflib_SObjects2.getRecords(sObjectField, Boolean) method
...
`List<SObject> getRecords(Schema.SObjectField sObjectField, Boolean value)`
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 21:51:12 +00:00
WimVelzeboer
ad75a9b790
Add Factory method for records based on an Id field
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 21:16:25 +00:00
William Velzeboer
fc94ac565c
Merge pull request #37 from wimvelzeboer/feature/UnitOfWorkRegisterBulkWithRelationships
...
Add overloaded method for register dirty with relationships
2022-03-16 15:55:10 +00:00
WimVelzeboer
bbf7e5b93c
Add overloaded method for register dirty with relationships
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 14:28:24 +00:00
WimVelzeboer
3335482e8f
Add mergeMap to fflib_ArrayUtils
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 10:06:58 +00:00
WimVelzeboer
d139917d69
Add getAllValues to fflib_ArrayUtils
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 09:47:30 +00:00
WimVelzeboer
0943def0df
Add domain methods
...
getRecords(sObjectField, Id)
getRecords(sObjectField, Set<Id>)
getRecords(sObjectField, String)
getRecords(sObjectField, Set<String>)
getRecordsIsNot(sObjectField, Id)
getRecordsNotIn(sObjectField, Set<Id>)
getRecordsIsNot(sObjectField, String)
getRecordsNotIn(sObjectField, Set<String>)
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-08 11:27:58 +00:00
WimVelzeboer
3113ec8378
Add domain method getRecordsByFieldValueIsNot
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-04 12:29:37 +00:00
WimVelzeboer
ac1f7bbac0
Add fflib_SObjectFactory class
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-01 12:01:30 +00:00
William Velzeboer
3f377be589
Merge pull request #33 from wimvelzeboer/feature/AddContainsAndLikeToCriteria
...
Add fflib_Criteria.contains method for related field
2022-03-01 10:39:31 +00:00
WimVelzeboer
f28fa87581
Add fflib_Criteria.contains method for related field
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-28 10:57:55 +00:00
William Velzeboer
4e8369cfbe
Merge pull request #32 from wimvelzeboer/feature/AddContainsAndLikeToCriteria
...
Add LIKE and Contains condition to Criteria
2022-02-25 11:16:44 +00:00
WimVelzeboer
23ec70e2f1
Add LIKE and Contains condition to Criteria
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-25 11:11:31 +00:00
William Velzeboer
de7347e4af
Merge pull request #31 from wimvelzeboer/feature/MoreDomainMethods
...
Improve fflib_SObjects2.getSObjectsByIdField
2022-02-24 12:48:56 +00:00
WimVelzeboer
969b0fbba7
Improve fflib_SObjects2.getSObjectsByIdField
...
Add unit-test and method to domain template
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-24 09:43:38 +00:00
William Velzeboer
932f1b8f23
Merge pull request #30 from wimvelzeboer/feature/MoreDomainMethods
...
More domain methods
2022-02-23 13:27:42 +00:00
WimVelzeboer
acb5cdc98b
More domain methods
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-23 12:03:34 +00:00
William Velzeboer
a0fae69635
Merge pull request #28 from JAertgeerts/main
...
Fix null check
2022-02-16 10:31:37 +00:00
Jan Aertgeerts
81dfa9bfb8
Fix null check
2022-02-16 09:49:04 +01:00
William Velzeboer
336917e9db
Fix bug on constructor method
2022-02-03 13:40:58 +00:00
WimVelzeboer
901cc03f9a
Add class fflib_MockSOQLResult
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-31 12:53:02 +00:00
William Velzeboer
e6e99ce84d
Fix issue with fflib_RecordType when cache is null
2022-01-29 20:53:56 +00:00
WimVelzeboer
cad0396447
Add selector and factory class for SObjectShares
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-24 09:50:39 +00:00
WimVelzeboer
933383970a
Add fflib_RecordTypeId.cls for getting the recordType Ids based on cached values
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-19 11:40:32 +00:00
WimVelzeboer
2ff66b6a2f
Add virtual to fflib_SObjectTriggerHandler class
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-13 15:24:12 +00:00
WimVelzeboer
964a2ed032
Improved method for setting read-only field values
...
When mocking records, read-only field values can only be set with this method. It is now also compatible with Date field types
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-13 11:47:54 +00:00
William Velzeboer
130a20119e
Merge pull request #21 from JAertgeerts/feature/fix-object
...
Remove protected object visibility as this only works with 2GP
2022-01-12 21:33:46 +00:00
WimVelzeboer
547b22a080
Increase unit-test coverage for fflib_Criteria to 80%
...
Also added method overloads for inSet and notInSet to allow for related field (field names as String)
Fix for issue #19
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-12 21:21:12 +00:00
Jan Aertgeerts
2080d95b6d
Remove protected object visibility as this only works with 2GP
2022-01-12 12:19:20 +01:00
William Velzeboer
89c2e23625
Fix failing unit-test
2022-01-12 11:14:02 +00:00
William Velzeboer
74f49d4eb4
Merge branch 'main' into main
2022-01-12 10:56:01 +00:00
WimVelzeboer
07d1ab977b
Increase unit-test coverage of fflib_SObject2 to 94%
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-12 10:51:54 +00:00
WimVelzeboer
92daa2e645
Add unit-test for fflib_SObject2.getStringFieldByIdField
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-12 09:21:28 +00:00
WimVelzeboer
acb1fc21e8
Add method to add a readonly field for mocking.
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-11 18:54:12 +00:00
Jan Aertgeerts
bc62708b88
add getIdFieldByStringField()
2022-01-10 11:49:20 +01:00
WimVelzeboer
a48dbe519f
Bugfix to getStringFieldByIdField method
...
Method arguments were in the incorrect order.
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-05 13:19:33 +00:00
WimVelzeboer
24ba673d8e
Add support to compare a date against a date time
2021-12-13 18:21:57 +00:00
WimVelzeboer
6ee805dfd8
Add extra unit-test coverage
2021-12-10 09:27:25 +00:00
WimVelzeboer
9822d06610
Bugfix in triggerhandler
2021-12-09 12:10:40 +00:00
Wim Velzeboer
c8a2c39959
Bugfix for issue #19
2021-11-25 15:29:00 +00:00
WimVelzeboer
0d8e29d00b
Add more insight into how the fflib_Criteria formula was evaluated
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-22 21:00:11 +00:00
WimVelzeboer
1f45c8d4c2
Add setter method to fflib_SObjects2 plus unit-test
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-04 17:18:46 +00:00
WimVelzeboer
6eee1acdb6
Add getDecimalFieldSum method to domain
...
This will summarise the Decimal field value
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-03 15:24:05 +00:00
WimVelzeboer
5b486bc3a2
Delete MyTest class
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-01 13:27:35 +00:00
WimVelzeboer
ef77fad3ed
Improvements to the trigger handler
...
Ability to disable trigger action in meta-data, and adds a stateful option
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-10-28 15:35:28 +01:00