FileDocCategorySizeDatePackage
CustomerDataAccess.javaAPI DocExample1277Thu Oct 13 14:58:00 BST 2005com.samscdrental.dataaccess

CustomerDataAccess

public class CustomerDataAccess extends Object implements Serializable

Title: Sams CD Rental Store

Description:

Copyright: Copyright (c) 2004

Company:

author
Ken Pugh
version
1.0

Fields Summary
private static final long
serialVersionUID
private Collection
theCollection
Constructors Summary
Methods Summary
public voidadd(Customer aCustomer)
add

param
aCustomer Customer

 


	    	 
	     
	
		theCollection.add( aCustomer );
	
public CustomerfindByCustomerID(CustomerID aCustomerID)
findByCustomerID

return
Customer

		Iterator iterator = theCollection.iterator();
		while ( iterator.hasNext() )
		{
			Customer Customer = ( Customer ) iterator.next();
			if ( Customer.getCustomerID().equals( aCustomerID ) )
			{
				return Customer;
			}
		}
		return null;
	
public voidremove(Customer aCustomer)
remove

param
aCustomer Customer

		theCollection.remove( aCustomer );
	
public voidremoveAll_TestingOnly()
removeAll

		theCollection.clear();