public class org.hibernate.exception.internal.SQLStateConversionDelegate extends org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.exception.internal.SQLStateConversionDelegate
super_class: org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
{
private static final java.util.Set<java.lang.String> SQL_GRAMMAR_CATEGORIES;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private static final java.util.Set DATA_CATEGORIES;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Set INTEGRITY_VIOLATION_CATEGORIES;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Set CONNECTION_CATEGORIES;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.hibernate.exception.internal.SQLStateConversionDelegate.buildGrammarCategories:()Ljava/util/Set;
putstatic org.hibernate.exception.internal.SQLStateConversionDelegate.SQL_GRAMMAR_CATEGORIES:Ljava/util/Set;
1: invokestatic org.hibernate.exception.internal.SQLStateConversionDelegate.buildDataCategories:()Ljava/util/Set;
putstatic org.hibernate.exception.internal.SQLStateConversionDelegate.DATA_CATEGORIES:Ljava/util/Set;
2: invokestatic org.hibernate.exception.internal.SQLStateConversionDelegate.buildContraintCategories:()Ljava/util/Set;
putstatic org.hibernate.exception.internal.SQLStateConversionDelegate.INTEGRITY_VIOLATION_CATEGORIES:Ljava/util/Set;
3: invokestatic org.hibernate.exception.internal.SQLStateConversionDelegate.buildConnectionCategories:()Ljava/util/Set;
putstatic org.hibernate.exception.internal.SQLStateConversionDelegate.CONNECTION_CATEGORIES:Ljava/util/Set;
return
LocalVariableTable:
Start End Slot Name Signature
private static java.util.Set<java.lang.String> buildGrammarCategories();
descriptor: ()Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 1: aload 0
bipush 7
anewarray java.lang.String
dup
iconst_0
2: ldc "07"
aastore
dup
iconst_1
3: ldc "20"
aastore
dup
iconst_2
4: ldc "2A"
aastore
dup
iconst_3
5: ldc "37"
aastore
dup
iconst_4
6: ldc "42"
aastore
dup
iconst_5
7: ldc "65"
aastore
dup
bipush 6
8: ldc "S0"
aastore
9: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
10: invokevirtual java.util.HashSet.addAll:(Ljava/util/Collection;)Z
pop
11: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 12 0 categories Ljava/util/HashSet<Ljava/lang/String;>;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Set<java.lang.String> buildDataCategories();
descriptor: ()Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 1: aload 0
iconst_2
anewarray java.lang.String
dup
iconst_0
2: ldc "21"
aastore
dup
iconst_1
3: ldc "22"
aastore
4: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
5: invokevirtual java.util.HashSet.addAll:(Ljava/util/Collection;)Z
pop
6: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 categories Ljava/util/HashSet<Ljava/lang/String;>;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Set<java.lang.String> buildContraintCategories();
descriptor: ()Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 1: aload 0
iconst_3
anewarray java.lang.String
dup
iconst_0
2: ldc "23"
aastore
dup
iconst_1
3: ldc "27"
aastore
dup
iconst_2
4: ldc "44"
aastore
5: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
6: invokevirtual java.util.HashSet.addAll:(Ljava/util/Collection;)Z
pop
7: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 8 0 categories Ljava/util/HashSet<Ljava/lang/String;>;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Set<java.lang.String> buildConnectionCategories();
descriptor: ()Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 1: aload 0
2: ldc "08"
3: invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
4: aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 categories Ljava/util/HashSet<Ljava/lang/String;>;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public void <init>(org.hibernate.exception.spi.ConversionContext);
descriptor: (Lorg/hibernate/exception/spi/ConversionContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate.<init>:(Lorg/hibernate/exception/spi/ConversionContext;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/exception/internal/SQLStateConversionDelegate;
0 2 1 conversionContext Lorg/hibernate/exception/spi/ConversionContext;
MethodParameters:
Name Flags
conversionContext
public org.hibernate.JDBCException convert(java.sql.SQLException, java.lang.String, java.lang.String);
descriptor: (Ljava/sql/SQLException;Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/JDBCException;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.hibernate.internal.util.JdbcExceptionHelper.extractSqlState:(Ljava/sql/SQLException;)Ljava/lang/String;
astore 4
start local 4 1: aload 1
invokestatic org.hibernate.internal.util.JdbcExceptionHelper.extractErrorCode:(Ljava/sql/SQLException;)I
istore 5
start local 5 2: aload 4
ifnull 24
3: aload 4
invokestatic org.hibernate.internal.util.JdbcExceptionHelper.determineSqlStateClassCode:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 4: aload 6
ifnull 17
5: getstatic org.hibernate.exception.internal.SQLStateConversionDelegate.SQL_GRAMMAR_CATEGORIES:Ljava/util/Set;
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 7
6: new org.hibernate.exception.SQLGrammarException
dup
aload 2
aload 1
aload 3
invokespecial org.hibernate.exception.SQLGrammarException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;)V
areturn
7: StackMap locals: java.lang.String int java.lang.String
StackMap stack:
getstatic org.hibernate.exception.internal.SQLStateConversionDelegate.INTEGRITY_VIOLATION_CATEGORIES:Ljava/util/Set;
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 13
8: aload 0
invokevirtual org.hibernate.exception.internal.SQLStateConversionDelegate.getConversionContext:()Lorg/hibernate/exception/spi/ConversionContext;
9: invokeinterface org.hibernate.exception.spi.ConversionContext.getViolatedConstraintNameExtracter:()Lorg/hibernate/exception/spi/ViolatedConstraintNameExtracter;
10: aload 1
invokeinterface org.hibernate.exception.spi.ViolatedConstraintNameExtracter.extractConstraintName:(Ljava/sql/SQLException;)Ljava/lang/String;
11: astore 7
start local 7 12: new org.hibernate.exception.ConstraintViolationException
dup
aload 2
aload 1
aload 3
aload 7
invokespecial org.hibernate.exception.ConstraintViolationException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 7 13: StackMap locals:
StackMap stack:
getstatic org.hibernate.exception.internal.SQLStateConversionDelegate.CONNECTION_CATEGORIES:Ljava/util/Set;
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 15
14: new org.hibernate.exception.JDBCConnectionException
dup
aload 2
aload 1
aload 3
invokespecial org.hibernate.exception.JDBCConnectionException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;)V
areturn
15: StackMap locals:
StackMap stack:
getstatic org.hibernate.exception.internal.SQLStateConversionDelegate.DATA_CATEGORIES:Ljava/util/Set;
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 17
16: new org.hibernate.exception.DataException
dup
aload 2
aload 1
aload 3
invokespecial org.hibernate.exception.DataException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;)V
areturn
17: StackMap locals:
StackMap stack:
ldc "40001"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
18: new org.hibernate.exception.LockAcquisitionException
dup
aload 2
aload 1
aload 3
invokespecial org.hibernate.exception.LockAcquisitionException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;)V
areturn
19: StackMap locals:
StackMap stack:
ldc "40XL1"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 20
ldc "40XL2"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
20: StackMap locals:
StackMap stack:
new org.hibernate.PessimisticLockException
dup
aload 2
aload 1
aload 3
invokespecial org.hibernate.PessimisticLockException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;)V
areturn
21: StackMap locals:
StackMap stack:
ldc "70100"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
22: ldc "72000"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
iload 5
sipush 1013
if_icmpne 24
23: StackMap locals:
StackMap stack:
new org.hibernate.QueryTimeoutException
dup
aload 2
aload 1
aload 3
invokespecial org.hibernate.QueryTimeoutException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;Ljava/lang/String;)V
athrow
end local 6 24: StackMap locals:
StackMap stack:
aconst_null
areturn
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 25 0 this Lorg/hibernate/exception/internal/SQLStateConversionDelegate;
0 25 1 sqlException Ljava/sql/SQLException;
0 25 2 message Ljava/lang/String;
0 25 3 sql Ljava/lang/String;
1 25 4 sqlState Ljava/lang/String;
2 25 5 errorCode I
4 24 6 sqlStateClassCode Ljava/lang/String;
12 13 7 constraintName Ljava/lang/String;
MethodParameters:
Name Flags
sqlException
message
sql
}
SourceFile: "SQLStateConversionDelegate.java"