home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / JDBC / JDBC_011 / JDBC-REL < prev    next >
Encoding:
Text File  |  1996-11-10  |  6.9 KB  |  219 lines

  1.         JDBC Version 1.1 Release Notes
  2.  
  3. Changes for 1.1c
  4. ----------------
  5. Several bugs in Timestamp nanos and a few minor bugs in Bignum were
  6. fixed. No API changes were made.
  7.  
  8. Changes for 1.1
  9. ---------------
  10. 1. Revised isolation level description
  11.  
  12. 2. Revised getTablePrivileges description to note that a privilege
  13. applies to one or more columns of the table.
  14.  
  15. 3. Revised preserve across commit/rollback metadata to specify positive case while allowing negative case result in partial preservation.
  16.  
  17. 4. Added NO ACTION and SET DEFAULT values for getImportedKeys/getExportedKeys/getCrossReference ON DELETE and ON UPDATE
  18.  
  19. 4.5  Added DEFERRABILITY attribute to getImportedKeys/getExportedKeys/getCrossReference
  20.  
  21. 5. Drop auto close
  22.  
  23. 6. Rename java.sql.Numeric to java.lang.Bignum
  24.  
  25. 7. Note that for maximum portability values less than 256 should not be
  26. used for setMaxFieldSize
  27.  
  28. 8. Changed initialization of SQLState to null from "" to agree with initialization of reason.
  29.  
  30. 9. Clarify definition of Date, Time and Timestamp
  31.  
  32. 10. Added private constructor to DriverManager and Types to prevent instantiation.
  33.  
  34. 11. Added millis constructor for Date, Time and Timestamp
  35.  
  36. 12. Clarified default values for the SQLException, SQLWarning, DriverPropertyInfo and DataTruncation constructors.
  37.  
  38.  
  39.  
  40. What is JDBC?
  41. -----------------------------
  42. JDBC is the Java Database Connectivity API.
  43.  
  44. The JDBC API defines Java classes to represent database connections,
  45. SQL statements, result sets, database metadata, etc. It allows a Java
  46. programmer to issue SQL statements and process the results.
  47.  
  48. The JDBC API is implemented via a driver manager that can support
  49. multiple drivers connecting to different databases. JDBC drivers can
  50. either be entirely written in Java so that they can be downloaded as
  51. part of an applet, or they can be implemented using native methods to
  52. bridge to existing database access libraries.
  53.  
  54.  
  55. Who to contact?
  56. ---------------
  57. You can contact us at jdbc@wombat.eng.sun.com
  58.  
  59.  
  60. What environments are supported?
  61. -------------------------------------
  62. JDBC itself is implemented entirely in Java and will run anywhere the JDK is hosted. Use of JDBC requires the use of one or more JDBC drivers. Each driver will have its own database and platform restrictions.
  63.  
  64.  
  65. Version 1.01 Changes
  66. --------------------
  67. No changes were made to the JDBC API; however, a number of
  68. clarifications have been added to the 1.01 version. In addition, a more
  69. efficient implementation of the Numeric class is provided; this
  70. contains some addition methods.
  71.  
  72. 1. Use ODBC driver specific precision for setXXX and setObject
  73.  
  74. 2. Removed the JDBC certified driver requirement for
  75. supportsDifferentTableCorrelationNames; this is a restriction that JDBC
  76. drivers do not have to impose.
  77.  
  78. 3. The description of the various SQL identifier case sensitivity and
  79. case storage modes were confusing and as a result the JDBC driver
  80. requirements were not correct. The descriptions were improved and the
  81. driver requirements were corrected.
  82.  
  83. 4. Added a note that JDBC java.io.stream.available() may return 0
  84. whether or note data is available. JDBC drivers may not be able to
  85. provide an accurate count of available data.
  86.  
  87. 5. Statement.getMoreResults termination conditions were not documented
  88. correctly . This was corrected.
  89.  
  90. 6. Noted that Statement.executeUpdate implicitly closes the statement's
  91. current result set.
  92.  
  93. 7. The Driver comments were changed to note that a static section
  94. should create an instance and register it. This was a documentation
  95. error.
  96.  
  97. 8. Remove synchronized from DriverManager.println to prevent deadlocks
  98. with other threads raising exceptions during connect.
  99.  
  100. 9. Fixed parameters for getCrossReference. They were documented in
  101. error.
  102.  
  103. 10. Inhibited SQLException tracing for SQLWarnings; added stack trace
  104.  
  105. 11. Add the following to DatabaseMetaData
  106.  * A SQLException will be thrown if a driver does not support a meta
  107.  * data method.  In the case of methods that returning a ResultSet,
  108.  * either a ResultSet (which may be empty) is returned or a
  109.  * SQLException is throw.
  110.  
  111. 12. Note that executeQuery never returns a null ResultSet ref
  112.  
  113. 13. Clarify auto commit - 
  114.  
  115.      * The commit occurs when the statement completes or the next
  116.      * execute occurs, whichever comes first. In the case of
  117.      * statements returning a ResultSet, the statement completes when
  118.      * the last row of the ResultSet has been retrieved or the
  119.      * ResultSet has been closed. In advanced cases, a single
  120.      * statement may return multiple results as well as output
  121.      * parameter values. Here the commit occurs when all results and
  122.      * output param values have been retrieved.
  123.  
  124. 14. Remove ColumnName from the getTablePrivileges ResultSet; this was
  125. added in error.
  126.  
  127. 15. Added null checks for DriverManager getConnection parameters
  128.  
  129. 16. Noted that CallableStatement ResultSets and update counts should be
  130. processed prior to getting output parameter values.
  131.  
  132.  
  133. Installation
  134. ------------
  135. See the Java web page for info on installing the JDK.
  136.  
  137. JDBC is provided as both a compressed tar file and a zip file. Use the
  138. appropriate utility for the one you've selected.
  139.  
  140. If your are installing a zip file be sure to use a version of unzip
  141. that retains long file names and the original directory names.
  142.  
  143. JDBC installs itself into the jdbc directory. Be sure to add jdbc/classes
  144. to your Java CLASSPATH.
  145.  
  146.  
  147. JDBC Implementation
  148. -------------------
  149. JDBC is implemented by the java.sql package. 
  150.  
  151. java.sql contains the following classes:
  152.  
  153. DriverManager
  154.   The DriverManager passes connection requests to the JDBC drivers
  155.  
  156. DriverPropertyInfo
  157.   An instance of a JDBC driver connection property
  158.  
  159. Types
  160.   A list of SQL data type symbolic constants
  161.  
  162. Date
  163.   An extension of java.util.Data that more closesly matches a SQL data
  164.  
  165. Time
  166.   An extension of java.util.Data that more closesly matches a SQL time
  167.  
  168. Timestamp
  169.   An extension of java.util.Data that more closesly matches a SQL timestamp
  170.  
  171. java.sql contains the following interfaces (JDBC drivers provide their
  172. implementation:
  173.  
  174. Driver
  175.   A class through which the DriverManager (and optionally users) access
  176.   JDBC drivers.
  177.  
  178. Connection
  179.   A database connection
  180.  
  181. Statement
  182.   A class that executes simple SQL statements
  183.  
  184. PreparedStatement
  185.   A class specialized for handling parametric SQL statements
  186.  
  187. CallableStatement
  188.   A class specialized for handling database stored procedure calls
  189.  
  190. ResultSet
  191.   A class for accessing the tabular results produced by executing a SQL
  192.   query
  193.  
  194. DatabaseMetaData
  195.   A class used to access a variety of information about a Connection's
  196.   DBMS and database.
  197.  
  198. ResultSetMetaData
  199.   A class that is used to access a variety of information describing a
  200.   ResultSet's attributes
  201.  
  202.  
  203. Debugging
  204. ---------
  205.  
  206. The DriverManager provides a trace mechanism that is used by JDBC
  207. drivers to provide a trace of their method calls. 
  208.  
  209. The following line of code enables tracing and sends it to standard
  210. out:
  211.  
  212.     java.sql.DriverManager.setLogStream(java.lang.System.out);
  213.  
  214.  
  215. General Notes
  216. -------------
  217. JDBC was compiled with JDK 1.0.2.
  218.  
  219.