@@ -20,9 +20,9 @@ public partial class BulkOperationCleanupAction :
20
20
ICacheableExecutable
21
21
{
22
22
private readonly ISessionFactoryImplementor _factory ;
23
- private readonly HashSet < string > _affectedEntityNames ;
24
- private readonly HashSet < string > _affectedCollectionRoles ;
25
- private readonly string [ ] _spaces ;
23
+ private readonly HashSet < string > affectedEntityNames ;
24
+ private readonly HashSet < string > affectedCollectionRoles ;
25
+ private readonly string [ ] spaces ;
26
26
private readonly bool _hasCache ;
27
27
28
28
public BulkOperationCleanupAction ( ISessionImplementor session , IQueryable [ ] affectedQueryables )
@@ -34,29 +34,29 @@ public BulkOperationCleanupAction(ISessionImplementor session, IQueryable[] affe
34
34
if ( queryables . HasCache )
35
35
{
36
36
_hasCache = true ;
37
- if ( _affectedEntityNames == null )
37
+ if ( affectedEntityNames == null )
38
38
{
39
- _affectedEntityNames = new HashSet < string > ( ) ;
39
+ affectedEntityNames = new HashSet < string > ( ) ;
40
40
}
41
41
42
- _affectedEntityNames . Add ( queryables . EntityName ) ;
42
+ affectedEntityNames . Add ( queryables . EntityName ) ;
43
43
}
44
44
45
45
var roles = _factory . GetCollectionRolesByEntityParticipant ( queryables . EntityName ) ;
46
46
if ( roles != null )
47
47
{
48
- if ( _affectedCollectionRoles == null )
48
+ if ( affectedCollectionRoles == null )
49
49
{
50
- _affectedCollectionRoles = new HashSet < string > ( ) ;
50
+ affectedCollectionRoles = new HashSet < string > ( ) ;
51
51
}
52
52
53
- _affectedCollectionRoles . UnionWith ( roles ) ;
53
+ affectedCollectionRoles . UnionWith ( roles ) ;
54
54
}
55
55
56
56
tmpSpaces . UnionWith ( queryables . QuerySpaces ) ;
57
57
}
58
58
59
- _spaces = tmpSpaces . ToArray ( ) ;
59
+ spaces = tmpSpaces . ToArray ( ) ;
60
60
}
61
61
62
62
/// <summary>
@@ -80,29 +80,29 @@ public BulkOperationCleanupAction(ISessionImplementor session, ISet<string> quer
80
80
if ( persister . HasCache )
81
81
{
82
82
_hasCache = true ;
83
- if ( _affectedEntityNames == null )
83
+ if ( affectedEntityNames == null )
84
84
{
85
- _affectedEntityNames = new HashSet < string > ( ) ;
85
+ affectedEntityNames = new HashSet < string > ( ) ;
86
86
}
87
87
88
- _affectedEntityNames . Add ( persister . EntityName ) ;
88
+ affectedEntityNames . Add ( persister . EntityName ) ;
89
89
}
90
90
91
91
var roles = session . Factory . GetCollectionRolesByEntityParticipant ( persister . EntityName ) ;
92
92
if ( roles != null )
93
93
{
94
- if ( _affectedCollectionRoles == null )
94
+ if ( affectedCollectionRoles == null )
95
95
{
96
- _affectedCollectionRoles = new HashSet < string > ( ) ;
96
+ affectedCollectionRoles = new HashSet < string > ( ) ;
97
97
}
98
98
99
- _affectedCollectionRoles . UnionWith ( roles ) ;
99
+ affectedCollectionRoles . UnionWith ( roles ) ;
100
100
}
101
101
102
102
tmpSpaces . UnionWith ( entitySpaces ) ;
103
103
}
104
104
}
105
- _spaces = tmpSpaces . ToArray ( ) ;
105
+ spaces = tmpSpaces . ToArray ( ) ;
106
106
}
107
107
108
108
private bool AffectedEntity ( ISet < string > querySpaces , string [ ] entitySpaces )
@@ -119,7 +119,7 @@ private bool AffectedEntity(ISet<string> querySpaces, string[] entitySpaces)
119
119
120
120
#region IExecutable Members
121
121
122
- public string [ ] PropertySpaces => _spaces ;
122
+ public string [ ] PropertySpaces => spaces ;
123
123
124
124
public void BeforeExecutions ( )
125
125
{
@@ -155,17 +155,17 @@ public void ExecuteAfterTransactionCompletion(bool success)
155
155
156
156
private void EvictCollectionRegions ( )
157
157
{
158
- if ( _affectedCollectionRoles != null )
158
+ if ( affectedCollectionRoles != null )
159
159
{
160
- _factory . EvictCollection ( _affectedCollectionRoles ) ;
160
+ _factory . EvictCollection ( affectedCollectionRoles ) ;
161
161
}
162
162
}
163
163
164
164
private void EvictEntityRegions ( )
165
165
{
166
- if ( _affectedEntityNames != null )
166
+ if ( affectedEntityNames != null )
167
167
{
168
- _factory . EvictEntity ( _affectedEntityNames ) ;
168
+ _factory . EvictEntity ( affectedEntityNames ) ;
169
169
}
170
170
}
171
171
0 commit comments