to update a batch in a table in jdbc which method of
statement object is used.

Answer Posted / surima

First add the sql querys to statement object via
stmt.addBatch(strupdQry)
then write stmt.executeBatch()

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

public class ActionSearchBean extends GenericSearchBean { @Override public String search() { data.setRowCount(null); if(data.getRowCount()==0){ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } return "searchAction"; } @Override public String clear() { data.setRowCount(null); if (data.getRowCount() > 0){ data.getNoRecordFound().setRendered(false); data.getDataScroller().setRendered(true); }else{ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } data.setModel(new ActionDTO()); data.setRowCount(null); return "searchAction"; } } what is the purpose of @Override ...what will do @Override here ?

2188


What do you understand by connector?

670


i want test pattern of zylog company and some examples also

2512


What is a component in java?

637


How to invoke stored procedure in hibernate?

644


What is java technology stack?

667


whay java does not support bass by reference

2575


What is a java applet?

706


Is downloading java safe?

620


How do I become a java developer?

691


What is business method?

710


What are web technologies in java?

630


What are java front end tools?

667


What is javabeans component?

694


What is isv?

665