Commits

synthomat  committed 9ba6dc7

Letzter Commit war fehlerhaft. Ausgebessert

  • Participants
  • Parent commits 7b1a0bf

Comments (0)

Files changed (2)

File src/db/JDBCConnector.java

 
 			// ResultSet-Objekt wird verarbeitet und die Werte
 			// werden auf die Standardausgabe geschrieben
+			/*
 			while (rs.next()) {
 				for (int i = 1; i <= n; i++) {
 					if (i != n)
 						System.out.println(rs.getString(i));
 				}
 			}
+			*/
 			System.out.println(meta.getURL());
 			System.out.println(meta.getUserName());
 			ResultSet res = meta.getTables(null, null, null,
 		
 		try {
 			Statement stmt = con.createStatement();
-			ResultSet rs = stmt.executeQuery("SELECT * FROM products LIMIT " + count);
+			// Alles oberhalb 41.000 wegfiltern -.-
+			ResultSet rs = stmt.executeQuery("SELECT * FROM products WHERE id < 41000 ORDER BY id DESC LIMIT " + count);
 			
 			while (rs.next()) {
-				
 				// neues Product anlegen
 				list.add(new Product(
 						rs.getString("name"),

File src/hs/HardwareShop.java

 		ModelShop model = new ModelShop();
 		
 		ViewShop viewShop = new ViewShop(model);
-		ViewCustomer viewCustomer = new ViewCustomer(model);
+		//ViewCustomer viewCustomer = new ViewCustomer(model);
 		
 		ControllerShop controllerShop = new ControllerShop(model, viewShop);
 		//ControllerCustomer controllerCustomer = new ControllerCustomer(model, viewCustomer);