public class org.hibernate.query.spi.QueryParameterBindingValidator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.query.spi.QueryParameterBindingValidator
super_class: java.lang.Object
{
public static final org.hibernate.query.spi.QueryParameterBindingValidator INSTANCE;
descriptor: Lorg/hibernate/query/spi/QueryParameterBindingValidator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.hibernate.query.spi.QueryParameterBindingValidator
dup
invokespecial org.hibernate.query.spi.QueryParameterBindingValidator.<init>:()V
putstatic org.hibernate.query.spi.QueryParameterBindingValidator.INSTANCE:Lorg/hibernate/query/spi/QueryParameterBindingValidator;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/query/spi/QueryParameterBindingValidator;
public <P> void validate(org.hibernate.type.Type, );
descriptor: (Lorg/hibernate/type/Type;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.validate:(Lorg/hibernate/type/Type;Ljava/lang/Object;Ljavax/persistence/TemporalType;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/query/spi/QueryParameterBindingValidator;
0 2 1 paramType Lorg/hibernate/type/Type;
0 2 2 bind Ljava/lang/Object;
Signature: <P:Ljava/lang/Object;>(Lorg/hibernate/type/Type;Ljava/lang/Object;)V
MethodParameters:
Name Flags
paramType
bind
public <P> void validate(org.hibernate.type.Type, , javax.persistence.TemporalType);
descriptor: (Lorg/hibernate/type/Type;Ljava/lang/Object;Ljavax/persistence/TemporalType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 1
aload 1
ifnonnull 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.hibernate.type.Type.getReturnedClass:()Ljava/lang/Class;
astore 4
start local 4 3: aload 4
ifnonnull 5
4: return
5: StackMap locals: java.lang.Class
StackMap stack:
ldc Ljava/util/Collection;
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 8
ldc Ljava/util/Collection;
aload 4
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 8
6: aload 0
aload 4
aload 2
checkcast java.util.Collection
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.validateCollectionValuedParameterBinding:(Ljava/lang/Class;Ljava/util/Collection;Ljavax/persistence/TemporalType;)V
7: goto 19
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifeq 11
9: aload 0
aload 4
aload 2
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.validateArrayValuedParameterBinding:(Ljava/lang/Class;Ljava/lang/Object;Ljavax/persistence/TemporalType;)V
10: goto 19
11: StackMap locals:
StackMap stack:
aload 4
aload 2
aload 3
invokestatic org.hibernate.query.spi.QueryParameterBindingValidator.isValidBindValue:(Ljava/lang/Class;Ljava/lang/Object;Ljavax/persistence/TemporalType;)Z
ifne 19
12: new java.lang.IllegalArgumentException
dup
13: ldc "Parameter value [%s] did not match expected type [%s (%s)]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
14: aload 2
aastore
dup
iconst_1
15: aload 4
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_2
16: aload 0
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.extractName:(Ljavax/persistence/TemporalType;)Ljava/lang/String;
aastore
17: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
18: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/hibernate/query/spi/QueryParameterBindingValidator;
0 20 1 paramType Lorg/hibernate/type/Type;
0 20 2 bind Ljava/lang/Object;
0 20 3 temporalType Ljavax/persistence/TemporalType;
3 20 4 parameterType Ljava/lang/Class;
Signature: <P:Ljava/lang/Object;>(Lorg/hibernate/type/Type;Ljava/lang/Object;Ljavax/persistence/TemporalType;)V
MethodParameters:
Name Flags
paramType
bind
temporalType
private java.lang.String (javax.persistence.TemporalType);
descriptor: (Ljavax/persistence/TemporalType;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
ldc "n/a"
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual javax.persistence.TemporalType.name:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/query/spi/QueryParameterBindingValidator;
0 3 1 temporalType Ljavax/persistence/TemporalType;
MethodParameters:
Name Flags
temporalType
private void validateCollectionValuedParameterBinding(java.lang.Class, java.util.Collection, javax.persistence.TemporalType);
descriptor: (Ljava/lang/Class;Ljava/util/Collection;Ljavax/persistence/TemporalType;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.hibernate.query.spi.QueryParameterBindingValidator java.lang.Class java.util.Collection javax.persistence.TemporalType top java.util.Iterator
StackMap stack:
1: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 2: aload 1
aload 4
aload 3
invokestatic org.hibernate.query.spi.QueryParameterBindingValidator.isValidBindValue:(Ljava/lang/Class;Ljava/lang/Object;Ljavax/persistence/TemporalType;)Z
ifne 10
3: new java.lang.IllegalArgumentException
dup
4: ldc "Parameter value element [%s] did not match expected type [%s (%s)]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
5: aload 4
aastore
dup
iconst_1
6: aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_2
7: aload 0
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.extractName:(Ljavax/persistence/TemporalType;)Ljava/lang/String;
aastore
8: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/hibernate/query/spi/QueryParameterBindingValidator;
0 12 1 parameterType Ljava/lang/Class;
0 12 2 value Ljava/util/Collection;
0 12 3 temporalType Ljavax/persistence/TemporalType;
2 10 4 element Ljava/lang/Object;
MethodParameters:
Name Flags
parameterType
value
temporalType
private static boolean isValidBindValue(java.lang.Class, java.lang.Object, javax.persistence.TemporalType);
descriptor: (Ljava/lang/Class;Ljava/lang/Object;Ljavax/persistence/TemporalType;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 18
1: aload 0
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 3
2: ldc Ljava/lang/Boolean;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Character.TYPE:Ljava/lang/Class;
if_acmpne 5
4: ldc Ljava/lang/Character;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
if_acmpne 7
6: ldc Ljava/lang/Byte;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
if_acmpne 9
8: ldc Ljava/lang/Short;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
if_acmpne 11
10: ldc Ljava/lang/Integer;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
if_acmpne 13
12: ldc Ljava/lang/Long;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
13: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Float.TYPE:Ljava/lang/Class;
if_acmpne 15
14: ldc Ljava/lang/Float;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
15: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.Double.TYPE:Ljava/lang/Class;
if_acmpne 17
16: ldc Ljava/lang/Double;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ireturn
17: StackMap locals:
StackMap stack:
iconst_0
ireturn
18: StackMap locals:
StackMap stack:
aload 1
ifnonnull 20
19: iconst_1
ireturn
20: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 22
21: iconst_1
ireturn
22: StackMap locals:
StackMap stack:
aload 2
ifnull 35
23: ldc Ljava/util/Date;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 26
24: ldc Ljava/util/Calendar;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 26
25: iconst_0
goto 27
StackMap locals:
StackMap stack:
26: iconst_1
StackMap locals:
StackMap stack: int
27: istore 3
start local 3 28: ldc Ljava/util/Date;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 31
29: ldc Ljava/util/Calendar;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 31
30: iconst_0
goto 32
StackMap locals: int
StackMap stack:
31: iconst_1
StackMap locals:
StackMap stack: int
32: istore 4
start local 4 33: iload 3
ifeq 35
iload 4
ifeq 35
34: iconst_1
ireturn
end local 4 end local 3 35: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 expectedType Ljava/lang/Class;
0 36 1 value Ljava/lang/Object;
0 36 2 temporalType Ljavax/persistence/TemporalType;
28 35 3 parameterDeclarationIsTemporal Z
33 35 4 bindIsTemporal Z
MethodParameters:
Name Flags
expectedType
value
temporalType
private void validateArrayValuedParameterBinding(java.lang.Class, java.lang.Object, javax.persistence.TemporalType);
descriptor: (Ljava/lang/Class;Ljava/lang/Object;Ljavax/persistence/TemporalType;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.lang.Class.isArray:()Z
ifne 7
1: new java.lang.IllegalArgumentException
dup
2: ldc "Encountered array-valued parameter binding, but was expecting [%s (%s)]"
iconst_2
anewarray java.lang.Object
dup
iconst_0
3: aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
4: aload 0
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.extractName:(Ljavax/persistence/TemporalType;)Ljava/lang/String;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 16
8: aload 1
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 29
9: new java.lang.IllegalArgumentException
dup
10: ldc "Primitive array-valued parameter bind value type [%s] did not match expected type [%s (%s)]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
11: aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
12: aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_2
13: aload 0
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.extractName:(Ljavax/persistence/TemporalType;)Ljava/lang/String;
aastore
14: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
15: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 2
checkcast java.lang.Object[]
astore 4
start local 4 17: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 28
StackMap locals: org.hibernate.query.spi.QueryParameterBindingValidator java.lang.Class java.lang.Object javax.persistence.TemporalType java.lang.Object[] top int int java.lang.Object[]
StackMap stack:
18: aload 8
iload 6
aaload
astore 5
start local 5 19: aload 1
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
aload 5
aload 3
invokestatic org.hibernate.query.spi.QueryParameterBindingValidator.isValidBindValue:(Ljava/lang/Class;Ljava/lang/Object;Ljavax/persistence/TemporalType;)Z
ifne 27
20: new java.lang.IllegalArgumentException
dup
21: ldc "Array-valued parameter value element [%s] did not match expected type [%s (%s)]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
22: aload 5
aastore
dup
iconst_1
23: aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_2
24: aload 0
aload 3
invokevirtual org.hibernate.query.spi.QueryParameterBindingValidator.extractName:(Ljavax/persistence/TemporalType;)Ljava/lang/String;
aastore
25: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
26: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 5 27: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
28: iload 6
iload 7
if_icmplt 18
end local 4 29: StackMap locals: org.hibernate.query.spi.QueryParameterBindingValidator java.lang.Class java.lang.Object javax.persistence.TemporalType
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/hibernate/query/spi/QueryParameterBindingValidator;
0 30 1 parameterType Ljava/lang/Class;
0 30 2 value Ljava/lang/Object;
0 30 3 temporalType Ljavax/persistence/TemporalType;
17 29 4 array [Ljava/lang/Object;
19 27 5 element Ljava/lang/Object;
MethodParameters:
Name Flags
parameterType
value
temporalType
}
SourceFile: "QueryParameterBindingValidator.java"