Commit 08e1c3e98cc45e9b4cf05eb53c5c492f4f774552

Authored by Dancovich
2 parents eaf7079a ec5d009a
Exists in master

Merge branch '2.4.0' of https://github.com/demoiselle/framework.git into 2.4.0

impl/extension/jdbc/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/JDBCConfig.java
... ... @@ -41,7 +41,12 @@ import java.util.Map;
41 41  
42 42 import br.gov.frameworkdemoiselle.annotation.Name;
43 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 50 @Configuration(prefix = "frameworkdemoiselle.persistence.")
46 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 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 56 * @author SERPRO
57 57 * @see Transaction
... ... @@ -79,7 +79,7 @@ public class JDBCTransaction implements Transaction {
79 79 return producer;
80 80 }
81 81  
82   - public Collection<Connection> getDelegate() {
  82 + private Collection<Connection> getDelegate() {
83 83 return getProducer().getCache().values();
84 84 }
85 85  
... ... @@ -92,6 +92,9 @@ public class JDBCTransaction implements Transaction {
92 92 }
93 93 }
94 94  
  95 + /**
  96 + * @throws DemoiselleException
  97 + */
95 98 @Override
96 99 public void commit() {
97 100 for (Connection connection : getDelegate()) {
... ... @@ -103,6 +106,9 @@ public class JDBCTransaction implements Transaction {
103 106 }
104 107 }
105 108  
  109 + /**
  110 + * @throws DemoiselleException
  111 + */
106 112 @Override
107 113 public void rollback() {
108 114 for (Connection connection : getDelegate()) {
... ...