FileDocCategorySizeDatePackage
MaintenanceOperations.javaAPI DocExample1518Wed May 04 06:17:06 BST 2005com.samscdrental.controller

MaintenanceOperations

public class MaintenanceOperations extends Object

Title: Sams CD Rental Store

Description:

Copyright: Copyright (c) 2004

Company:

author
Ken Pugh
version
1.0

Fields Summary
private static MaintenanceOperations
theInstance
private StoreDataAccess
collections
Constructors Summary
private MaintenanceOperations()

	
Methods Summary
public voidcollectionsInitialize(java.lang.String customerFilename, java.lang.String cdDiscFilename, java.lang.String cdReleaseFilename)

		CustomerDataAccesstExport customerImportExport =
			new CustomerDataAccesstExport(
			collections.theCustomerDataAccess );
		customerImportExport.
			addCustomersFromFile( customerFilename );
		CDReleaseDataAccessImportExport cdReleaseImportExport =
			new CDReleaseDataAccessImportExport(
			collections.theCDReleaseDataAccess );
		cdReleaseImportExport.
			addCDReleasesFromFile( cdReleaseFilename );
		CDDiscDataAccessImportExport discImportExport =
			new CDDiscDataAccessImportExport(
			collections.theCDDiscDataAccess );
		discImportExport.addCDDiscsFromFile( cdDiscFilename );
		return;
	
public static com.samscdrental.controller.MaintenanceOperationsgetInstance()

		if ( theInstance == null )
		{
			theInstance = new MaintenanceOperations();
		}
		return theInstance;