summaryrefslogtreecommitdiff
path: root/pcr/java-avalon-logkit/avalon-logkit-implement_abstract_methods.patch
blob: 27540b466a5d51a19a052b374031de9d921d7a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- avalon-logkit-2.1.orig/src/java/org/apache/log/output/db/DefaultDataSource.java	2005-08-29 21:03:49.000000000 -0500
+++ avalon-logkit-2.1/src/java/org/apache/log/output/db/DefaultDataSource.java	2015-12-18 17:50:14.339611623 -0500
@@ -20,7 +20,9 @@
 import java.sql.Connection;
 import java.sql.DriverManager;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import javax.sql.DataSource;
+import java.util.logging.Logger;
 
 /**
  * A basic datasource that doesn't do any pooling but just wraps
@@ -111,4 +113,16 @@
     {
         m_logWriter = logWriter;
     }
+
+    public boolean isWrapperFor(Class cls) {
+        return false;
+    }
+
+    public Object unwrap(Class cls) throws SQLException {
+        throw new SQLException("Not a wrapper for " + cls);
+    }
+
+    public Logger getParentLogger() throws SQLFeatureNotSupportedException {
+        throw new SQLFeatureNotSupportedException("Not a supported feature");
+    }
 }