User: boissier
Date: 01/12/04 11:08:59
Modified: src/main/org/jboss/test/util TestConnection.java
Log:
* In JDK 1.4, the interface java.sql.Connection has new 12 methods.
The patch below adds those methods to TestConnection.java
to make the project compile, but keep them commented out by
default to not break anything with JDK 1.3.
Revision Changes Path
1.2 +46 -1 jbosstest/src/main/org/jboss/test/util/TestConnection.java
Index: TestConnection.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/util/TestConnection.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestConnection.java 2001/10/21 22:03:48 1.1
+++ TestConnection.java 2001/12/04 19:08:59 1.2
@@ -13,7 +13,7 @@
* Database connection for unit tests. Currently nothing is implemented except
* close, isClosed, isAutoCommit, setAutoCommit(true), and rollback. Everything
* else throws a SQLException.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
* @author <a href="mailto:[EMAIL PROTECTED]">Aaron Mulder</a>
*/
public class TestConnection implements Connection {
@@ -118,4 +118,49 @@
public void setTypeMap(Map parm1) throws java.sql.SQLException {
throw new SQLException(TEST_DB);
}
+
+
+ // Note: The following methods have been added to make the testsuite 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 SQLException(TEST_DB);
+ }
+ public int getHoldability() throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public CallableStatement prepareCall(String sql, int resultSetType, int
resultSetConcurrency, int resultSetHoldability) throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public PreparedStatement prepareStatement(String sql, int resultSetType, int
resultSetConcurrency, int resultSetHoldability) throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public PreparedStatement prepareStatement(String sql, String[] columnNames)
throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public void releaseSavepoint(Savepoint savepoint) throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public void rollback(Savepoint savepoint) throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public void setHoldability(int holdability) throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public Savepoint setSavepoint() throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ public Savepoint setSavepoint(String name) throws SQLException {
+ throw new SQLException(TEST_DB);
+ }
+ */
+
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development