wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes SCEA Part 2 BDM clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "SCEA Part 2 BDM clarification" Watch "SCEA Part 2 BDM clarification" New topic
Author

SCEA Part 2 BDM clarification

Sivakumar Varadharajan
Greenhorn

Joined: Feb 23, 2006
Posts: 16
Hi I am working on my part 2 assignment and face a scenario. My assignmnet is an E-commerce system trying to sell a product and there are multiple types of same product, like FlavoredCigar, PetiteCigar etc ,assume all are just different types of Cigar.
BDM shows all these product types as individual classes. While all these products are different assignment, does not have any differential treatment for any of these products.

Also system would need to interface to other merchants through interfaces and I believe even if I have individual classes to represent each product in our system side I would have to use a simile order interface that would take only product type and count for order at max.

With no individual treatment required for each of the product type, for me it makes more sense to have one product interface and one concrete class called product to start with, type of product just becomes an attribute to the class. But this will not match directly to the BDM provided. If all my code operates on the interface my system is still designed to work in future when a new product class that needs a differetial treatment is required?

Any suggestions are welcome.


Sivakumar-SCJP 1.4-SCWCD- IBM Certified SOA associate - SCEA 5
Dmitri Ericsson
Ranch Hand

Joined: Feb 16, 2010
Posts: 109
That's a domain model, it has entities and they mean business point of view. In class diagram it is clear that they will be represented by the single object (or their hierarchy of different behavior is needed) with the type


SCEA 5, SCJP 6 My SCEA Experience
Sivakumar Varadharajan
Greenhorn

Joined: Feb 23, 2006
Posts: 16
Dmitri Ericsson wrote:That's a domain model, it has entities and they mean business point of view. In class diagram it is clear that they will be represented by the single object (or their hierarchy of different behavior is needed) with the type


Thanks Dmitri, agree with you and thanks for the response, but I do not understand your point with in the brackets can you help to clarify please
Dmitri Ericsson
Ranch Hand

Joined: Feb 16, 2010
Posts: 109
I meant that if different functionality is needed for different types of some object like cigar, then you probably should create some base cigar class and subclasses for it. But if behavior is common so make just one object with type in it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SCEA Part 2 BDM clarification
 
Similar Threads
Help me figure out the wrong answer !(Long post)
class diagram and sequence diagram
Help me make this method re-usable
Answers to IBM 486 sample test
Cleared Part II/III...99%