public class org.hibernate.dialect.function.CastFunction implements org.hibernate.dialect.function.SQLFunction
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.dialect.function.CastFunction
super_class: java.lang.Object
{
public static final org.hibernate.dialect.function.CastFunction INSTANCE;
descriptor: Lorg/hibernate/dialect/function/CastFunction;
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.dialect.function.CastFunction
dup
invokespecial org.hibernate.dialect.function.CastFunction.<init>:()V
putstatic org.hibernate.dialect.function.CastFunction.INSTANCE:Lorg/hibernate/dialect/function/CastFunction;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/function/CastFunction;
public boolean hasArguments();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/function/CastFunction;
public boolean hasParenthesesIfNoArguments();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/function/CastFunction;
public org.hibernate.type.Type getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping);
descriptor: (Lorg/hibernate/type/Type;Lorg/hibernate/engine/spi/Mapping;)Lorg/hibernate/type/Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/function/CastFunction;
0 1 1 columnType Lorg/hibernate/type/Type;
0 1 2 mapping Lorg/hibernate/engine/spi/Mapping;
Exceptions:
throws org.hibernate.QueryException
MethodParameters:
Name Flags
columnType
mapping
public java.lang.String render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor);
descriptor: (Lorg/hibernate/type/Type;Ljava/util/List;Lorg/hibernate/engine/spi/SessionFactoryImplementor;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokeinterface java.util.List.size:()I
iconst_2
if_icmpeq 2
1: new org.hibernate.QueryException
dup
new java.lang.StringBuilder
dup
ldc "cast() requires two arguments; found : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.util.List.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.hibernate.QueryException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 3
invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getTypeResolver:()Lorg/hibernate/type/TypeResolver;
aload 4
invokevirtual org.hibernate.type.TypeResolver.heuristicType:(Ljava/lang/String;)Lorg/hibernate/type/Type;
aload 3
invokeinterface org.hibernate.type.Type.sqlTypes:(Lorg/hibernate/engine/spi/Mapping;)[I
astore 5
start local 5 4: aload 5
arraylength
iconst_1
if_icmpeq 6
5: new org.hibernate.QueryException
dup
ldc "invalid Hibernate type for cast()"
invokespecial org.hibernate.QueryException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String int[]
StackMap stack:
aload 3
invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getDialect:()Lorg/hibernate/dialect/Dialect;
aload 5
iconst_0
iaload
invokevirtual org.hibernate.dialect.Dialect.getCastTypeName:(I)Ljava/lang/String;
astore 6
start local 6 7: aload 6
ifnonnull 9
8: aload 4
astore 6
9: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "cast("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " as "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/hibernate/dialect/function/CastFunction;
0 10 1 columnType Lorg/hibernate/type/Type;
0 10 2 args Ljava/util/List;
0 10 3 factory Lorg/hibernate/engine/spi/SessionFactoryImplementor;
3 10 4 type Ljava/lang/String;
4 10 5 sqlTypeCodes [I
7 10 6 sqlType Ljava/lang/String;
Exceptions:
throws org.hibernate.QueryException
MethodParameters:
Name Flags
columnType
args
factory
}
SourceFile: "CastFunction.java"