Commit 08e1c3e98cc45e9b4cf05eb53c5c492f4f774552
Exists in
master
Merge branch '2.4.0' of https://github.com/demoiselle/framework.git into 2.4.0
Showing
2 changed files
with
14 additions
and
3 deletions
Show diff stats
impl/extension/jdbc/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/JDBCConfig.java
@@ -41,7 +41,12 @@ import java.util.Map; | @@ -41,7 +41,12 @@ import java.util.Map; | ||
41 | 41 | ||
42 | import br.gov.frameworkdemoiselle.annotation.Name; | 42 | import br.gov.frameworkdemoiselle.annotation.Name; |
43 | import br.gov.frameworkdemoiselle.configuration.Configuration; | 43 | import br.gov.frameworkdemoiselle.configuration.Configuration; |
44 | - | 44 | +/** |
45 | + * Provide used to access the configurations of the JDBC connection | ||
46 | + * | ||
47 | + * @author SERPRO | ||
48 | + * | ||
49 | + */ | ||
45 | @Configuration(prefix = "frameworkdemoiselle.persistence.") | 50 | @Configuration(prefix = "frameworkdemoiselle.persistence.") |
46 | public class JDBCConfig implements Serializable { | 51 | public class JDBCConfig implements Serializable { |
47 | 52 |
impl/extension/jdbc/src/main/java/br/gov/frameworkdemoiselle/transaction/JDBCTransaction.java
@@ -51,7 +51,7 @@ import br.gov.frameworkdemoiselle.internal.producer.ConnectionProducer; | @@ -51,7 +51,7 @@ import br.gov.frameworkdemoiselle.internal.producer.ConnectionProducer; | ||
51 | import br.gov.frameworkdemoiselle.util.Beans; | 51 | import br.gov.frameworkdemoiselle.util.Beans; |
52 | 52 | ||
53 | /** | 53 | /** |
54 | - * Represents the strategy destinated to manage JPA transactions. | 54 | + * Represents the strategy destinated to manage JDBC transactions. |
55 | * | 55 | * |
56 | * @author SERPRO | 56 | * @author SERPRO |
57 | * @see Transaction | 57 | * @see Transaction |
@@ -79,7 +79,7 @@ public class JDBCTransaction implements Transaction { | @@ -79,7 +79,7 @@ public class JDBCTransaction implements Transaction { | ||
79 | return producer; | 79 | return producer; |
80 | } | 80 | } |
81 | 81 | ||
82 | - public Collection<Connection> getDelegate() { | 82 | + private Collection<Connection> getDelegate() { |
83 | return getProducer().getCache().values(); | 83 | return getProducer().getCache().values(); |
84 | } | 84 | } |
85 | 85 | ||
@@ -92,6 +92,9 @@ public class JDBCTransaction implements Transaction { | @@ -92,6 +92,9 @@ public class JDBCTransaction implements Transaction { | ||
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||
95 | + /** | ||
96 | + * @throws DemoiselleException | ||
97 | + */ | ||
95 | @Override | 98 | @Override |
96 | public void commit() { | 99 | public void commit() { |
97 | for (Connection connection : getDelegate()) { | 100 | for (Connection connection : getDelegate()) { |
@@ -103,6 +106,9 @@ public class JDBCTransaction implements Transaction { | @@ -103,6 +106,9 @@ public class JDBCTransaction implements Transaction { | ||
103 | } | 106 | } |
104 | } | 107 | } |
105 | 108 | ||
109 | + /** | ||
110 | + * @throws DemoiselleException | ||
111 | + */ | ||
106 | @Override | 112 | @Override |
107 | public void rollback() { | 113 | public void rollback() { |
108 | for (Connection connection : getDelegate()) { | 114 | for (Connection connection : getDelegate()) { |