to update a batch in a table in jdbc which method of
statement object is used.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / chandran
to update a batch in a table Prepared Statement is used and
the method executeUpdate(), is used
| Is This Answer Correct ? | 4 Yes | 15 No |
What is java transaction service (jts)?
What is DDP?
Is core java and j2se same?
What is iso 3166?
What are the main components of a class in java?
What is Connector architecture?
What is java web technologies?
What is meant by j2ee?
What is sandbox in java?
What is general entity?
Which edition of java is used for developing web application?
public class ActionSearchBean extends GenericSearchBean<ActionDTO, Long, ActionDTO> { @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 ?