JDBC: New updates to CVS

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: JDBC: New updates to CVS
Date: 2001-01-18 17:44:08
Message-ID: 979839848.3a672b6835808@webmail.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I've just commited some updates to the JDBC driver. What follows is an excerpt
of what's been done over the last couple of days.

Now, due to not having a working Linux box at home, I've not had chance to test
everything, but it's in there for you to try out. I'm busy for the rest of the
week, so email me if you find any problems and I'll look at it later.

I've got loads more to put in there over the next few days.

Peter

Thu Jan 18 17:37:00 GMT 2001 peter(at)retep(dot)org(dot)uk
- Added new error message into
errors.properties "postgresql.notsensitive"
This is used by jdbc2.ResultSet when a method is called that should
fetch the current value of a row from the database refreshRow() for
example.
- These methods no longer throw the not implemented but the new noupdate
error. This is in preparation for the Updateable ResultSet support
which will overide these methods by extending the existing class to
implement that functionality, but needed to show something other than
notimplemented:
moveToCurrentRow()
moveToInsertRow()
rowDeleted()
rowInserted()
all update*() methods, except those that took the column as a String
as they were already implemented to convert the String to an int.
- getFetchDirection() and setFetchDirection() now throws
"postgresql.notimp" as we only support one direction.
The CursorResultSet will overide this when its implemented.
- Created a new class under jdbc2 UpdateableResultSet which extends
ResultSet and overides the relevent update methods.
This allows us to implement them easily at a later date.
- In jdbc2.Connection, the following methods are now implemented:
createStatement(type,concurrency);
getTypeMap();
setTypeMap(Map);
- The JDBC2 type mapping scheme almost complete, just needs SQLInput &
SQLOutput to be implemented.
- Removed some Statement methods that somehow appeared in Connection.
- In jdbc2.Statement()
getResultSetConcurrency()
getResultSetType()
setResultSetConcurrency()
setResultSetType()
- Finally removed the old 6.5.x driver.

Thu Jan 18 12:24:00 GMT 2001 peter(at)retep(dot)org(dot)uk
- These methods in org.postgresql.jdbc2.ResultSet are now implemented:
getBigDecimal(int) ie: without a scale (why did this get missed?)
getBlob(int)
getCharacterStream(int)
getConcurrency()
getDate(int,Calendar)
getFetchDirection()
getFetchSize()
getTime(int,Calendar)
getTimestamp(int,Calendar)
getType()
NB: Where int represents the column name, the associated version
taking a String were already implemented by calling the int
version.
- These methods no longer throw the not implemented but the new noupdate
error. This is in preparation for the Updateable ResultSet support
which will overide these methods by extending the existing class to
implement that functionality, but needed to show something other than
notimplemented:
cancelRowUpdates()
deleteRow()
- Added new error message into errors.properties "postgresql.noupdate"
This is used by jdbc2.ResultSet when an update method is called and
the ResultSet is not updateable. A new method notUpdateable() has been
added to that class to throw this exception, keeping the binary size
down.
- Added new error message into errors.properties "postgresql.psqlnotimp"
This is used instead of unimplemented when it's a feature in the
backend that is preventing this method from being implemented.
- Removed getKeysetSize() as its not part of the ResultSet API

Thu Jan 18 09:46:00 GMT 2001 peter(at)retep(dot)org(dot)uk
- Applied modified patch from Richard Bullington-McGuire
<rbulling(at)microstate(dot)com>. I had to modify it as some of the code
patched now exists in different classes, and some of it actually
patched obsolete code.

Wed Jan 17 10:19:00 GMT 2001 peter(at)retep(dot)org(dot)uk
- Updated Implementation to include both ANT & JBuilder
- Updated README to reflect the changes since 7.0
- Created jdbc.jpr file which allows JBuilder to be used to edit the
source. JBuilder _CAN_NOT_ be used to compile. You must use ANT for
that. It's only to allow JBuilders syntax checking to improve the
drivers source. Refer to Implementation for more details

--
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

Browse pgsql-interfaces by date

  From Date Subject
Next Message mike 2001-01-18 18:03:23 imorting csv files into postgres
Previous Message Zolof 2001-01-18 17:17:27 pl/pgSQL & transaction