[gsbase] Initial import (#821283)
gil
gil at fedoraproject.org
Mon Jun 3 10:47:24 UTC 2013
commit 49d918a70b20c955b78e0283aaeafdd604cd86c3
Author: gil <puntogil at libero.it>
Date: Mon Jun 3 12:47:04 2013 +0200
Initial import (#821283)
.gitignore | 1 +
gsbase-2.0.1-jdk7.patch | 853 +++++++++++++++++++++++++++++++++++++++++++++++
gsbase-2.0.1.pom | 80 +++++
gsbase.spec | 96 ++++++
sources | 1 +
5 files changed, 1031 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7e3f077 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gsbase-2.0.1.zip
diff --git a/gsbase-2.0.1-jdk7.patch b/gsbase-2.0.1-jdk7.patch
new file mode 100644
index 0000000..0487ac8
--- /dev/null
+++ b/gsbase-2.0.1-jdk7.patch
@@ -0,0 +1,853 @@
+diff -Nru gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/CallableStatementWrapper.java gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/CallableStatementWrapper.java
+--- gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/CallableStatementWrapper.java 2004-10-02 13:36:14.000000000 +0200
++++ gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/CallableStatementWrapper.java 2012-05-06 18:22:52.320378801 +0200
+@@ -37,13 +37,19 @@
+ */
+ package com.gargoylesoftware.base.resource.jdbc;
+
++import java.io.InputStream;
++import java.io.Reader;
+ import java.math.BigDecimal;
+ import java.sql.Array;
+ import java.sql.Blob;
+ import java.sql.CallableStatement;
+ import java.sql.Clob;
++import java.sql.NClob;
+ import java.sql.Ref;
++import java.sql.RowId;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
++import java.sql.SQLXML;
+ import java.util.Calendar;
+
+ /**
+@@ -1694,5 +1700,175 @@
+ checkIsOpen();
+ delegate_.registerOutParameter(parameterName, sqlType, typeName);
+ }
++
++ public <T> T getObject(String parameterName, Class<T> arg0) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public <T> T getObject(int columnIndex, Class<T> arg0) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNClob(String parameterName, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBlob(String parameterName, InputStream inputStream) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setClob(String parameterName, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNCharacterStream(String parameterName, Reader value) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setCharacterStream(String parameterName, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBinaryStream(String parameterName, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setAsciiStream(String parameterName, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setClob(String parameterName, Clob x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBlob(String parameterName, Blob x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Reader getCharacterStream(String parameterName) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Reader getCharacterStream(int parameterIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Reader getNCharacterStream(String parameterName) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Reader getNCharacterStream(int parameterIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public String getNString(String parameterName) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public String getNString(int parameterIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public SQLXML getSQLXML(String parameterName) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public SQLXML getSQLXML(int parameterIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public NClob getNClob(String parameterName) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public NClob getNClob(int parameterIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNClob(String parameterName, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setClob(String parameterName, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNClob(String parameterName, NClob value) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNString(String parameterName, String value) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setRowId(String parameterName, RowId x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public RowId getRowId(String parameterName) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public RowId getRowId(int parameterIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
+ }
+
+diff -Nru gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/ConnectionWrapper.java gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/ConnectionWrapper.java
+--- gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/ConnectionWrapper.java 2004-10-02 13:36:14.000000000 +0200
++++ gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/ConnectionWrapper.java 2012-05-06 16:31:03.598966255 +0200
+@@ -38,19 +38,29 @@
+ package com.gargoylesoftware.base.resource.jdbc;
+
+ import com.gargoylesoftware.base.resource.ManagedResource;
++import java.sql.Array;
++import java.sql.Blob;
++import java.sql.Clob;
+ import java.sql.CallableStatement;
+ import java.sql.Connection;
+ import java.sql.DatabaseMetaData;
++import java.sql.NClob;
+ import java.sql.PreparedStatement;
+ import java.sql.Savepoint;
++import java.sql.SQLClientInfoException;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
+ import java.sql.Statement;
++import java.sql.Struct;
++import java.sql.SQLXML;
+ import java.util.ArrayList;
++import java.util.concurrent.Executor;
+ import java.util.Collections;
+ import java.util.Iterator;
+ import java.util.List;
+ import java.util.Map;
++import java.util.Properties;
+
+ /**
+ * A wrapper for java.sql.Connection objects.<p>
+@@ -1067,5 +1077,95 @@
+ openStatements_.add( statement );
+ return statement;
+ }
++
++ public int getNetworkTimeout() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNetworkTimeout(Executor executor, int timeout) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void abort(Executor executor) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public String getSchema() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setSchema(String schema) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Struct createStruct(String typeName,Object[] attributes) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Array createArrayOf(String typeName, Object[] elements)throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Properties getClientInfo() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public String getClientInfo(String name) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setClientInfo(Properties properties) throws SQLClientInfoException {
++ // TODO
++ throw new SQLClientInfoException();
++ }
++
++ public void setClientInfo(String name, String value) throws SQLClientInfoException {
++ // TODO
++ throw new SQLClientInfoException();
++ }
++
++ public boolean isValid(int timeout) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public SQLXML createSQLXML() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public NClob createNClob() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Blob createBlob() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Clob createClob() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean isWrapperFor(Class<?> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public <T> T unwrap(Class<T> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
+ }
+
+diff -Nru gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/DatabaseMetaDataWrapper.java gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/DatabaseMetaDataWrapper.java
+--- gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/DatabaseMetaDataWrapper.java 2004-10-02 13:36:14.000000000 +0200
++++ gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/DatabaseMetaDataWrapper.java 2012-05-05 15:25:44.968605917 +0200
+@@ -40,7 +40,9 @@
+ import java.sql.Connection;
+ import java.sql.DatabaseMetaData;
+ import java.sql.ResultSet;
++import java.sql.RowIdLifetime;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.util.ArrayList;
+ import java.util.Iterator;
+ import java.util.List;
+@@ -3217,6 +3219,61 @@
+ checkIsOpen();
+ return delegate_.supportsStatementPooling();
+ }
++
++ public boolean generatedKeyAlwaysReturned() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public ResultSet getClientInfoProperties() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public RowIdLifetime getRowIdLifetime() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean isWrapperFor(Class<?> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public <T> T unwrap(Class<T> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
+ }
+
+
+diff -Nru gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/PreparedStatementWrapper.java gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/PreparedStatementWrapper.java
+--- gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/PreparedStatementWrapper.java 2004-10-02 13:36:14.000000000 +0200
++++ gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/PreparedStatementWrapper.java 2012-05-06 16:28:25.347956524 +0200
+@@ -44,12 +44,16 @@
+ import java.sql.Blob;
+ import java.sql.Clob;
+ import java.sql.Date;
++import java.sql.NClob;
+ import java.sql.PreparedStatement;
+ import java.sql.Ref;
+ import java.sql.ResultSet;
+ import java.sql.ResultSetMetaData;
++import java.sql.RowId;
+ import java.sql.ParameterMetaData;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
++import java.sql.SQLXML;
+ import java.sql.Time;
+ import java.sql.Timestamp;
+ import java.util.Calendar;
+@@ -790,6 +794,96 @@
+ checkIsOpen();
+ return delegate_.getParameterMetaData();
+ }
++
++ public void setNClob(int parameterIndex, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setClob(int parameterIndex, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNClob(int parameterIndex, NClob value) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setNString(int parameterIndex, String value) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setRowId(int parameterIndex, RowId x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
+ }
+
+
+diff -Nru gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/ResultSetWrapper.java gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/ResultSetWrapper.java
+--- gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/ResultSetWrapper.java 2004-10-02 13:36:14.000000000 +0200
++++ gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/ResultSetWrapper.java 2012-05-06 18:55:27.994499063 +0200
+@@ -37,15 +37,21 @@
+ */
+ package com.gargoylesoftware.base.resource.jdbc;
+
++import java.io.InputStream;
++import java.io.Reader;
+ import java.math.BigDecimal;
+ import java.sql.Array;
+ import java.sql.Blob;
+ import java.sql.Clob;
++import java.sql.NClob;
+ import java.sql.Ref;
+ import java.sql.ResultSet;
+ import java.sql.ResultSetMetaData;
++import java.sql.RowId;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
++import java.sql.SQLXML;
+ import java.sql.Statement;
+ import java.util.Calendar;
+
+@@ -2912,5 +2918,260 @@
+ checkIsOpen();
+ delegate_.updateArray(columnName, x);
+ }
++
++ public <T> T getObject(String columnLabel, Class<T> arg0) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public <T> T getObject(int columnIndex, Class<T> arg0) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNClob(String columnLabel, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNClob(int columnIndex, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateClob(String columnLabel, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateClob(int columnIndex, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Reader getNCharacterStream(String columnLabel) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public Reader getNCharacterStream(int columnIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public String getNString(String columnLabel) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public String getNString(int columnIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public SQLXML getSQLXML(String columnLabel) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public SQLXML getSQLXML(int columnIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public NClob getNClob(String columnLabel) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public NClob getNClob(int columnIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNString(String columnLabel, String nString) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateNString(int columnIndex, String nString) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public int getHoldability() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateRowId(String columnLabel, RowId x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void updateRowId(int columnIndex, RowId x) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public RowId getRowId(String columnLabel) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public RowId getRowId(int columnIndex) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean isWrapperFor(Class<?> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public <T> T unwrap(Class<T> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
+ }
+
+diff -Nru gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/StatementWrapper.java gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/StatementWrapper.java
+--- gsbase-2.0.1/src/java/com/gargoylesoftware/base/resource/jdbc/StatementWrapper.java 2004-10-02 13:36:14.000000000 +0200
++++ gsbase-2.0.1-gil/src/java/com/gargoylesoftware/base/resource/jdbc/StatementWrapper.java 2012-05-05 14:23:43.623402725 +0200
+@@ -40,6 +40,7 @@
+ import java.sql.Connection;
+ import java.sql.ResultSet;
+ import java.sql.SQLException;
++import java.sql.SQLFeatureNotSupportedException;
+ import java.sql.SQLWarning;
+ import java.sql.Statement;
+ import java.util.ArrayList;
+@@ -961,5 +962,35 @@
+ checkIsOpen();
+ return delegate_.getResultSetHoldability();
+ }
++
++ public boolean isCloseOnCompletion() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void closeOnCompletion() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean isPoolable() throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public void setPoolable(boolean poolable) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public boolean isWrapperFor(Class<?> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
++
++ public <T> T unwrap(Class<T> iface) throws SQLException {
++ // TODO
++ throw new SQLFeatureNotSupportedException();
++ }
+ }
+
diff --git a/gsbase-2.0.1.pom b/gsbase-2.0.1.pom
new file mode 100644
index 0000000..4a4289f
--- /dev/null
+++ b/gsbase-2.0.1.pom
@@ -0,0 +1,80 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>gsbase</groupId>
+ <artifactId>gsbase</artifactId>
+ <name>gsbase</name>
+ <version>2.0.1</version>
+ <description>A collection of java utility classes</description>
+ <url>http://gsbase.sourceforge.net</url>
+ <issueManagement>
+ <url>http://sourceforge.net/tracker/?group_id=13111</url>
+ </issueManagement>
+ <ciManagement>
+ <notifiers>
+ <notifier>
+ <address>gsbase at GargoyleSoftware.com</address>
+ </notifier>
+ </notifiers>
+ </ciManagement>
+ <inceptionYear>1998</inceptionYear>
+ <developers>
+ <developer>
+ <id>mbowler</id>
+ <name>Mike Bowler</name>
+ <email>mbowler at GargoyleSoftware.com</email>
+ <organization>Gargoyle Software Inc.</organization>
+ <roles>
+ <role>Release Manager</role>
+ <role>Java Developer</role>
+ </roles>
+ </developer>
+ </developers>
+ <licenses>
+ <license>
+ <name>The GSBase Software License</name>
+ <url>http://gsbase.sourceforge.net/license.html</url>
+ </license>
+ </licenses>
+ <scm>
+ <connection>scm:cvs:ext:mbowler at cvs.gsbase.sourceforge.net:/cvsroot/gsbase:gsbase2</connection>
+ <developerConnection></developerConnection>
+ <url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gsbase</url>
+ </scm>
+ <organization>
+ <name>Gargoyle Software Inc.</name>
+ <url>http://www.GargoyleSoftware.com/</url>
+ </organization>
+ <build>
+ <sourceDirectory>src/java</sourceDirectory>
+ <testSourceDirectory>src/test</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ </dependency>
+ <dependency>
+ <groupId>junitperf</groupId>
+ <artifactId>junitperf</artifactId>
+ <version>1.8</version>
+ </dependency>
+ </dependencies>
+ <distributionManagement>
+ <site>
+ <id>default</id>
+ <name>Default Site</name>
+ <url>scp://gsbase.sourceforge.net//home/groups/g/gs/gsbase/htdocs</url>
+ </site>
+ </distributionManagement>
+</project>
\ No newline at end of file
diff --git a/gsbase.spec b/gsbase.spec
new file mode 100644
index 0000000..48d6c5d
--- /dev/null
+++ b/gsbase.spec
@@ -0,0 +1,96 @@
+Name: gsbase
+Version: 2.0.1
+Release: 1%{?dist}
+Summary: A collection of java utility classes
+Group: Development/Libraries
+# http://gsbase.sourceforge.net/license.html Apache style license
+License: ASL 2.0
+Url: http://sourceforge.net/projects/gsbase/
+Source0: http://downloads.sourceforge.net/gsbase/%{name}-%{version}.zip
+Source1: http://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
+# build fix for java7
+Patch0: %{name}-%{version}-jdk7.patch
+
+BuildRequires: java-devel
+
+BuildRequires: junit
+BuildRequires: junitperf
+
+BuildRequires: maven-local
+
+Requires: junit
+Requires: junitperf
+
+Requires: java
+BuildArch: noarch
+
+%description
+A collection of classes that are helpful
+when writing JUnit test cases. Classes
+include things like a logging subsystem and
+a complex layout manager.
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -c
+find . -name '*.jar' -delete
+find . -name '*.class' -delete
+rm -r docs/*
+%patch0 -p1
+
+cp -pr %{SOURCE1} pom.xml
+
+%if %{?fedora} <= 18
+%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId='junitperf']/pom:version"
+%pom_xpath_inject "pom:dependencies/pom:dependency[pom:artifactId='junitperf']" "
+<scope>system</scope>
+<systemPath>$(build-classpath junitperf)</systemPath>"
+%endif
+
+%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']" "<version>any</version>"
+# list.size expected:<2> but was:<0>
+rm -r src/test/com/gargoylesoftware/base/resource/jdbc/WrapperTestCase.java \
+ src/test/com/gargoylesoftware/base/resource/jdbc/CallableStatementWrapperTest.java \
+ src/test/com/gargoylesoftware/base/resource/jdbc/ConnectionWrapperTest.java \
+ src/test/com/gargoylesoftware/base/resource/jdbc/DatabaseMetaDataWrapperTest.java \
+ src/test/com/gargoylesoftware/base/resource/jdbc/PreparedStatementWrapperTest.java \
+ src/test/com/gargoylesoftware/base/resource/jdbc/ResultSetWrapperTest.java \
+ src/test/com/gargoylesoftware/base/resource/jdbc/StatementWrapperTest.java
+
+%build
+
+mvn-rpmbuild \
+ -Dproject.build.sourceEncoding=UTF-8 \
+ package javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+* Sat May 05 2012 gil cattaneo <puntogil at libero.it> 2.0.1-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..efa75ce 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8278382adfbd2faa7fa0acca94e275f6 gsbase-2.0.1.zip
More information about the scm-commits
mailing list