Database
factory.txt
Associated article: Java Portability by Design
Tags: Database .NET
Published source code accompanying the article by John J. Rofrano in which he uses Factory classes to ensure that application code remains unaware of the platform it's running on. John describes how his team used factory classes when building an e-commerce catalog search engine written entirely in Java.
Java Portability by Design
bu John J. Rofrano
Listing One
public class CategoryFactory
{
/** Default Constructor */
private CategoryFactory()
{
}
/** Modifier to return the appropriate Category object
* @param Catalog the catalog this category is in
* @return Category
*/
public static final Category createCategory( Catalog ...


