public boolean updateCustomer(CustomerForm customer) {
		boolean b=true;
		int result,result_temp;
		ConnectionUtility chd = new ConnectionUtility();
		Connection con = null;
		PreparedStatement ps = null,ps1 = null;
       try {
			con =chd.create();
			String firstName = customer.getFirstName();
			String lastName = customer.getLastName();
			String userName = customer.getUserName();
			String password = customer.getPassword();
			String street = customer.getStreet();
			String city = customer.getCity();
			Integer pinCode = customer.getPinCode();
			Long mobileNum = customer.getMobileNum();
			ps1 = con.prepareStatement("update LoginDetails set password='"+password+"' where username='"+userName+"' ");			
            result_temp = ps1.executeUpdate();
			ps = con.prepareStatement("update customer set firstname='"+firstName+"',lastname='"+lastName+"',street='"+street+"',"
					                                     + "city='"+city+"',pincode="+pinCode+",mobilenum="+mobileNum+" where username='"+userName+"' ");
			result =ps.executeUpdate();
		    if(result>0 && result_temp>0) {
	                b=true;
	        } else {
	            	b=false;								
	        }
		} catch(Exception e) {
		    e.printStackTrace();
	    }
	     finally {
		   try {
			   con.commit();
			   con.close();
	       } catch(Exception e) {
			   e.printStackTrace();
		   }
	     }
		return b;
	}