@@ -70,32 +70,32 @@ public IQueryPlan GetHQLQueryPlan(string queryString, bool shallow, IDictionary<
70
70
return plan ;
71
71
}
72
72
73
- public IQueryExpressionPlan GetHQLQueryPlan ( IQueryExpression queryExpression , bool shallow , IDictionary < string , IFilter > enabledFilters )
74
- {
75
- string expressionStr = queryExpression . Key ;
76
-
77
- var key = new HQLQueryPlanKey ( expressionStr , shallow , enabledFilters ) ;
78
- var plan = ( IQueryExpressionPlan ) planCache [ key ] ;
79
-
80
- if ( plan == null )
81
- {
82
- if ( log . IsDebugEnabled )
83
- {
84
- log . Debug ( "unable to locate HQL query plan in cache; generating (" + expressionStr + ")" ) ;
85
- }
86
- plan = new HQLExpressionQueryPlan ( expressionStr , queryExpression , shallow , enabledFilters , factory ) ;
87
- planCache . Put ( key , plan ) ;
88
- }
89
- else
90
- {
91
- if ( log . IsDebugEnabled )
92
- {
93
- log . Debug ( "located HQL query plan in cache (" + expressionStr + ")" ) ;
94
- }
95
- }
96
-
97
- return plan ;
98
- }
73
+ public IQueryExpressionPlan GetHQLQueryPlan ( IQueryExpression queryExpression , bool shallow , IDictionary < string , IFilter > enabledFilters )
74
+ {
75
+ string expressionStr = queryExpression . Key ;
76
+
77
+ var key = new HQLQueryPlanKey ( expressionStr , shallow , enabledFilters ) ;
78
+ var plan = ( IQueryExpressionPlan ) planCache [ key ] ;
79
+
80
+ if ( plan == null )
81
+ {
82
+ if ( log . IsDebugEnabled )
83
+ {
84
+ log . Debug ( "unable to locate HQL query plan in cache; generating (" + expressionStr + ")" ) ;
85
+ }
86
+ plan = new HQLExpressionQueryPlan ( expressionStr , queryExpression , shallow , enabledFilters , factory ) ;
87
+ planCache . Put ( key , plan ) ;
88
+ }
89
+ else
90
+ {
91
+ if ( log . IsDebugEnabled )
92
+ {
93
+ log . Debug ( "located HQL query plan in cache (" + expressionStr + ")" ) ;
94
+ }
95
+ }
96
+
97
+ return plan ;
98
+ }
99
99
100
100
101
101
public FilterQueryPlan GetFilterQueryPlan ( string filterString , string collectionRole , bool shallow , IDictionary < string , IFilter > enabledFilters )
@@ -108,7 +108,7 @@ public FilterQueryPlan GetFilterQueryPlan(string filterString, string collection
108
108
if ( log . IsDebugEnabled )
109
109
{
110
110
log . Debug ( "unable to locate collection-filter query plan in cache; generating (" + collectionRole + " : "
111
- + filterString + ")" ) ;
111
+ + filterString + ")" ) ;
112
112
}
113
113
plan = new FilterQueryPlan ( filterString , collectionRole , shallow , enabledFilters , factory ) ;
114
114
planCache . Put ( key , plan ) ;
0 commit comments