User: user57
Date: 02/03/21 17:37:46
Modified: src/main/org/jboss/resource/adapter/jdbc/local
ConnectionInPool.java PreparedStatementInPool.java
ResultSetInPool.java StatementInPool.java
Log:
o Adding 2 interfaces from 1.4 for 1.3 compat*
o Uncommented JDK 1.4 specifics
o Modified build to include 2 java.sql interfaces unless using 1.4
Revision Changes Path
1.6 +3 -4
jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/ConnectionInPool.java
Index: ConnectionInPool.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/ConnectionInPool.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ConnectionInPool.java 8 Feb 2002 13:13:26 -0000 1.5
+++ ConnectionInPool.java 22 Mar 2002 01:37:46 -0000 1.6
@@ -4,7 +4,7 @@
package org.jboss.resource.adapter.jdbc.local;
// Uncomment this one line to compile JBoss with JDK 1.4
-//import java.lang.UnsupportedOperationException;
+import java.lang.UnsupportedOperationException;
import java.sql.CallableStatement;
import java.sql.Connection;
@@ -13,7 +13,7 @@
import java.sql.ResultSet;
// Uncomment this one line to compile JBoss with JDK 1.4
-//import java.sql.Savepoint;
+import java.sql.Savepoint;
import java.sql.SQLException;
import java.sql.SQLWarning;
@@ -913,7 +913,7 @@
// Note: The following methods have been added to make JBoss compile with JDK
1.4.
// These methods will need to be implemented later on.
// Uncomment those 12 methods to compile JBoss with JDK 1.4.
- /*
+
public Statement createStatement(int resultSetType, int resultSetConcurrency,
int resultSetHoldability) throws SQLException {
throw new UnsupportedOperationException("Method createStatement() not yet
implemented.");
}
@@ -950,6 +950,5 @@
public Savepoint setSavepoint(String name) throws SQLException {
throw new UnsupportedOperationException("Method setSavepoint() not yet
implemented.");
}
- */
}
1.3 +7 -6
jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/PreparedStatementInPool.java
Index: PreparedStatementInPool.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/PreparedStatementInPool.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PreparedStatementInPool.java 4 Dec 2001 19:01:13 -0000 1.2
+++ PreparedStatementInPool.java 22 Mar 2002 01:37:46 -0000 1.3
@@ -8,9 +8,9 @@
import java.math.BigDecimal;
// Uncomment these 3 lines to compile JBoss with JDK 1.4
-//import java.lang.UnsupportedOperationException;
-//import java.net.URL;
-//import java.sql.ParameterMetaData;
+import java.lang.UnsupportedOperationException;
+import java.net.URL;
+import java.sql.ParameterMetaData;
import java.sql.Array;
import java.sql.Blob;
@@ -987,12 +987,13 @@
// Note: The following methods have been added to make JBoss compile with JDK
1.4.
// These methods will need to be implemented later on.
// Uncomment those 2 methods to compile JBoss with JDK 1.4.
- /*
+
public ParameterMetaData getParameterMetaData() throws SQLException {
- throw new UnsupportedOperationException("Method getParameterMetaData() not
yet implemented.");
+ throw new UnsupportedOperationException("Method getParameterMetaData() not
yet implemented.");
}
+
public void setURL(int parameterIndex, URL x) throws SQLException {
throw new UnsupportedOperationException("Method setURL() not yet
implemented.");
}
- */
+
}
1.3 +3 -4
jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/ResultSetInPool.java
Index: ResultSetInPool.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/ResultSetInPool.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ResultSetInPool.java 4 Dec 2001 19:01:13 -0000 1.2
+++ ResultSetInPool.java 22 Mar 2002 01:37:46 -0000 1.3
@@ -4,8 +4,8 @@
package org.jboss.resource.adapter.jdbc.local;
// Uncomment these 2 lines to compile JBoss with JDK 1.4
-//import java.lang.UnsupportedOperationException;
-//import java.net.URL;
+import java.lang.UnsupportedOperationException;
+import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
@@ -3293,7 +3293,7 @@
// Note: The following methods have been added to make JBoss compile with JDK
1.4.
// These methods will need to be implemented later on.
// Uncomment those 10 methods to compile JBoss with JDK 1.4.
- /*
+
public URL getURL(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Method getURL() not yet
implemented.");
}
@@ -3324,7 +3324,6 @@
public void updateRef(String columnName, Ref x) throws SQLException {
throw new UnsupportedOperationException("Method updateRef() not yet
implemented.");
}
- */
// ---- End Implementation of ResultSet ----
}
1.4 +2 -3
jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/StatementInPool.java
Index: StatementInPool.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/local/StatementInPool.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StatementInPool.java 4 Dec 2001 19:01:14 -0000 1.3
+++ StatementInPool.java 22 Mar 2002 01:37:46 -0000 1.4
@@ -4,7 +4,7 @@
package org.jboss.resource.adapter.jdbc.local;
// Uncomment this line to compile JBoss with JDK 1.4
-//import java.lang.UnsupportedOperationException;
+import java.lang.UnsupportedOperationException;
import java.sql.Connection;
import java.sql.ResultSet;
@@ -755,7 +755,7 @@
// Note: The following methods have been added to make JBoss compile with JDK
1.4.
// These methods will need to be implemented later on.
// Uncomment those 9 methods to compile JBoss with JDK 1.4.
- /*
+
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
throw new UnsupportedOperationException("Method execute() not yet
implemented.");
}
@@ -783,7 +783,6 @@
public int getResultSetHoldability() throws SQLException {
throw new UnsupportedOperationException("Method getResultSetHoldability() not
yet implemented.");
}
- */
// ---- End Implementation of Statement ----
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development