Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Business Object Patter

 
laxmikant shimpi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have confusion about the business object design pattern.
First of all, I have checked on sun site. There is no design patten or strategy which mentions the Business Object Design Pattern.
What according to my knowledge is IBusinessObject, BusinessObjectImpl and BusinessObjectManager is required which actually form this pattern.
We are not using entity beans instead using DAOs to access the database and using BOManager only for retrieving/finding the value objects and construct business object out of it.
Can we not use directly session fa´┐Żade to carry out the functionality of BOManager
Can someone clear my confusion? If possible, please give me links.
Thanks and Regards,
Laxmikant
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the context of "Business Object", think of entity beans and/or DAOs are the gateways to persistence storage. The idea is to present the client with an object a.k.a a bag of data and still maintain the flexibility to change the underlying implementation. Although creating composite(coarse-grained) entity beans is a step in the right direction, I think the Business Object pattern is all about abstraction of data representation. It is not about how the data is populated or who populates it( the J2EE pattern description tends to hint in the wrong direction), but it is about the "client view" of the data. A sort of composite transfer object if you will.
In the past I have implemented my coarse-grained transfer objects as busines objects. They implement an interface and the clients know only about the interface, but not about the implementation. This allows you to implement different flavors of the business object eg., data carried in a hashmap, data carried around as one big concatenated string (although not recommended) and so on, while still conforming to the declared interface.
Cheers,
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Laxmikant.
Enjoying and manipulating Business patterns eh.
BTW, where r u implementing Session Facade in lieu of Business Delegate?
Does ur code relate to petstore example or something else?
EPFGL still bugging u?
Seetesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic