File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11public virtual class RepoFactory {
22 private static final Map <Schema .SObjectType , IHistoryRepository > CACHED_REPOS = new Map <Schema .SObjectType , IHistoryRepository >();
3+ private Boolean shouldPrintBindVars = false ;
34
45 public Facade facade {
56 get {
@@ -11,6 +12,11 @@ public virtual class RepoFactory {
1112 protected set ;
1213 }
1314
15+ public RepoFactory setShouldPrintBindVars (Boolean shouldPrintBindVars ) {
16+ this .shouldPrintBindVars = shouldPrintBindVars ;
17+ return this ;
18+ }
19+
1420 public IHistoryRepository getProfileRepo () {
1521 return this .facade .getRepo (Profile .SObjectType , new List <Schema .SObjectField >{ Profile .Name }, this );
1622 }
@@ -45,6 +51,7 @@ public virtual class RepoFactory {
4551 } else {
4652 System .debug (System .LoggingLevel .FINER , ' Using cached repository of type: ' + repoType );
4753 }
54+ potentiallyCachedInstance .setShouldPrintBindVars (repoFactory .shouldPrintBindVars );
4855 return potentiallyCachedInstance ;
4956 }
5057 }
You can’t perform that action at this time.
0 commit comments