commit | author | age
|
a18bfa
|
1 |
package com.codingapi.tx.aop.bean; |
Z |
2 |
|
|
3 |
import com.codingapi.tx.annotation.TxTransaction; |
|
4 |
import com.codingapi.tx.model.TransactionInvocation; |
|
5 |
|
|
6 |
|
|
7 |
/** |
|
8 |
* 切面控制对象 |
|
9 |
* Created by lorne on 2017/6/8. |
|
10 |
*/ |
|
11 |
public class TxTransactionInfo { |
|
12 |
|
|
13 |
|
|
14 |
private TxTransaction transaction; |
|
15 |
|
|
16 |
|
|
17 |
private TxTransactionLocal txTransactionLocal; |
|
18 |
|
|
19 |
/** |
|
20 |
* 事务组Id |
|
21 |
*/ |
|
22 |
private String txGroupId; |
|
23 |
|
|
24 |
|
|
25 |
private TransactionInvocation invocation; |
|
26 |
|
|
27 |
|
|
28 |
public TxTransactionInfo(TxTransaction transaction, TxTransactionLocal txTransactionLocal, TransactionInvocation invocation, String txGroupId) { |
|
29 |
this.transaction = transaction; |
|
30 |
this.txTransactionLocal = txTransactionLocal; |
|
31 |
this.txGroupId = txGroupId; |
|
32 |
this.invocation = invocation; |
|
33 |
} |
|
34 |
|
|
35 |
|
|
36 |
public TxTransaction getTransaction() { |
|
37 |
return transaction; |
|
38 |
} |
|
39 |
|
|
40 |
public TxTransactionLocal getTxTransactionLocal() { |
|
41 |
return txTransactionLocal; |
|
42 |
} |
|
43 |
|
|
44 |
public String getTxGroupId() { |
|
45 |
return txGroupId; |
|
46 |
} |
|
47 |
|
|
48 |
public TransactionInvocation getInvocation() { |
|
49 |
return invocation; |
|
50 |
} |
|
51 |
|
|
52 |
} |