Whole document tree
Appendix C: Implementation notesC.1 ResultSet lookups by method nameHere is some specimen code that implements the ResultSet.findColumn and (for example) ResultSet.getString using ResultSetMetaData.
C.2 Object finalizationApplets are advised to call "close" on the various JDBC objects such as Statement, ResultSet, Connection, when they are done with them. However, some applets will forget and some applets may get killed before they can close these objects.If JDBC drivers have state associated with JDBC objects that needs to get explicitly cleared up, then they should take care to provide "finalize" methods. The garbage collector will call these finalize methods when the objects are found to be garbage, and this will give the driver a chance to close (or otherwise clean up) the objects. Note, however, that there is no guarantee that the garbage collector will ever run, so you can't rely on the finalizers being called.
Contents | Prev | Next jdbc@wombat.eng.sun.com or jdbc-odbc@wombat.eng.sun.com Copyright © 1996, 1997 Sun Microsystems, Inc. All rights reserved. |