Example 9.6 Using a DAO and DAO Factory Ð Client Code ... // create the required DAO Factory DAOFactory cloudscapeFactory = DAOFactory.getDAOFactory(DAOFactory.DAOCLOUDSCAPE); // Create a DAO CustomerDAO custDAO = cloudscapeFactory.getCustomerDAO(); // create a new customer int newCustNo = custDAO.insertCustomer(...); // Find a customer object. Get the value object. Customer cust = custDAO.findCustomer(...); // modify the values in the value object. cust.setAddress(...); cust.setEmail(...); // update the customer object using the DAO custDAO.updateCustomer(cust); // delete a customer object custDAO.deleteCustomer(...); // select all customers in the same city Customer criteria=new Customer(); criteria.setCity(ÒNew YorkÓ); Collection customersList = custDAO.selectCustomersVO(criteria); // returns customersList - collection of Customer // value objects. iterate through this collection to // get values. ...