Code example for Statement

Methods: executeUpdate

0
	  LOG.info("Executing DDL command :" + sql);
 
	  try 
	  { 
		  stmt = _bootstrapConn.createStatement();
		  int rs = stmt.executeUpdate(sql);
		  DBHelper.commit(_bootstrapConn);
		  LOG.info("Executed Commmand (" + sql + ") with result " + rs);
	  } catch (SQLException s) {
		  DBHelper.rollback(_bootstrapConn);
	  } finally { 
		  DBHelper.close(stmt);
	  } 
  } 
 
 
  public void executeUpdate(String sql)
		  throws SQLException 
  { 
	  Statement stmt = null;