Package DBLayer

Examples of DBLayer.DBSupplier


       
    }
   
    public Supplier searchByName(String Name)
    {
        IFDBSupplier DBSupplier = new DBSupplier();
        return DBSupplier.searchSupplierName(Name, true);
    }
View Full Code Here


    }
    
   
      public int updateSupplier(String Name, String Address, String Country, String PhoneNumber , String Email)
      {
          IFDBSupplier dbSupplier = new DBSupplier();
          Supplier sup = new Supplier();
          String name1 = dbSupplier.searchSupplierName(Name, false).getName();
        
          sup.setName(name1);
          sup.setAddress(Address);
          sup.setCountry(Country);
          sup.setPhoneNumber(PhoneNumber);
          sup.setEmail(Email);
       
          return  dbSupplier.updateSupplier(sup);
         
         
      }
View Full Code Here

              supObj.setPhoneNumber(PhoneNumber);
              supObj.setEmail(Email);
      
              DBConnection.startTransaction();
              try{
               DBSupplier dbSupplier = new DBSupplier();
                 dbSupplier.insertSupplier(supObj);
              }
              catch(Exception ex){
               DBConnection.rollbackTransaction();
                    }
              DBConnection.commitTransaction();
View Full Code Here

      }
       
        public void deleteSupplier(String name)
       
        {
          IFDBSupplier dbSupplierObj = new DBSupplier();
          dbSupplierObj.deleteSupplier(name);
        }
View Full Code Here

     
      public static void main(String[] args)
      {
        ControlSupplier ctr= new ControlSupplier();
        Supplier sup = new Supplier();
        DBSupplier dbSupplier = new DBSupplier();
       
        ctr.deleteSupplier("Toshko");
       
        }
View Full Code Here

TOP

Related Classes of DBLayer.DBSupplier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.