portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r592151 - /portals/jetspeed-2/trunk/components/jetspeed-rdbms/src/main/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
Date Mon, 05 Nov 2007 21:09:45 GMT
Author: taylor
Date: Mon Nov  5 13:09:44 2007
New Revision: 592151

URL: http://svn.apache.org/viewvc?rev=592151&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-803

Modified:
    portals/jetspeed-2/trunk/components/jetspeed-rdbms/src/main/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java

Modified: portals/jetspeed-2/trunk/components/jetspeed-rdbms/src/main/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/jetspeed-rdbms/src/main/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java?rev=592151&r1=592150&r2=592151&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/jetspeed-rdbms/src/main/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
(original)
+++ portals/jetspeed-2/trunk/components/jetspeed-rdbms/src/main/java/org/apache/jetspeed/components/rdbms/ojb/ConnectionRepositoryEntry.java
Mon Nov  5 13:09:44 2007
@@ -419,6 +419,18 @@
         {
             this.jcd = jcd;
         }
+
+        public boolean isWrapperFor(Class<?> iface) throws SQLException
+        {
+            return false;
+            // #ifdef JDBC4 return getConnection().isWrapperFor(iface);
+        }
+
+        <T> T unwrap(Class<T> iface) throws SQLException
+        {
+            throw new SQLException("PoolingDataSource is not a wrapper.");
+            //#ifdef JDBC4 return getConnection().unwrap(iface);
+        }
         
         /* (non-Javadoc)
          * @see javax.sql.DataSource#getConnection()



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message