18
18
import org .hibernate .type .BasicType ;
19
19
import org .hibernate .type .spi .TypeConfiguration ;
20
20
21
- import org .jboss .logging .Logger ;
22
-
23
21
import org .checkerframework .checker .nullness .qual .Nullable ;
24
22
25
23
import static java .lang .String .CASE_INSENSITIVE_ORDER ;
36
34
* @author Steve Ebersole
37
35
*/
38
36
public class SqmFunctionRegistry {
39
- private static final Logger log = Logger .getLogger ( SqmFunctionRegistry .class );
37
+ // private static final Logger log = Logger.getLogger( SqmFunctionRegistry.class );
40
38
41
39
private final CaseInsensitiveDictionary <SqmFunctionDescriptor > functionMap = new CaseInsensitiveDictionary <>();
42
40
private final CaseInsensitiveDictionary <SqmSetReturningFunctionDescriptor > setReturningFunctionMap = new CaseInsensitiveDictionary <>();
43
41
private final CaseInsensitiveDictionary <String > alternateKeyMap = new CaseInsensitiveDictionary <>();
44
42
45
43
public SqmFunctionRegistry () {
46
- log .trace ( "SqmFunctionRegistry created" );
44
+ // log.trace( "SqmFunctionRegistry created" );
47
45
}
48
46
49
47
public Set <String > getValidFunctionKeys () {
@@ -121,12 +119,13 @@ public Stream<Map.Entry<String, SqmSetReturningFunctionDescriptor>> getSetReturn
121
119
*/
122
120
public SqmFunctionDescriptor register (String registrationKey , SqmFunctionDescriptor function ) {
123
121
final SqmFunctionDescriptor priorRegistration = functionMap .put ( registrationKey , function );
124
- log .tracef (
125
- "Registered SqmFunctionTemplate [%s] under %s; prior registration was %s" ,
126
- function ,
127
- registrationKey ,
128
- priorRegistration
129
- );
122
+ // Incredibly verbose logging disabled
123
+ // log.tracef(
124
+ // "Registered SqmFunctionTemplate [%s] under %s; prior registration was %s",
125
+ // function,
126
+ // registrationKey,
127
+ // priorRegistration
128
+ // );
130
129
alternateKeyMap .remove ( registrationKey );
131
130
return function ;
132
131
}
@@ -136,12 +135,12 @@ public SqmFunctionDescriptor register(String registrationKey, SqmFunctionDescrip
136
135
*/
137
136
public SqmSetReturningFunctionDescriptor register (String registrationKey , SqmSetReturningFunctionDescriptor function ) {
138
137
final SqmSetReturningFunctionDescriptor priorRegistration = setReturningFunctionMap .put ( registrationKey , function );
139
- log .tracef (
140
- "Registered SqmSetReturningFunctionTemplate [%s] under %s; prior registration was %s" ,
141
- function ,
142
- registrationKey ,
143
- priorRegistration
144
- );
138
+ // log.tracef(
139
+ // "Registered SqmSetReturningFunctionTemplate [%s] under %s; prior registration was %s",
140
+ // function,
141
+ // registrationKey,
142
+ // priorRegistration
143
+ // );
145
144
alternateKeyMap .remove ( registrationKey );
146
145
return function ;
147
146
}
@@ -385,7 +384,8 @@ public SqmFunctionDescriptor wrapInJdbcEscape(String name, SqmFunctionDescriptor
385
384
386
385
public void registerAlternateKey (String alternateKey , String mappedKey ) {
387
386
assert functionMap .containsKey ( mappedKey );
388
- log .tracef ( "Registering alternate key : %s -> %s" , alternateKey , mappedKey );
387
+ // Incredibly verbose logging disabled
388
+ // log.tracef( "Registering alternate key : %s -> %s", alternateKey, mappedKey );
389
389
alternateKeyMap .put ( alternateKey , mappedKey );
390
390
}
391
391
0 commit comments