commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [15/50] [abbrv] commons-dbcp git commit: Add missing Javadoc.
Date Wed, 13 Jun 2018 17:28:37 GMT
Add missing Javadoc.

Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/8ab7cc1b
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/8ab7cc1b
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/8ab7cc1b

Branch: refs/heads/release
Commit: 8ab7cc1b702075088fb4bc859302e77ee5d0d2fa
Parents: 5cc5624
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Mon Jun 11 17:51:22 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Mon Jun 11 17:51:22 2018 -0600

----------------------------------------------------------------------
 .../commons/dbcp2/managed/ManagedConnection.java       | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/8ab7cc1b/src/main/java/org/apache/commons/dbcp2/managed/ManagedConnection.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbcp2/managed/ManagedConnection.java b/src/main/java/org/apache/commons/dbcp2/managed/ManagedConnection.java
index 3d0289f..91fed32 100644
--- a/src/main/java/org/apache/commons/dbcp2/managed/ManagedConnection.java
+++ b/src/main/java/org/apache/commons/dbcp2/managed/ManagedConnection.java
@@ -45,6 +45,7 @@ import java.util.concurrent.locks.ReentrantLock;
  * @since 2.0
  */
 public class ManagedConnection<C extends Connection> extends DelegatingConnection<C>
{
+    
     private final ObjectPool<C> pool;
     private final TransactionRegistry transactionRegistry;
     private final boolean accessToUnderlyingConnectionAllowed;
@@ -52,6 +53,18 @@ public class ManagedConnection<C extends Connection> extends DelegatingConnectio
     private boolean isSharedConnection;
     private final Lock lock;
 
+    /**
+     * Constructs a new instance responsible for managing a database connection in a transactional
environment.
+     * 
+     * @param pool
+     *            The connection pool.
+     * @param transactionRegistry
+     *            The transaction registry.
+     * @param accessToUnderlyingConnectionAllowed
+     *            Whether or not to allow access to the underlying Connection.
+     * @throws SQLException
+     *             Thrown when there is problem managing transactions.
+     */
     public ManagedConnection(final ObjectPool<C> pool, final TransactionRegistry transactionRegistry,
             final boolean accessToUnderlyingConnectionAllowed) throws SQLException {
         super(null);


Mime
View raw message