MODE-2125 Fixed data type conversions for the local JDBC driver.

Also, added `ResultSet` support for the `getByte`, `getShort`, `getUrl`, `getFloat` and `getBlob` methods.

The code was not changed to use JDK 7 specific idioms, making it easier to merge in JDK 6 branches.