|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcatalog.view.builder.ProductBuilder
The builder class for ProductBean
and Product
.
The backing beans are used view objects in the presentation tier. The business objects are used in the business logic tier. This class is used to convert in between the backing beans and business objects.
Commons BeanUtils is used.
Constructor Summary | |
ProductBuilder()
|
Method Summary | |
static Product |
createProduct(ProductBean productBean)
Create a new Product based on the ProductBean |
static ProductBean |
createProductBean(Product product)
Create a new ProductBean based on the Product business object. |
static void |
populateProductBean(ProductBean productBean,
Product product)
Populate the ProductBean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProductBuilder()
Method Detail |
public static void populateProductBean(ProductBean productBean, Product product) throws CatalogException
ProductBean based on the Product
business object.
- Parameters:
productBean
- the product bean to be populatedproduct
- the product business object
- Throws:
CatalogException
public static ProductBean createProductBean(Product product) throws CatalogException
ProductBean
based on the Product
business object.
product
- the product business object
CatalogException
public static Product createProduct(ProductBean productBean) throws CatalogException
Product
based on the ProductBean
productBean
- the product managed bean
CatalogException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |