FileDocCategorySizeDatePackage
CDReleaseDataAccess.javaAPI DocExample1278Thu Oct 13 14:58:00 BST 2005com.samscdrental.dataaccess

CDReleaseDataAccess

public class CDReleaseDataAccess 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(CDRelease aCDRelease)
add

param
aCDRelease CDRelease


	    	 
	     
	
		theCollection.add( aCDRelease );
	
public CDReleasefindByUPCCode(UPCCode aUPCCode)
findByUPCCode

return
CDRelease

		Iterator iterator = theCollection.iterator();
		while ( iterator.hasNext() )
		{
			CDRelease aCDRelease = ( CDRelease ) iterator.next();
			if ( aCDRelease.getUPCCode().equals( aUPCCode ) )
			{
				return aCDRelease;
			}
		}
		return null;
	
public voidremove(CDRelease aCDRelease)
remove

param
aCDRelease CDRelease

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

		theCollection.clear();