Add link to code examples
This commit is contained in:
@@ -18,6 +18,10 @@ When you rather prefer the bare overview of classes, methods and their examples,
|
||||
then you can find a full overview of the methods, their signatures and description in the
|
||||
[ApexDocs](./docs/README.asciidoc).
|
||||
|
||||
## Example Application
|
||||
You can look at
|
||||
[these examples](https://github.com/wimvelzeboer/fflib-apex-extensions-samplecode)
|
||||
if you like to see this extension package in action.
|
||||
|
||||
## Migrating from apex-commons
|
||||
|
||||
|
||||
@@ -20,12 +20,14 @@ interface class.
|
||||
- <<constructor0, constructor: (resolver, selectorFactory)>> +
|
||||
|
||||
|
||||
== Methods
|
||||
== Inherited Methods
|
||||
This implementation of
|
||||
link:fflib_IDomainFactory.asciidoc[fflib_IDomainFactory]
|
||||
Does not add any new public or protected methods other than the following methods
|
||||
which are defined in the interface
|
||||
link:fflib_IDomainFactory.asciidoc[fflib_IDomainFactory].
|
||||
link:fflib_IDomainFactory.asciidoc[fflib_IDomainFactory]
|
||||
and in the abstract class
|
||||
link:fflib_DynamicAppFactory[fflib_DynamicAppFactory].
|
||||
|
||||
- link:fflib_IDomainFactory.asciidoc#newInstance1[newInstance(Set<Id> recordIds)] +
|
||||
Dynamically constructs an instance of a Domain class for the given record Ids
|
||||
|
||||
@@ -54,10 +54,9 @@ public class Application
|
||||
public static final fflib_ISelectorFactory Selector =
|
||||
new fflib_DynamicSelectorFactory(bindingResolver);
|
||||
|
||||
public static final fflib_ISelectorFactory WithoutSharingSelector =
|
||||
new fflib_DynamicSelectorFactory(
|
||||
bindingResolver.bySharingMode(fflib_SharingMode.WithoutSharing)
|
||||
);
|
||||
public static final fflib_ISelectorFactory ElevatedSelector =
|
||||
new fflib_DynamicSelectorFactory(bindingResolver)
|
||||
.setSharingMode(fflib_SharingMode.WithSharing);
|
||||
}
|
||||
```
|
||||
|
||||
@@ -69,13 +68,12 @@ public virtual inherited sharing class AccountsSelector
|
||||
{
|
||||
public static IAccountsSelector newInstance()
|
||||
{
|
||||
return (IAccountsSelector) Application.Selector.newInstance(Schema.Account.SObjectType);
|
||||
return (IAccountsSelector) Application.Selector.newInstance(Account.SObjectType);
|
||||
}
|
||||
|
||||
public static IAccountsSelector newWithoutSharingInstance()
|
||||
{
|
||||
return (IAccountsSelector) Application.WithoutSharingSelector
|
||||
.newInstance(Schema.Account.SObjectType);
|
||||
return (IAccountsSelector) Application.ElevatedSelector.newInstance(Account.SObjectType);
|
||||
}
|
||||
|
||||
public AccountsSelector()
|
||||
|
||||
Reference in New Issue
Block a user