• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Combine Two methods into one

 
Mike Jenkins
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 methods working in my class file that I am trying to convert into 1 method:





Here is my attempt and not sure how to make this work?




Please advise.
[ October 08, 2007: Message edited by: Mike Jenkins ]
 
Rob Spoor
Sheriff
Pie
Posts: 20744
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand correctly, you want to insert two rows into the database table in one swoop? The most elegant way of doing that I know is using a batch insert.

See http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.apdv.java.doc/doc/tjvbtupd.htm for a nice code example.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic