Commit 66b6180fe9ecb67c2dda6b08a8917b9b507b1008
Exists in
master
Merge branch '2.4.0' of git@github.com:demoiselle/framework.git into 2.4.0
Showing
1 changed file
with
24 additions
and
1 deletions
Show diff stats
impl/extension/jta/src/main/java/br/gov/frameworkdemoiselle/transaction/JTATransaction.java
... | ... | @@ -47,7 +47,12 @@ import javax.transaction.UserTransaction; |
47 | 47 | import br.gov.frameworkdemoiselle.DemoiselleException; |
48 | 48 | import br.gov.frameworkdemoiselle.annotation.Priority; |
49 | 49 | import br.gov.frameworkdemoiselle.util.Beans; |
50 | - | |
50 | +/** | |
51 | + * Delegates the transaction control to a JEE container. | |
52 | + * | |
53 | + * @author SERPRO | |
54 | + * | |
55 | + */ | |
51 | 56 | @Priority(L3_PRIORITY) |
52 | 57 | public class JTATransaction implements Transaction { |
53 | 58 | |
... | ... | @@ -63,6 +68,9 @@ public class JTATransaction implements Transaction { |
63 | 68 | return delegate; |
64 | 69 | } |
65 | 70 | |
71 | + /** | |
72 | + * @throws DemoiselleException | |
73 | + */ | |
66 | 74 | @Override |
67 | 75 | public boolean isActive() { |
68 | 76 | try { |
... | ... | @@ -73,6 +81,9 @@ public class JTATransaction implements Transaction { |
73 | 81 | } |
74 | 82 | } |
75 | 83 | |
84 | + /** | |
85 | + * @throws DemoiselleException | |
86 | + */ | |
76 | 87 | @Override |
77 | 88 | public boolean isMarkedRollback() { |
78 | 89 | try { |
... | ... | @@ -84,6 +95,9 @@ public class JTATransaction implements Transaction { |
84 | 95 | } |
85 | 96 | } |
86 | 97 | |
98 | + /** | |
99 | + * @throws DemoiselleException | |
100 | + */ | |
87 | 101 | @Override |
88 | 102 | public void begin() { |
89 | 103 | try { |
... | ... | @@ -94,6 +108,9 @@ public class JTATransaction implements Transaction { |
94 | 108 | } |
95 | 109 | } |
96 | 110 | |
111 | + /** | |
112 | + * @throws DemoiselleException | |
113 | + */ | |
97 | 114 | @Override |
98 | 115 | public void commit() { |
99 | 116 | try { |
... | ... | @@ -104,6 +121,9 @@ public class JTATransaction implements Transaction { |
104 | 121 | } |
105 | 122 | } |
106 | 123 | |
124 | + /** | |
125 | + * @throws DemoiselleException | |
126 | + */ | |
107 | 127 | @Override |
108 | 128 | public void rollback() { |
109 | 129 | try { |
... | ... | @@ -114,6 +134,9 @@ public class JTATransaction implements Transaction { |
114 | 134 | } |
115 | 135 | } |
116 | 136 | |
137 | + /** | |
138 | + * @throws DemoiselleException | |
139 | + */ | |
117 | 140 | @Override |
118 | 141 | public void setRollbackOnly() { |
119 | 142 | try { | ... | ... |