intymny kawitacyjny allocateConsolidationProducts () {
int tmpProduct = -1;
consolProducts [(0)] = nowy ProductsSQLConsolidated ();
próba {
ResultSet rs = sqlStatement.executeQuery ("WYBRANY KOD OD PRODUKT ROZKAZ KOD ASC");
int i =1;
podczas gdy (rs.next ()) {
consolProducts [i] = nowy ProductsSQLConsolidated ();
tmpProduct = Integer.parseInt (rs.getString ("KOD"));
consolProducts [i] .checked = fałszywy;
consolProducts [i] .productCode = tmpProduct;
i++;
}
numberProducts = i;
rs.close ();
} chwyt (SQLException se) {
System.out.println ("Produkt SQL kod execute.");
}
} |