public boolean createCustomer( String Nric, String Password, String FName, String LName, int PhoneNum, String Gender, String Email, String Address, String company, String DateOfReg, String AccStatus, String ReasonForDeletion) { boolean result = false; customer a = new customer( Nric, Password, FName, LName, PhoneNum, Gender, Email, Address, company, DateOfReg, AccStatus, ReasonForDeletion); if (a.createCustomer(a)) { result = true; } return result; }
public static boolean deleteCustomer(String Nric, String AccStatus, String ReasonForDel) { boolean result = false; customer a = new customer(Nric, AccStatus, ReasonForDel); if (a.deleteCustomer(a)) { result = true; } return result; }
public static boolean updateCustomer( String Nric, String Password, int PhoneNum, String Email, String Address, String company) { boolean result = false; customer a = new customer(Nric, Password, PhoneNum, Email, Address, company); if (a.updateCustomer(a)) { result = true; } return result; }
public static customer getInfo() { customer a = new customer(); return a.retrieveByNRIC(NRICCurrent); }