Package ejava.examples.blpurchase.bl
Class PurchasingFactory
- java.lang.Object
-
- ejava.examples.blpurchase.bl.PurchasingFactory
-
public class PurchasingFactory extends Object
This class provides a factory for commonly used objects in the application.
-
-
Field Summary
Fields Modifier and Type Field Description private EntityManageremprivate static EntityManagerFactoryemf
-
Constructor Summary
Constructors Constructor Description PurchasingFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ejava.examples.blpurchase.bo.AccountcreateAccount()voidcreateProducts()ejava.examples.blpurchase.bl.CataloggetCatalog()EntityManagergetEntityManager()ejava.examples.blpurchase.bl.PurchasinggetPurchasing()voidinit()
-
-
-
Field Detail
-
emf
private static EntityManagerFactory emf
-
em
private EntityManager em
-
-
Method Detail
-
init
public void init()
-
close
public void close()
-
getEntityManager
public EntityManager getEntityManager()
-
getCatalog
public ejava.examples.blpurchase.bl.Catalog getCatalog()
-
getPurchasing
public ejava.examples.blpurchase.bl.Purchasing getPurchasing()
-
createProducts
public void createProducts()
-
createAccount
public ejava.examples.blpurchase.bo.Account createAccount()
-
-