commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1153776 - in /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2: PoolablePreparedStatement.java cpdsadapter/PoolablePreparedStatementStub.java
Date Thu, 04 Aug 2011 08:16:07 GMT
Author: markt
Date: Thu Aug  4 08:16:06 2011
New Revision: 1153776

URL: http://svn.apache.org/viewvc?rev=1153776&view=rev
Log:
Generics

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolablePreparedStatement.java
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/cpdsadapter/PoolablePreparedStatementStub.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolablePreparedStatement.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolablePreparedStatement.java?rev=1153776&r1=1153775&r2=1153776&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolablePreparedStatement.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolablePreparedStatement.java
Thu Aug  4 08:16:06 2011
@@ -47,7 +47,7 @@ public class PoolablePreparedStatement e
     /**
      * My "key" as used by {@link KeyedObjectPool}.
      */
-    protected Object _key = null;
+    protected PStmtKey _key = null;
 
     private volatile boolean batchAdded = false;
 
@@ -58,7 +58,8 @@ public class PoolablePreparedStatement e
      * @param pool the {@link KeyedObjectPool} from which I was obtained.
      * @param conn the {@link Connection} from which I was created
      */
-    public PoolablePreparedStatement(PreparedStatement stmt, Object key, KeyedObjectPool
pool, Connection conn) {
+    public PoolablePreparedStatement(PreparedStatement stmt, PStmtKey key,
+            KeyedObjectPool pool, Connection conn) {
         super((DelegatingConnection) conn, stmt);
         _pool = pool;
         _key = key;

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/cpdsadapter/PoolablePreparedStatementStub.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/cpdsadapter/PoolablePreparedStatementStub.java?rev=1153776&r1=1153775&r2=1153776&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/cpdsadapter/PoolablePreparedStatementStub.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/cpdsadapter/PoolablePreparedStatementStub.java
Thu Aug  4 08:16:06 2011
@@ -40,8 +40,8 @@ class PoolablePreparedStatementStub exte
      * @param pool the {@link KeyedObjectPool} from which I was obtained.
      * @param conn the {@link Connection} from which I was created
      */
-    public PoolablePreparedStatementStub(PreparedStatement stmt, Object key, 
-            KeyedObjectPool pool, Connection conn) {
+    public PoolablePreparedStatementStub(PreparedStatement stmt,
+            PStmtKeyCPDS key, KeyedObjectPool pool, Connection conn) {
         super(stmt, key, pool, conn);
     }
 



Mime
View raw message