Code example for Statement

Methods: execute, getGeneratedKeys

0
				quote + defaultAnswer + quote + comma +
				quote + eInfo + quote + comma +
				readOnly + comma +
				mandatory + end;
 
			statement.execute(sqlInsert, Statement.RETURN_GENERATED_KEYS);
			ResultSet rs = statement.getGeneratedKeys();
			if( rs.next()) {
				questionId = rs.getInt(1);
			} 
			 
    	} catch (Exception e) {
    		e.printStackTrace();
    	} 
    } 
     
    /* 
     * Set the type value in the question object based on the type and subtype values  
     * received from the OSM XML file 
     */ 
    public void cleanseOSM() {