forked from pool/apache-commons-dbcp
This commit is contained in:
@@ -1,18 +1,10 @@
|
|||||||
--- commons-dbcp-1.4-src/build.xml 2018-12-13 17:33:38.072128307 +0100
|
--- commons-dbcp2-2.1.1-src/build.xml 2018-05-15 11:17:10.227422992 +0200
|
||||||
+++ commons-dbcp-1.4-src/build.xml 2018-12-13 17:34:46.740477159 +0100
|
+++ commons-dbcp2-2.1.1-src/build.xml 2018-05-15 11:24:49.257464289 +0200
|
||||||
@@ -163,6 +163,7 @@
|
@@ -145,8 +146,6 @@
|
||||||
<target name="javadoc" depends="prepare" description="generates javadocs">
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<javadoc packagenames="org.*"
|
|
||||||
+ source="${javac.source}"
|
|
||||||
sourcepath="${src.java.dir}"
|
|
||||||
classpath="${classpath}"
|
|
||||||
destdir="${javadoc.dir}"
|
|
||||||
@@ -181,8 +182,6 @@
|
|
||||||
nohelp="true"
|
nohelp="true"
|
||||||
nonavbar="false"
|
nonavbar="false"
|
||||||
serialwarn="false">
|
serialwarn="false">
|
||||||
- <link href="http://java.sun.com/j2se/1.5.0/docs/api"/>
|
- <link href="http://docs.oracle.com/javase/7/docs/api/"/>
|
||||||
- <link href="http://commons.apache.org/pool/apidocs"/>
|
- <link href="http://commons.apache.org/pool/apidocs"/>
|
||||||
</javadoc>
|
</javadoc>
|
||||||
</target>
|
</target>
|
||||||
|
|||||||
@@ -1,423 +0,0 @@
|
|||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -24,10 +24,12 @@
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Collections;
|
|
||||||
+import java.util.logging.Logger;
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.Driver;
|
|
||||||
import java.sql.DriverManager;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import javax.sql.DataSource;
|
|
||||||
|
|
||||||
import org.apache.commons.pool.KeyedObjectPoolFactory;
|
|
||||||
@@ -1579,4 +1581,10 @@
|
|
||||||
logWriter.println(message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java 2010-02-07 17:59:19.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -19,10 +19,12 @@
|
|
||||||
|
|
||||||
import java.util.Hashtable;
|
|
||||||
import java.util.Properties;
|
|
||||||
+import java.util.logging.Logger;
|
|
||||||
import java.io.PrintWriter;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.sql.DriverManager;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import javax.sql.PooledConnection;
|
|
||||||
import javax.sql.ConnectionPoolDataSource;
|
|
||||||
import javax.naming.Name;
|
|
||||||
@@ -719,4 +721,10 @@
|
|
||||||
{
|
|
||||||
_maxPreparedStatements = maxPreparedStatements;
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -21,10 +21,12 @@
|
|
||||||
import java.io.ObjectInputStream;
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
+import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import javax.naming.NamingException;
|
|
||||||
import javax.naming.Reference;
|
|
||||||
@@ -561,4 +563,10 @@
|
|
||||||
CPDSConnectionFactory mgr = (CPDSConnectionFactory) managers.get(key);
|
|
||||||
return mgr == null ? null : (GenericObjectPool) mgr.getPool();
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -21,6 +21,8 @@
|
|
||||||
import java.io.ObjectInputStream;
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
+import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import javax.naming.NamingException;
|
|
||||||
import javax.naming.Reference;
|
|
||||||
@@ -269,5 +271,11 @@
|
|
||||||
throw new IOException("NamingException: " + e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
import java.sql.RowId;
|
|
||||||
import java.sql.SQLXML;
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A base delegating implementation of {@link CallableStatement}.
|
|
||||||
@@ -661,4 +662,14 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingConnection.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingConnection.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
+import java.util.concurrent.Executor;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
/* JDBC_4_ANT_KEY_BEGIN */
|
|
||||||
import java.sql.Array;
|
|
||||||
@@ -40,6 +41,7 @@
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.Properties;
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A base delegating implementation of {@link Connection}.
|
|
||||||
@@ -679,4 +681,30 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public int getNetworkTimeout() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void abort(Executor executor) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public String getSchema() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void setSchema(String schema) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingDatabaseMetaData.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingDatabaseMetaData.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -24,6 +24,7 @@
|
|
||||||
import java.sql.RowIdLifetime;
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A base delegating implementation of {@link DatabaseMetaData}.
|
|
||||||
@@ -1208,4 +1209,13 @@
|
|
||||||
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public boolean generatedKeyAlwaysReturned() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -34,6 +34,7 @@
|
|
||||||
import java.sql.RowId;
|
|
||||||
import java.sql.SQLXML;
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A base delegating implementation of {@link PreparedStatement}.
|
|
||||||
@@ -402,4 +403,15 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public boolean isCloseOnCompletion() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void closeOnCompletion() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingResultSet.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingResultSet.java 2018-12-13 17:36:19.956950724 +0100
|
|
||||||
@@ -40,6 +40,7 @@
|
|
||||||
import java.sql.RowId;
|
|
||||||
import java.sql.SQLXML;
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A base delegating implementation of {@link ResultSet}.
|
|
||||||
@@ -1079,4 +1080,14 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingStatement.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingStatement.java 2018-12-13 17:36:19.960950745 +0100
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.sql.SQLWarning;
|
|
||||||
import java.sql.Statement;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
@@ -386,4 +387,15 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* JDBC_4_ANT_KEY_END */
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public boolean isCloseOnCompletion() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void closeOnCompletion() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java 2018-12-13 17:36:19.960950745 +0100
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.apache.commons.pool.KeyedObjectPool;
|
|
||||||
@@ -123,4 +124,13 @@
|
|
||||||
super.passivate();
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java 2018-12-13 17:36:19.960950745 +0100
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.apache.commons.pool.KeyedObjectPool;
|
|
||||||
@@ -137,4 +138,14 @@
|
|
||||||
super.passivate();
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public boolean isCloseOnCompletion() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void closeOnCompletion() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java 2018-12-13 17:36:19.960950745 +0100
|
|
||||||
@@ -21,8 +21,10 @@
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
+import java.util.concurrent.Executor;
|
|
||||||
|
|
||||||
import org.apache.commons.pool.KeyedObjectPool;
|
|
||||||
import org.apache.commons.pool.KeyedPoolableObjectFactory;
|
|
||||||
@@ -455,4 +457,30 @@
|
|
||||||
return buf.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public int getNetworkTimeout() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void abort(Executor executor) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public String getSchema() throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public void setSchema(String schema) throws SQLException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java 2018-12-13 17:36:19.960950745 +0100
|
|
||||||
@@ -23,10 +23,12 @@
|
|
||||||
import java.sql.DatabaseMetaData;
|
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.sql.SQLWarning;
|
|
||||||
import java.sql.Statement;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
+import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
|
||||||
|
|
||||||
@@ -437,4 +439,9 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
--- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java 2010-02-07 17:59:20.000000000 +0100
|
|
||||||
+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java 2018-12-13 17:36:19.960950745 +0100
|
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
import java.sql.DriverPropertyInfo;
|
|
||||||
import java.sql.PreparedStatement;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
+import java.sql.SQLFeatureNotSupportedException;
|
|
||||||
import java.sql.SQLWarning;
|
|
||||||
import java.sql.Statement;
|
|
||||||
import java.util.HashMap;
|
|
||||||
@@ -34,6 +35,7 @@
|
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.Set;
|
|
||||||
+import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.apache.commons.jocl.JOCLContentHandler;
|
|
||||||
import org.apache.commons.pool.ObjectPool;
|
|
||||||
@@ -496,4 +498,10 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ /* This functionality is not implemented yet */
|
|
||||||
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
|
||||||
+ throw new SQLFeatureNotSupportedException();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
@@ -1,35 +1,27 @@
|
|||||||
--- commons-dbcp-1.4-src/build.xml 2010-02-07 17:59:20.000000000 +0100
|
--- commons-dbcp2-2.1.1-src/build.xml 2018-05-15 11:17:10.227422992 +0200
|
||||||
+++ commons-dbcp-1.4-src/build.xml 2018-12-13 17:31:58.987624926 +0100
|
+++ commons-dbcp2-2.1.1-src/build.xml 2018-05-15 11:24:49.257464289 +0200
|
||||||
@@ -133,6 +133,7 @@
|
@@ -58,7 +58,8 @@
|
||||||
<property name="src.java.dir" value="${src.dir}/java"/>
|
<property name="src.java.dir" value="${src.dir}/main/java"/>
|
||||||
<property name="src.test.dir" value="${src.dir}/test"/>
|
<property name="src.resource.dir" value="${src.dir}/main/resources"/>
|
||||||
<property name="javac.source" value="1.4" />
|
<property name="src.test.dir" value="${src.dir}/test/java"/>
|
||||||
+ <property name="javac.target" value="1.4" />
|
- <property name="javac.source" value="1.7" />
|
||||||
|
+ <property name="javac.source" value="8" />
|
||||||
|
+ <property name="javac.target" value="8" />
|
||||||
|
|
||||||
<mkdir dir="${src.dir}"/>
|
<property name="test.failonerror" value="true" />
|
||||||
<copy todir="${src.dir}" filtering="yes">
|
<property name="test.runner" value="junit.textui.TestRunner" />
|
||||||
@@ -153,7 +154,8 @@
|
@@ -161,7 +160,8 @@
|
||||||
<property name="src.dir" value="${basedir}/src"/>
|
|
||||||
<property name="src.java.dir" value="${src.dir}/java"/>
|
|
||||||
<property name="src.test.dir" value="${src.dir}/test"/>
|
|
||||||
- <property name="javac.source" value="1.5" />
|
|
||||||
+ <property name="javac.source" value="1.7" />
|
|
||||||
+ <property name="javac.target" value="1.7" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="prepare" depends="init,prepare-nojdbc4,prepare-jdbc4"/>
|
|
||||||
@@ -194,7 +196,8 @@
|
|
||||||
debug="${javac.debug}"
|
debug="${javac.debug}"
|
||||||
deprecation="${javac.deprecation}"
|
deprecation="${javac.deprecation}"
|
||||||
optimize="${javac.optimize}"
|
optimize="${javac.optimize}"
|
||||||
- source="${javac.source}">
|
- source="${javac.source}">
|
||||||
+ source="${javac.source}"
|
+ source="${javac.source}"
|
||||||
+ target="${javac.target}">
|
+ target="${javac.target}">
|
||||||
<exclude name="org/apache/commons/dbcp/BasicDataSourceFactory.java"
|
</javac>
|
||||||
unless="jndi.present"/>
|
<copy todir="${build.classes.dir}" >
|
||||||
<exclude name="org/apache/commons/dbcp/datasources/**"
|
<fileset dir="${src.resource.dir}"/>
|
||||||
@@ -211,7 +214,8 @@
|
@@ -176,7 +176,8 @@
|
||||||
debug="${javac.debug}"
|
includeantruntime="false"
|
||||||
deprecation="${javac.deprecation}"
|
deprecation="${javac.deprecation}"
|
||||||
optimize="${javac.optimize}"
|
optimize="${javac.optimize}"
|
||||||
- source="${javac.source}">
|
- source="${javac.source}">
|
||||||
|
|||||||
@@ -1,24 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Dec 13 16:43:55 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
|
||||||
|
|
||||||
- Downgrade to version 1.4
|
|
||||||
* the %{name} >= 2.0 is packaged in a separate new %{name}2
|
|
||||||
package
|
|
||||||
- Modified patches:
|
|
||||||
* apache-commons-dbcp-javadoc.patch
|
|
||||||
* apache-commons-dbcp-sourcetarget.patch
|
|
||||||
+ rediff and modify to the different context
|
|
||||||
+ build with source/target 1.7
|
|
||||||
- Added patch:
|
|
||||||
* apache-commons-dbcp-jdbc41.patch
|
|
||||||
+ support jdbc version 4.1, specified by a maintenance
|
|
||||||
release 1 of JSR 221 and included in Java 7
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Dec 13 11:13:42 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
|
||||||
|
|
||||||
- Add maven pom file and alias for previous version of commons-dbcp
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 15 09:30:50 UTC 2018 - fstrba@suse.com
|
Tue May 15 09:30:50 UTC 2018 - fstrba@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -17,42 +17,40 @@
|
|||||||
|
|
||||||
|
|
||||||
%define base_name dbcp
|
%define base_name dbcp
|
||||||
%define short_name commons-%{base_name}
|
%define short_name commons-%{base_name}2
|
||||||
Name: apache-%{short_name}
|
Name: apache-commons-dbcp
|
||||||
Version: 1.4
|
Version: 2.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Jakarta Commons DataBase Pooling Package
|
Summary: Jakarta Commons DataBase Pooling Package
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://commons.apache.org/proper/commons-dbcp/
|
Url: https://commons.apache.org/proper/commons-dbcp/
|
||||||
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||||
Source100: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc
|
Source100: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc
|
||||||
Source101: commons.keyring
|
Source101: commons.keyring
|
||||||
Patch0: apache-commons-dbcp-sourcetarget.patch
|
Patch0: apache-commons-dbcp-sourcetarget.patch
|
||||||
Patch1: apache-commons-dbcp-javadoc.patch
|
Patch1: apache-commons-dbcp-javadoc.patch
|
||||||
Patch2: apache-commons-dbcp-jdbc41.patch
|
|
||||||
BuildRequires: ant >= 1.6.5
|
BuildRequires: ant >= 1.6.5
|
||||||
BuildRequires: apache-commons-logging
|
BuildRequires: apache-commons-logging
|
||||||
BuildRequires: apache-commons-parent
|
BuildRequires: apache-commons-pool2
|
||||||
BuildRequires: apache-commons-pool
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: geronimo-jta-1_1-api
|
BuildRequires: geronimo-jta-1_1-api
|
||||||
BuildRequires: java-devel >= 1.7
|
BuildRequires: java-devel >= 1.7
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-tools
|
||||||
BuildRequires: jdbc-stdext >= 2.0
|
BuildRequires: jdbc-stdext >= 2.0
|
||||||
BuildRequires: junit >= 3.8.1
|
BuildRequires: junit >= 3.8.1
|
||||||
BuildRequires: xerces-j2
|
BuildRequires: xerces-j2
|
||||||
Requires: apache-commons-parent
|
|
||||||
Requires: commons-collections >= 3.2
|
Requires: commons-collections >= 3.2
|
||||||
Requires: commons-pool
|
Requires: commons-pool2
|
||||||
Requires: jta_api >= 1.1
|
Requires: jta_api >= 1.1
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
Provides: %{short_name} = %{version}-%{release}
|
Provides: %{short_name} = %{version}-%{release}
|
||||||
Obsoletes: %{short_name} < %{version}
|
Obsoletes: %{short_name} < %{version}
|
||||||
Provides: hibernate_jdbc_cache
|
Provides: hibernate_jdbc_cache
|
||||||
Provides: jakarta-commons-dbcp = %{version}
|
Provides: jakarta-commons-dbcp2 = %{version}
|
||||||
Obsoletes: jakarta-commons-dbcp < %{version}
|
Obsoletes: jakarta-commons-dbcp2 < %{version}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -83,13 +81,12 @@ features.
|
|||||||
%setup -q -n %{short_name}-%{version}-src
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
|
||||||
# remove all binary libs
|
# remove all binary libs
|
||||||
find . -name "*.jar" -exec rm -f {} \;
|
find . -name "*.jar" -exec rm -f {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
ant \
|
ant \
|
||||||
-Dcommons-pool.jar=$(build-classpath commons-pool) \
|
-Dcommons-pool.jar=$(build-classpath commons-pool2) \
|
||||||
-Djdbc20ext.jar=$(build-classpath jdbc-stdext) \
|
-Djdbc20ext.jar=$(build-classpath jdbc-stdext) \
|
||||||
-Djunit.jar=$(build-classpath junit) \
|
-Djunit.jar=$(build-classpath junit) \
|
||||||
-Dxerces.jar=$(build-classpath xerces-j2) \
|
-Dxerces.jar=$(build-classpath xerces-j2) \
|
||||||
@@ -102,13 +99,9 @@ ant \
|
|||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
install -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -m 644 dist/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}2-%{version}.jar
|
||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||||
# pom
|
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
||||||
install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
|
||||||
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr dist/docs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr dist/docs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
@@ -119,29 +112,25 @@ ln -sf %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar %{buildroot}%{_javad
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives --install %{_javadir}/hibernate_jdbc_cache.jar \
|
update-alternatives --install %{_javadir}/hibernate_jdbc_cache.jar \
|
||||||
hibernate_jdbc_cache %{_javadir}/%{name}.jar 60
|
hibernate_jdbc_cache %{_javadir}/%{name}2.jar 60
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
update-alternatives --remove hibernate_jdbc_cache %{_javadir}/%{name}.jar
|
update-alternatives --remove hibernate_jdbc_cache %{_javadir}/%{name}2.jar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.txt
|
%defattr(-,root,root)
|
||||||
%{_javadir}/%{name}.jar
|
%doc LICENSE.txt
|
||||||
%{_javadir}/%{name}-%{version}.jar
|
%{_javadir}/%{name}2.jar
|
||||||
|
%{_javadir}/%{name}2-%{version}.jar
|
||||||
%{_javadir}/%{short_name}.jar
|
%{_javadir}/%{short_name}.jar
|
||||||
%{_javadir}/%{short_name}-%{version}.jar
|
%{_javadir}/%{short_name}-%{version}.jar
|
||||||
%{_javadir}/hibernate_jdbc_cache.jar
|
%{_javadir}/hibernate_jdbc_cache.jar
|
||||||
%ghost %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar
|
%ghost %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar
|
||||||
%{_mavenpomdir}/%{name}-%{version}.pom
|
|
||||||
%if %{defined _maven_repository}
|
|
||||||
%{_mavendepmapfragdir}/%{name}
|
|
||||||
%else
|
|
||||||
%{_datadir}/maven-metadata/%{name}.xml*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f5f10846e79fc71121fe7402c61d71575506b01b59e719e974ebc4d99e6df283
|
|
||||||
size 932507
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
Version: GnuPG v1.4.8 (Darwin)
|
|
||||||
|
|
||||||
iEYEABECAAYFAktu/tMACgkQzTA4/vB9Vn5rDQCeKobwR+L2onRw+4wr+YjmtchJ
|
|
||||||
7TAAn25asI5AyQ4KFJhdvveuwcZHi/Rh
|
|
||||||
=PMaD
|
|
||||||
-----END PGP SIGNATURE-----
|
|
||||||
BIN
commons-dbcp2-2.1.1-src.tar.gz
LFS
Normal file
BIN
commons-dbcp2-2.1.1-src.tar.gz
LFS
Normal file
Binary file not shown.
7
commons-dbcp2-2.1.1-src.tar.gz.asc
Normal file
7
commons-dbcp2-2.1.1-src.tar.gz.asc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Comment: GPGTools - http://gpgtools.org
|
||||||
|
|
||||||
|
iEYEABECAAYFAlW+uDUACgkQzTA4/vB9Vn7jsACeIlk37QS4YyOauaY185Ha+MsW
|
||||||
|
SqQAoJjbekNH1ziwSRPqsMmWn8aLfs1L
|
||||||
|
=uAl0
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
Reference in New Issue
Block a user