|
25 | 25 | */
|
26 | 26 | public class TransactionEntity extends BaseEntity {
|
27 | 27 |
|
28 |
| - public class ReadWriteCollections { |
| 28 | + public static class ReadWriteCollections { |
29 | 29 |
|
30 |
| - List<String> read = new ArrayList<String>(); |
| 30 | + List<String> read = new ArrayList<String>(); |
31 | 31 |
|
32 |
| - List<String> write = new ArrayList<String>(); |
33 |
| - } |
| 32 | + List<String> write = new ArrayList<String>(); |
| 33 | + } |
34 | 34 |
|
35 |
| - ReadWriteCollections collections = new ReadWriteCollections(); |
| 35 | + ReadWriteCollections collections = new ReadWriteCollections(); |
36 | 36 |
|
37 |
| - String action; |
| 37 | + String action; |
38 | 38 |
|
39 |
| - Boolean waitForSync; |
| 39 | + Boolean waitForSync; |
40 | 40 |
|
41 |
| - int lockTimeout; |
| 41 | + int lockTimeout; |
42 | 42 |
|
43 |
| - Object params; |
| 43 | + Object params; |
44 | 44 |
|
45 |
| - public TransactionEntity(String action) { |
46 |
| - this.action = action; |
47 |
| - } |
| 45 | + public TransactionEntity(String action) { |
| 46 | + this.action = action; |
| 47 | + } |
48 | 48 |
|
49 |
| - public ReadWriteCollections getCollections() { |
50 |
| - return collections; |
51 |
| - } |
| 49 | + public ReadWriteCollections getCollections() { |
| 50 | + return collections; |
| 51 | + } |
52 | 52 |
|
53 |
| - public void setCollections(ReadWriteCollections collections) { |
54 |
| - this.collections = collections; |
55 |
| - } |
| 53 | + public void setCollections(ReadWriteCollections collections) { |
| 54 | + this.collections = collections; |
| 55 | + } |
56 | 56 |
|
57 |
| - public void addReadCollection(String collection) { |
58 |
| - this.collections.read.add(collection); |
59 |
| - } |
| 57 | + public void addReadCollection(String collection) { |
| 58 | + this.collections.read.add(collection); |
| 59 | + } |
60 | 60 |
|
61 |
| - public void addWriteCollection(String collection) { |
62 |
| - this.collections.write.add(collection); |
63 |
| - } |
| 61 | + public void addWriteCollection(String collection) { |
| 62 | + this.collections.write.add(collection); |
| 63 | + } |
64 | 64 |
|
65 |
| - public String getAction() { |
66 |
| - return action; |
67 |
| - } |
| 65 | + public String getAction() { |
| 66 | + return action; |
| 67 | + } |
68 | 68 |
|
69 |
| - public void setAction(String action) { |
70 |
| - this.action = action; |
71 |
| - } |
| 69 | + public void setAction(String action) { |
| 70 | + this.action = action; |
| 71 | + } |
72 | 72 |
|
73 |
| - public Boolean getWaitForSync() { |
74 |
| - return waitForSync; |
75 |
| - } |
| 73 | + public Boolean getWaitForSync() { |
| 74 | + return waitForSync; |
| 75 | + } |
76 | 76 |
|
77 |
| - public void setWaitForSync(Boolean waitForSync) { |
78 |
| - this.waitForSync = waitForSync; |
79 |
| - } |
| 77 | + public void setWaitForSync(Boolean waitForSync) { |
| 78 | + this.waitForSync = waitForSync; |
| 79 | + } |
80 | 80 |
|
81 |
| - public int getLockTimeout() { |
82 |
| - return lockTimeout; |
83 |
| - } |
| 81 | + public int getLockTimeout() { |
| 82 | + return lockTimeout; |
| 83 | + } |
84 | 84 |
|
85 |
| - public void setLockTimeout(int lockTimeout) { |
86 |
| - this.lockTimeout = lockTimeout; |
87 |
| - } |
| 85 | + public void setLockTimeout(int lockTimeout) { |
| 86 | + this.lockTimeout = lockTimeout; |
| 87 | + } |
88 | 88 |
|
89 |
| - public Object getParams() { |
90 |
| - return params; |
91 |
| - } |
| 89 | + public Object getParams() { |
| 90 | + return params; |
| 91 | + } |
92 | 92 |
|
93 |
| - public void setParams(Object params) { |
94 |
| - this.params = params; |
95 |
| - } |
| 93 | + public void setParams(Object params) { |
| 94 | + this.params = params; |
| 95 | + } |
96 | 96 | }
|
0 commit comments