You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Lev Assinovsky <le...@peterlink.ru> on 2002/03/13 14:44:41 UTC

[dbcp] JDBC 3.0 and JDK 1.4

Since JDK 1.4 includes JDBC 3.0
I added all additional functions with a body like:
{
  throw new SQLException("Not implemented.");
}
to be able to compile in JDK 1.4.

The following files were modified (in my local box):

./src/java/org/apache/commons/dbcp/DelegatingConnection.java
./src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java
./src/java/org/apache/commons/dbcp/DelegatingStatement.java
./src/test/org/apache/commons/dbcp/TesterConnection.java
./src/test/org/apache/commons/dbcp/TesterPreparedStatement.java
./src/test/org/apache/commons/dbcp/TesterResultSet.java
./src/test/org/apache/commons/dbcp/TesterStatement.java

Now dbcp can be compiled by any JDK.
Do you need these files?

Regards, 
-- 
Lev Assinovsky                Peterlink Web
Programmer		      St. Petersburg, Russia
Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
E-mail: lev@peterlink.ru

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [dbcp] JDBC 3.0 and JDK 1.4

Posted by Lev Assinovsky <le...@peterlink.ru>.
Andrus Adamchik wrote:
> 
> Question: if you added a method
> 
> public Savepoint setSavepoint(String name) throws SQLException
> 
> how is this going to compile with JSDK 1.3? java.sql.Savepoint was only
> added in 1.4
> 
> Lev Assinovsky wrote:
> > Since JDK 1.4 includes JDBC 3.0
> > I added all additional functions with a body like:
> > {
> >   throw new SQLException("Not implemented.");
> > }
> > to be able to compile in JDK 1.4.
> 
> --
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
> - Andrei (a.k.a. Andrus) Adamchik
> Home of Cayenne - O/R Persistence Framework
> http://objectstyle.org/cayenne/
> email: andrus-jk at objectstyle dot org
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

Wow! You are right!!
Sorry, I didn't think about additional classes!


-- 
Lev Assinovsky                Peterlink Web
Programmer		      St. Petersburg, Russia
Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7а
E-mail: lev@peterlink.ru

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [dbcp] JDBC 3.0 and JDK 1.4

Posted by Andrus Adamchik <an...@objectstyle.org>.
Question: if you added a method

public Savepoint setSavepoint(String name) throws SQLException

how is this going to compile with JSDK 1.3? java.sql.Savepoint was only 
added in 1.4




Lev Assinovsky wrote:
> Since JDK 1.4 includes JDBC 3.0
> I added all additional functions with a body like:
> {
>   throw new SQLException("Not implemented.");
> }
> to be able to compile in JDK 1.4.


-- 
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
- Andrei (a.k.a. Andrus) Adamchik
Home of Cayenne - O/R Persistence Framework
http://objectstyle.org/cayenne/
email: andrus-jk at objectstyle dot org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>