Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / June 2004

Tip: Looking for answers? Try searching our database.

Where is Connection.close?

Thread view: 
Roedy Green - 11 Jun 2004 23:17 GMT
I don't see Connection.close in the JavaDoc.  Where is it?
I see an isClosed?

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Gerd Nachtsheim - 11 Jun 2004 23:21 GMT
> I don't see Connection.close in the JavaDoc.  Where is it?
> I see an isClosed?

From isClosed() scroll the docs a bit up to the previous method and it sayz

<quote>
close

public void close()
           throws SQLException

    Releases this Connection object's database and JDBC resources immediately
instead of waiting for them to be automatically released.

    Calling the method close on a Connection object that is already closed is a
no-op.

    Note: A Connection object is automatically closed when it is garbage
collected. Certain fatal errors also close a Connection object.

    Throws:
        SQLException - if a database access error occurs

</quote>

This is in 1.4.2 and I am pretty sure it's been there in earlier versions.

Hope that helps

Gerd
Signature

Gerd Nachtsheim mailto:gerdn@users.sourceforge.net ICQ:#13126958

David Rabinowitz - 13 Jun 2004 15:16 GMT
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Connection.html#close()

> I don't see Connection.close in the JavaDoc.  Where is it?
> I see an isClosed?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.