コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public static customer getInfo() {
   customer a = new customer();
   return a.retrieveByNRIC(NRICCurrent);
 }