File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes prepared statement hashmap Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "prepared statement hashmap" Watch "prepared statement hashmap" New topic
Author

prepared statement hashmap

matteo rossi
Greenhorn

Joined: May 20, 2012
Posts: 2
Hi, I have a HTML form with a lot of many fields (string, date, int, double). I send them to a servlet that must execute insert into db table. Which is method faster? I'd like write minimum code lines. prepared statement and hashmap? Can you give me an example?

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Don't worry about what's fastest at this point. Do what makes the most sense.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
matteo rossi
Greenhorn

Joined: May 20, 2012
Posts: 2
Ok, I want write not much code (minimum).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

No one is stopping you. Go right ahead.

Then post back with any problems you might have, including the code (be sure to UseCodeTags).
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: prepared statement hashmap
 
Similar Threads
Urgent Java interview question 6+ yrs exp.
what is better
Inserting | into oracle DB
Create DB2 database
PreparedStatement v/s Statement