public class org.springframework.dao.support.PersistenceExceptionTranslationInterceptor implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
super_class: java.lang.Object
{
private volatile org.springframework.dao.support.PersistenceExceptionTranslator persistenceExceptionTranslator;
descriptor: Lorg/springframework/dao/support/PersistenceExceptionTranslator;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private boolean alwaysTranslate;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.springframework.beans.factory.ListableBeanFactory beanFactory;
descriptor: Lorg/springframework/beans/factory/ListableBeanFactory;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.alwaysTranslate:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
public void <init>(org.springframework.dao.support.PersistenceExceptionTranslator);
descriptor: (Lorg/springframework/dao/support/PersistenceExceptionTranslator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.alwaysTranslate:Z
2: aload 1
ldc "PersistenceExceptionTranslator must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 1
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.persistenceExceptionTranslator:Lorg/springframework/dao/support/PersistenceExceptionTranslator;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 5 1 pet Lorg/springframework/dao/support/PersistenceExceptionTranslator;
MethodParameters:
Name Flags
pet
public void <init>(org.springframework.beans.factory.ListableBeanFactory);
descriptor: (Lorg/springframework/beans/factory/ListableBeanFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.alwaysTranslate:Z
2: aload 1
ldc "ListableBeanFactory must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 1
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.beanFactory:Lorg/springframework/beans/factory/ListableBeanFactory;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 5 1 beanFactory Lorg/springframework/beans/factory/ListableBeanFactory;
MethodParameters:
Name Flags
beanFactory
public void setPersistenceExceptionTranslator(org.springframework.dao.support.PersistenceExceptionTranslator);
descriptor: (Lorg/springframework/dao/support/PersistenceExceptionTranslator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.persistenceExceptionTranslator:Lorg/springframework/dao/support/PersistenceExceptionTranslator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 2 1 pet Lorg/springframework/dao/support/PersistenceExceptionTranslator;
MethodParameters:
Name Flags
pet
public void setAlwaysTranslate(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.alwaysTranslate:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 2 1 alwaysTranslate Z
MethodParameters:
Name Flags
alwaysTranslate
public void setBeanFactory(org.springframework.beans.factory.BeanFactory);
descriptor: (Lorg/springframework/beans/factory/BeanFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.persistenceExceptionTranslator:Lorg/springframework/dao/support/PersistenceExceptionTranslator;
ifnonnull 6
1: aload 1
instanceof org.springframework.beans.factory.ListableBeanFactory
ifne 5
2: new java.lang.IllegalArgumentException
dup
3: ldc "Cannot use PersistenceExceptionTranslator autodetection without ListableBeanFactory"
4: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast org.springframework.beans.factory.ListableBeanFactory
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.beanFactory:Lorg/springframework/beans/factory/ListableBeanFactory;
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 7 1 beanFactory Lorg/springframework/beans/factory/BeanFactory;
Exceptions:
throws org.springframework.beans.BeansException
MethodParameters:
Name Flags
beanFactory
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.persistenceExceptionTranslator:Lorg/springframework/dao/support/PersistenceExceptionTranslator;
ifnonnull 2
aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.beanFactory:Lorg/springframework/beans/factory/ListableBeanFactory;
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Property 'persistenceExceptionTranslator' is required"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation);
descriptor: (Lorg/aopalliance/intercept/MethodInvocation;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.aopalliance.intercept.MethodInvocation.proceed:()Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 2
start local 2 3: aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.alwaysTranslate:Z
ifne 5
aload 1
invokeinterface org.aopalliance.intercept.MethodInvocation.getMethod:()Ljava/lang/reflect/Method;
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.springframework.util.ReflectionUtils.declaresException:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z
ifeq 5
4: aload 2
athrow
5: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.persistenceExceptionTranslator:Lorg/springframework/dao/support/PersistenceExceptionTranslator;
astore 3
start local 3 6: aload 3
ifnonnull 12
7: aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.beanFactory:Lorg/springframework/beans/factory/ListableBeanFactory;
ifnull 8
iconst_1
goto 9
StackMap locals: org.springframework.dao.support.PersistenceExceptionTranslator
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: ldc "No PersistenceExceptionTranslator set"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
10: aload 0
aload 0
getfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.beanFactory:Lorg/springframework/beans/factory/ListableBeanFactory;
invokevirtual org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators:(Lorg/springframework/beans/factory/ListableBeanFactory;)Lorg/springframework/dao/support/PersistenceExceptionTranslator;
astore 3
11: aload 0
aload 3
putfield org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.persistenceExceptionTranslator:Lorg/springframework/dao/support/PersistenceExceptionTranslator;
12: StackMap locals:
StackMap stack:
aload 2
aload 3
invokestatic org.springframework.dao.support.DataAccessUtils.translateIfNecessary:(Ljava/lang/RuntimeException;Lorg/springframework/dao/support/PersistenceExceptionTranslator;)Ljava/lang/RuntimeException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 13 1 mi Lorg/aopalliance/intercept/MethodInvocation;
3 13 2 ex Ljava/lang/RuntimeException;
6 13 3 translator Lorg/springframework/dao/support/PersistenceExceptionTranslator;
Exception table:
from to target type
0 1 2 Class java.lang.RuntimeException
Exceptions:
throws java.lang.Throwable
MethodParameters:
Name Flags
mi
protected org.springframework.dao.support.PersistenceExceptionTranslator detectPersistenceExceptionTranslators(org.springframework.beans.factory.ListableBeanFactory);
descriptor: (Lorg/springframework/beans/factory/ListableBeanFactory;)Lorg/springframework/dao/support/PersistenceExceptionTranslator;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc Lorg/springframework/dao/support/PersistenceExceptionTranslator;
iconst_0
iconst_0
1: invokestatic org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors:(Lorg/springframework/beans/factory/ListableBeanFactory;Ljava/lang/Class;ZZ)Ljava/util/Map;
astore 2
start local 2 2: new org.springframework.dao.support.ChainedPersistenceExceptionTranslator
dup
invokespecial org.springframework.dao.support.ChainedPersistenceExceptionTranslator.<init>:()V
astore 3
start local 3 3: aload 2
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.springframework.dao.support.PersistenceExceptionTranslationInterceptor org.springframework.beans.factory.ListableBeanFactory java.util.Map org.springframework.dao.support.ChainedPersistenceExceptionTranslator top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.dao.support.PersistenceExceptionTranslator
astore 4
start local 4 5: aload 3
aload 4
invokevirtual org.springframework.dao.support.ChainedPersistenceExceptionTranslator.addDelegate:(Lorg/springframework/dao/support/PersistenceExceptionTranslator;)V
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/dao/support/PersistenceExceptionTranslationInterceptor;
0 8 1 beanFactory Lorg/springframework/beans/factory/ListableBeanFactory;
2 8 2 pets Ljava/util/Map<Ljava/lang/String;Lorg/springframework/dao/support/PersistenceExceptionTranslator;>;
3 8 3 cpet Lorg/springframework/dao/support/ChainedPersistenceExceptionTranslator;
5 6 4 pet Lorg/springframework/dao/support/PersistenceExceptionTranslator;
MethodParameters:
Name Flags
beanFactory
}
SourceFile: "PersistenceExceptionTranslationInterceptor.java"