public class org.hibernate.exception.spi.SQLExceptionConverterFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.exception.spi.SQLExceptionConverterFactory
super_class: java.lang.Object
{
private static final org.hibernate.internal.CoreMessageLogger LOG;
descriptor: Lorg/hibernate/internal/CoreMessageLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/hibernate/internal/CoreMessageLogger;
ldc Lorg/hibernate/exception/spi/SQLExceptionConverterFactory;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic org.jboss.logging.Logger.getMessageLogger:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.hibernate.internal.CoreMessageLogger
putstatic org.hibernate.exception.spi.SQLExceptionConverterFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
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/exception/spi/SQLExceptionConverterFactory;
public static org.hibernate.exception.spi.SQLExceptionConverter buildSQLExceptionConverter(org.hibernate.dialect.Dialect, java.util.Properties);
descriptor: (Lorg/hibernate/dialect/Dialect;Ljava/util/Properties;)Lorg/hibernate/exception/spi/SQLExceptionConverter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
ldc "hibernate.jdbc.sql_exception_converter"
invokevirtual java.util.Properties.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 3
invokestatic org.hibernate.internal.util.StringHelper.isNotEmpty:(Ljava/lang/String;)Z
ifeq 4
3: aload 3
aload 0
invokevirtual org.hibernate.dialect.Dialect.getViolatedConstraintNameExtracter:()Lorg/hibernate/exception/spi/ViolatedConstraintNameExtracter;
invokestatic org.hibernate.exception.spi.SQLExceptionConverterFactory.constructConverter:(Ljava/lang/String;Lorg/hibernate/exception/spi/ViolatedConstraintNameExtracter;)Lorg/hibernate/exception/spi/SQLExceptionConverter;
astore 2
4: StackMap locals: org.hibernate.exception.spi.SQLExceptionConverter java.lang.String
StackMap stack:
aload 2
ifnonnull 7
5: getstatic org.hibernate.exception.spi.SQLExceptionConverterFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
ldc "Using dialect defined converter"
invokeinterface org.hibernate.internal.CoreMessageLogger.trace:(Ljava/lang/Object;)V
6: aload 0
invokevirtual org.hibernate.dialect.Dialect.buildSQLExceptionConverter:()Lorg/hibernate/exception/spi/SQLExceptionConverter;
astore 2
7: StackMap locals:
StackMap stack:
aload 2
instanceof org.hibernate.exception.spi.Configurable
ifeq 13
8: aload 2
checkcast org.hibernate.exception.spi.Configurable
aload 1
invokeinterface org.hibernate.exception.spi.Configurable.configure:(Ljava/util/Properties;)V
9: goto 13
10: StackMap locals:
StackMap stack: org.hibernate.HibernateException
astore 4
start local 4 11: getstatic org.hibernate.exception.spi.SQLExceptionConverterFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 4
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToConfigureSqlExceptionConverter:(Lorg/hibernate/HibernateException;)V
12: aload 4
athrow
end local 4 13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 dialect Lorg/hibernate/dialect/Dialect;
0 14 1 properties Ljava/util/Properties;
1 14 2 converter Lorg/hibernate/exception/spi/SQLExceptionConverter;
2 14 3 converterClassName Ljava/lang/String;
11 13 4 e Lorg/hibernate/HibernateException;
Exception table:
from to target type
8 9 10 Class org.hibernate.HibernateException
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
dialect
properties
public static org.hibernate.exception.spi.SQLExceptionConverter buildMinimalSQLExceptionConverter();
descriptor: ()Lorg/hibernate/exception/spi/SQLExceptionConverter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.hibernate.exception.spi.SQLExceptionConverterFactory$1
dup
invokespecial org.hibernate.exception.spi.SQLExceptionConverterFactory$1.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static org.hibernate.exception.spi.SQLExceptionConverter (java.lang.String, org.hibernate.exception.spi.ViolatedConstraintNameExtracter);
descriptor: (Ljava/lang/String;Lorg/hibernate/exception/spi/ViolatedConstraintNameExtracter;)Lorg/hibernate/exception/spi/SQLExceptionConverter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: getstatic org.hibernate.exception.spi.SQLExceptionConverterFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
ldc "Attempting to construct instance of specified SQLExceptionConverter [{0}]"
aload 0
invokeinterface org.hibernate.internal.CoreMessageLogger.tracev:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
invokestatic org.hibernate.internal.util.ReflectHelper.classForName:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 2: aload 2
invokevirtual java.lang.Class.getDeclaredConstructors:()[Ljava/lang/reflect/Constructor;
astore 3
start local 3 3: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 11
StackMap locals: java.lang.String org.hibernate.exception.spi.ViolatedConstraintNameExtracter java.lang.Class java.lang.reflect.Constructor[] top int int java.lang.reflect.Constructor[]
StackMap stack:
4: aload 7
iload 5
aaload
astore 4
start local 4 5: aload 4
invokevirtual java.lang.reflect.Constructor.getParameterTypes:()[Ljava/lang/Class;
ifnull 10
aload 4
invokevirtual java.lang.reflect.Constructor.getParameterCount:()I
iconst_1
if_icmpne 10
6: ldc Lorg/hibernate/exception/spi/ViolatedConstraintNameExtracter;
aload 4
invokevirtual java.lang.reflect.Constructor.getParameterTypes:()[Ljava/lang/Class;
iconst_0
aaload
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 10
7: aload 4
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.exception.spi.SQLExceptionConverter
8: areturn
9: StackMap locals: java.lang.String org.hibernate.exception.spi.ViolatedConstraintNameExtracter java.lang.Class java.lang.reflect.Constructor[] java.lang.reflect.Constructor int int java.lang.reflect.Constructor[]
StackMap stack: java.lang.Throwable
pop
end local 4 10: StackMap locals: java.lang.String org.hibernate.exception.spi.ViolatedConstraintNameExtracter java.lang.Class java.lang.reflect.Constructor[] top int int java.lang.reflect.Constructor[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 6
if_icmplt 4
12: aload 2
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.hibernate.exception.spi.SQLExceptionConverter
13: areturn
end local 3 end local 2 14: StackMap locals: java.lang.String org.hibernate.exception.spi.ViolatedConstraintNameExtracter
StackMap stack: java.lang.Throwable
astore 2
start local 2 15: getstatic org.hibernate.exception.spi.SQLExceptionConverterFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 2
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToConstructSqlExceptionConverter:(Ljava/lang/Throwable;)V
end local 2 16: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 converterClassName Ljava/lang/String;
0 17 1 violatedConstraintNameExtracter Lorg/hibernate/exception/spi/ViolatedConstraintNameExtracter;
2 14 2 converterClass Ljava/lang/Class;
3 14 3 ctors [Ljava/lang/reflect/Constructor;
5 10 4 ctor Ljava/lang/reflect/Constructor;
15 16 2 t Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.Throwable
0 8 14 Class java.lang.Throwable
9 13 14 Class java.lang.Throwable
MethodParameters:
Name Flags
converterClassName
violatedConstraintNameExtracter
}
SourceFile: "SQLExceptionConverterFactory.java"
NestMembers:
org.hibernate.exception.spi.SQLExceptionConverterFactory$1
InnerClasses:
org.hibernate.exception.spi.SQLExceptionConverterFactory$1