public int delete(int id) {
		try {
			Statement s =  StatusController.connection.createStatement();
			String sql = "delete from stock where productId=" + id;
			s.executeUpdate(sql);
			return 1;
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return -1;
	}