This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i need help with this code? plz

 
Aa'ed Qarta
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey there,
i'm new to JDBC stuff, so i did my best to make a simple SQL editor for my university project. i need to know how to return my connection object in this code..




// sorry the code is long...but i really need this! :>
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would strongly favor passing the SQL and just executing the query in one place rather than trying to pass the connection around. You don't want the connection open for longer than neccessary as it wastes resources.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic