You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by le...@apache.org on 2009/12/05 17:36:09 UTC

svn commit: r887561 - /excalibur/trunk/containerkit/logkit/src/main/java/org/apache/log/output/db/DefaultDataSource.java

Author: leosimons
Date: Sat Dec  5 16:36:08 2009
New Revision: 887561

URL: http://svn.apache.org/viewvc?rev=887561&view=rev
Log:
Support compiling against java 6.

Modified:
    excalibur/trunk/containerkit/logkit/src/main/java/org/apache/log/output/db/DefaultDataSource.java

Modified: excalibur/trunk/containerkit/logkit/src/main/java/org/apache/log/output/db/DefaultDataSource.java
URL: http://svn.apache.org/viewvc/excalibur/trunk/containerkit/logkit/src/main/java/org/apache/log/output/db/DefaultDataSource.java?rev=887561&r1=887560&r2=887561&view=diff
==============================================================================
--- excalibur/trunk/containerkit/logkit/src/main/java/org/apache/log/output/db/DefaultDataSource.java (original)
+++ excalibur/trunk/containerkit/logkit/src/main/java/org/apache/log/output/db/DefaultDataSource.java Sat Dec  5 16:36:08 2009
@@ -113,4 +113,32 @@
     {
         m_logWriter = logWriter;
     }
+
+    /**
+     * This method is not supported. This method is defined only to support
+     * compilation with Java 6.
+     *
+     * @param iface class defining an interface that the result must implement
+     * @return nothing
+     * @throws java.sql.SQLException always
+     * @since 4-SNAPSHOT
+     * @see javax.sql.DataSource#unwrap
+     */
+    public Object unwrap(Class iface) throws SQLException {
+        throw new SQLException("DefaultDataSource does not implement wrapping support");
+    }
+
+    /**
+     * This method always returns false. This method is defined only to support
+     * compilation with Java 6.
+     * 
+     * @param iface class defining an interface
+     * @return falsse
+     * @throws SQLException never
+     * @since 4-SNAPSHOT
+     * @see javax.sql.DataSource#isWrapperFor
+     */
+    public boolean isWrapperFor(Class iface) throws SQLException {
+        return false;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org