public class io.ebeaninternal.api.ScopeTrans
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.ebeaninternal.api.ScopeTrans
super_class: java.lang.Object
{
private static final int OPCODE_ATHROW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 191
private final io.ebeaninternal.api.SpiTransaction transaction;
descriptor: Lio/ebeaninternal/api/SpiTransaction;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean rollbackOnChecked;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean created;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.ArrayList<java.lang.Class<? extends java.lang.Throwable>> noRollbackFor;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljava/lang/Class<+Ljava/lang/Throwable;>;>;
private final java.util.ArrayList<java.lang.Class<? extends java.lang.Throwable>> rollbackFor;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljava/lang/Class<+Ljava/lang/Throwable;>;>;
private java.lang.Boolean restoreBatch;
descriptor: Ljava/lang/Boolean;
flags: (0x0002) ACC_PRIVATE
private java.lang.Boolean restoreBatchOnCascade;
descriptor: Ljava/lang/Boolean;
flags: (0x0002) ACC_PRIVATE
private int restoreBatchSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.Boolean restoreBatchGeneratedKeys;
descriptor: Ljava/lang/Boolean;
flags: (0x0002) ACC_PRIVATE
private boolean restoreBatchFlushOnQuery;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean rolledBack;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean nestedCommit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(boolean, boolean, io.ebeaninternal.api.SpiTransaction, io.ebean.TxScope);
descriptor: (ZZLio/ebeaninternal/api/SpiTransaction;Lio/ebean/TxScope;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield io.ebeaninternal.api.ScopeTrans.rollbackOnChecked:Z
2: aload 0
iload 2
putfield io.ebeaninternal.api.ScopeTrans.created:Z
3: aload 0
aload 3
putfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
4: aload 0
aload 4
invokevirtual io.ebean.TxScope.getNoRollbackFor:()Ljava/util/ArrayList;
putfield io.ebeaninternal.api.ScopeTrans.noRollbackFor:Ljava/util/ArrayList;
5: aload 0
aload 4
invokevirtual io.ebean.TxScope.getRollbackFor:()Ljava/util/ArrayList;
putfield io.ebeaninternal.api.ScopeTrans.rollbackFor:Ljava/util/ArrayList;
6: aload 3
ifnull 24
7: iload 2
ifne 8
aload 4
invokevirtual io.ebean.TxScope.isBatchSet:()Z
ifne 9
StackMap locals: io.ebeaninternal.api.ScopeTrans int int io.ebeaninternal.api.SpiTransaction io.ebean.TxScope
StackMap stack:
8: aload 4
invokevirtual io.ebean.TxScope.isBatchOnCascadeSet:()Z
ifne 9
aload 4
invokevirtual io.ebean.TxScope.isBatchSizeSet:()Z
ifeq 14
9: StackMap locals:
StackMap stack:
aload 0
aload 3
invokeinterface io.ebeaninternal.api.SpiTransaction.isBatchMode:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putfield io.ebeaninternal.api.ScopeTrans.restoreBatch:Ljava/lang/Boolean;
10: aload 0
aload 3
invokeinterface io.ebeaninternal.api.SpiTransaction.isBatchOnCascade:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putfield io.ebeaninternal.api.ScopeTrans.restoreBatchOnCascade:Ljava/lang/Boolean;
11: aload 0
aload 3
invokeinterface io.ebeaninternal.api.SpiTransaction.getBatchSize:()I
putfield io.ebeaninternal.api.ScopeTrans.restoreBatchSize:I
12: aload 0
aload 3
invokeinterface io.ebeaninternal.api.SpiTransaction.getBatchGetGeneratedKeys:()Ljava/lang/Boolean;
putfield io.ebeaninternal.api.ScopeTrans.restoreBatchGeneratedKeys:Ljava/lang/Boolean;
13: aload 0
aload 3
invokeinterface io.ebeaninternal.api.SpiTransaction.isBatchFlushOnQuery:()Z
putfield io.ebeaninternal.api.ScopeTrans.restoreBatchFlushOnQuery:Z
14: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.ebean.TxScope.isBatchSet:()Z
ifeq 16
15: aload 3
aload 4
invokevirtual io.ebean.TxScope.isBatchMode:()Z
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchMode:(Z)V
16: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.ebean.TxScope.isFlushOnQuery:()Z
ifne 18
17: aload 3
iconst_0
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchFlushOnQuery:(Z)V
18: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.ebean.TxScope.isBatchOnCascadeSet:()Z
ifeq 20
19: aload 3
aload 4
invokevirtual io.ebean.TxScope.isBatchOnCascade:()Z
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchOnCascade:(Z)V
20: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.ebean.TxScope.isBatchSizeSet:()Z
ifeq 22
21: aload 3
aload 4
invokevirtual io.ebean.TxScope.getBatchSize:()I
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchSize:(I)V
22: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.ebean.TxScope.isSkipGeneratedKeys:()Z
ifeq 24
23: aload 3
iconst_0
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchGetGeneratedKeys:(Z)V
24: 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 25 0 this Lio/ebeaninternal/api/ScopeTrans;
0 25 1 rollbackOnChecked Z
0 25 2 created Z
0 25 3 transaction Lio/ebeaninternal/api/SpiTransaction;
0 25 4 txScope Lio/ebean/TxScope;
MethodParameters:
Name Flags
rollbackOnChecked
created
transaction
txScope
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ScopeTrans["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/ebeaninternal/api/ScopeTrans;
protected io.ebeaninternal.api.SpiTransaction getTransaction();
descriptor: ()Lio/ebeaninternal/api/SpiTransaction;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/ebeaninternal/api/ScopeTrans;
void complete(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
sipush 191
if_icmpne 2
1: aload 0
aload 1
checkcast java.lang.Throwable
invokevirtual io.ebeaninternal.api.ScopeTrans.caughtThrowable:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.ebeaninternal.api.ScopeTrans.complete:()V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/ebeaninternal/api/ScopeTrans;
0 4 1 returnOrThrowable Ljava/lang/Object;
0 4 2 opCode I
MethodParameters:
Name Flags
returnOrThrowable
opCode
public void complete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.ebeaninternal.api.ScopeTrans.rolledBack:Z
ifne 2
1: aload 0
invokevirtual io.ebeaninternal.api.ScopeTrans.commitTransaction:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/ebeaninternal/api/ScopeTrans;
public void end();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.ebeaninternal.api.ScopeTrans.created:Z
ifne 1
aload 0
getfield io.ebeaninternal.api.ScopeTrans.nestedCommit:Z
ifne 2
1: StackMap locals:
StackMap stack:
aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
invokeinterface io.ebeaninternal.api.SpiTransaction.end:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/ebeaninternal/api/ScopeTrans;
protected void commitTransaction();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.ebeaninternal.api.ScopeTrans.created:Z
ifeq 3
1: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
invokeinterface io.ebeaninternal.api.SpiTransaction.commit:()V
2: goto 13
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.ebeaninternal.api.ScopeTrans.nestedCommit:Z
4: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchFlushOnQuery:Z
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchFlushOnQuery:(Z)V
5: aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatch:Ljava/lang/Boolean;
ifnull 7
6: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatch:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchMode:(Z)V
7: StackMap locals:
StackMap stack:
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchOnCascade:Ljava/lang/Boolean;
ifnull 9
8: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchOnCascade:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchOnCascade:(Z)V
9: StackMap locals:
StackMap stack:
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchSize:I
ifle 11
10: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchSize:I
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchSize:(I)V
11: StackMap locals:
StackMap stack:
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchGeneratedKeys:Ljava/lang/Boolean;
ifnull 13
12: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
aload 0
getfield io.ebeaninternal.api.ScopeTrans.restoreBatchGeneratedKeys:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
invokeinterface io.ebeaninternal.api.SpiTransaction.setBatchGetGeneratedKeys:(Z)V
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/ebeaninternal/api/ScopeTrans;
public java.lang.Error caughtError(java.lang.Error);
descriptor: (Ljava/lang/Error;)Ljava/lang/Error;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.ebeaninternal.api.ScopeTrans.rollback:(Ljava/lang/Throwable;)V
1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/ebeaninternal/api/ScopeTrans;
0 2 1 e Ljava/lang/Error;
MethodParameters:
Name Flags
e
public void setRollbackOnly();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
ifnull 2
1: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
invokeinterface io.ebeaninternal.api.SpiTransaction.setRollbackOnly:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/ebeaninternal/api/ScopeTrans;
public <T extends java.lang.Throwable> T caughtThrowable();
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.ebeaninternal.api.ScopeTrans.isRollbackThrowable:(Ljava/lang/Throwable;)Z
ifeq 2
1: aload 0
aload 1
invokevirtual io.ebeaninternal.api.ScopeTrans.rollback:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/ebeaninternal/api/ScopeTrans;
0 3 1 e TT;
Signature: <T:Ljava/lang/Throwable;>(TT;)TT;
MethodParameters:
Name Flags
e
protected void rollback(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
ifnull 2
aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
invokeinterface io.ebeaninternal.api.SpiTransaction.isActive:()Z
ifeq 2
1: aload 0
getfield io.ebeaninternal.api.ScopeTrans.transaction:Lio/ebeaninternal/api/SpiTransaction;
aload 1
invokeinterface io.ebeaninternal.api.SpiTransaction.rollback:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.ebeaninternal.api.ScopeTrans.rolledBack:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/ebeaninternal/api/ScopeTrans;
0 4 1 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
private boolean isRollbackThrowable(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.Error
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.ebeaninternal.api.ScopeTrans.noRollbackFor:Ljava/util/ArrayList;
ifnull 8
3: aload 0
getfield io.ebeaninternal.api.ScopeTrans.noRollbackFor:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: io.ebeaninternal.api.ScopeTrans java.lang.Throwable top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 5: aload 2
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: iconst_0
ireturn
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: StackMap locals: io.ebeaninternal.api.ScopeTrans java.lang.Throwable
StackMap stack:
aload 0
getfield io.ebeaninternal.api.ScopeTrans.rollbackFor:Ljava/util/ArrayList;
ifnull 14
9: aload 0
getfield io.ebeaninternal.api.ScopeTrans.rollbackFor:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 3
goto 13
StackMap locals: io.ebeaninternal.api.ScopeTrans java.lang.Throwable top java.util.Iterator
StackMap stack:
10: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 11: aload 2
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 13
12: iconst_1
ireturn
end local 2 13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
14: StackMap locals: io.ebeaninternal.api.ScopeTrans java.lang.Throwable
StackMap stack:
aload 1
instanceof java.lang.RuntimeException
ifne 15
aload 0
getfield io.ebeaninternal.api.ScopeTrans.rollbackOnChecked:Z
ifne 15
iconst_0
ireturn
StackMap locals:
StackMap stack:
15: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/ebeaninternal/api/ScopeTrans;
0 16 1 e Ljava/lang/Throwable;
5 7 2 aNoRollbackFor Ljava/lang/Class<+Ljava/lang/Throwable;>;
11 13 2 aRollbackFor Ljava/lang/Class<+Ljava/lang/Throwable;>;
MethodParameters:
Name Flags
e
}
SourceFile: "ScopeTrans.java"