privé nietige allocateConsolidationProducts () {
int. tmpProduct = -1;
consolProducts [0] = nieuwe ProductsSQLConsolidated ();
probeer {
ResultSet RS = sqlStatement.executeQuery („UITGEZOCHTE CODE VAN DE ORDE VAN PRODUCTEN DOOR CODE ASC“);
int. i =1;
terwijl (rs.next ()) {
consolProducts [I] = nieuwe ProductsSQLConsolidated ();
tmpProduct = Integer.parseInt (rs.getString („CODE“));
consolProducts [I] .checked = vals;
consolProducts [I] .productCode = tmpProduct;
i++;
}
numberProducts = I;
rs.close ();
} vangst (Se SQLException) {
System.out.println („SQL van Producten de code voert niet uit. “);
}
} |