You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/06/13 17:28:37 UTC
[15/50] [abbrv] commons-dbcp git commit: Add missing Javadoc.
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 <ga...@gmail.com>
Authored: Mon Jun 11 17:51:22 2018 -0600
Committer: Gary Gregory <ga...@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);