Questions tagged [ecb-pattern]

The Entity-Control-Boundary Pattern (ECB) is an architectural pattern where the class-design is use-case driven. It shares some similarity but should not to be confused with the Model-View-Controller Pattern.

The Entity-Control-Boundary Pattern (ECB) is an architectural pattern where the class-design is use-case driven. It is also related to robustness-analysis. It shares some similarity but should not to be confused with the Model-View-Controller Pattern.

This pattern distinguishes classes based on their responsibilities in use-cases:

  • Entities are classes representing information that matters to the users and the stakeholders, such as Customer, Product, ShoppingCart.

  • Boundaries are classes that represent the link between a use-case and system actors, such as user interfaces (for human actors), or gateways and proxies (for system actors).

  • Controls are classes responsible for a use-case. They orchestrate the realisation of a use-case and for this purpose coordinate related boundary- and entity- classes.

See also:

18 questions
108
votes
6 answers

In UML class diagrams, what are Boundary Classes, Control Classes, and Entity Classes?

I'm now using NetBeans as my IDE-of-choice, and it has a plugin for UML modeling. In the class diagram, there are model elements known as Boundary Class, Control Class, and Entity Class. However, I can't find a good definition of them, but I did…
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
13
votes
1 answer

(Entity-Control-Boundary pattern) -> How to deal with two entities?

Premise I've recently read/watched a lot of articles/videos by Java Champion Adam Bien, where he advocates the usage of the ancient but renewed Entity - Control - Boundary Design Pattern JAVA EE >= 6. Leveraging on CDI, EJB 3.1, JPA 2 and other JAVA…
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
7
votes
1 answer

EJB vs CDI and the "Entity Boundary Control" pattern

Im trying to get my head around CDI and EJB and the Entity Boundary Control (ECB) pattern. My understanding of the ECB pattern is that the Boundary is the start and end of the transaction boundary. Further to that, CDI doesn't provide transaction…
vcetinick
  • 1,957
  • 1
  • 19
  • 41
6
votes
1 answer

ECB pattern - what is really a boundary?

I've just watched Uncle Bob's presentation on Architecture software : http://www.cleancoders.com/codecast/clean-code-episode-7/show He talks about ECB pattern (Entities - Controllers - Boundaries) He insists on the fact that all softwares must be…
Mik378
  • 21,881
  • 15
  • 82
  • 180
6
votes
2 answers

Java EE 6 Design Patterns

I would like to know about the design patterns that can be applied in Java EE 6 implementation. MVC. GOF. DAO Persistent relational mapping Pooling CEC Entity control boundary (ECB) and many others Do JPA eliminate the use of DAO? Please provide…
nicholas
  • 2,581
  • 14
  • 66
  • 104
6
votes
3 answers

Entity Control Boundary (ECB) vs Model View Controller (MVC)

I'm not sure if i got the right concept. I was told by people that Boundary = View Entity = Model Control = Controller however based on my knowledge of MVC. (fat model, thin controller) Isn't the Boundary = Controller, Control = Model (the busienss…
ericlee
  • 2,703
  • 11
  • 43
  • 68
3
votes
3 answers

What is the use of control classes?

I am trying to understand how to classify the classes as boundary/control/entity classes. I can understand boundary and entity classes although my understanding may not beperfect. Boundary is the classes which interacts with the user. So the classes…
Ju Ju
  • 199
  • 1
  • 13
2
votes
2 answers

UML - Can subclass of a Boundary acts as controller?

I'm wondering if a subclass of a Boundary acts as a controller ?
2
votes
1 answer

Entity-Control-Boundary Pattern

I am studying about Entity-Control-Boundary Pattern and trying to make class diagram for Online learning platform site. Answers from This question helped me a lot. While designing Boundary classes I'm facing a design issue. I've not found any…
Utshaw
  • 4,166
  • 3
  • 20
  • 25
2
votes
2 answers

Storage layer and entity classes

According to the book I am reading, in the three layer architecture (presentation, application ,storage), storage layer is responsible for looking after the persistence storage of data in the system. If so, I think entity classes are in the…
Ju Ju
  • 199
  • 1
  • 13
1
vote
0 answers

ECB pattern (Entity,Control,Boundary) implementation

I'm learning about the ECB pattern. I've understood the concept of this pattern but i'm not sure about its implementation. I'm going to write a simple example: I supposed to need a software which manages the customers of a shop. The customers are…
spx305
  • 109
  • 2
  • 11
1
vote
1 answer

Is it possible to join 2 controller classes to 1 boundary class?

I'm doing a college project where I'm required to create a class diagram to a school registration system. There I have included a Student class, a registrationUI Boundary Class and a registrationController controller class: I have created a…
Java_NewBie
  • 93
  • 1
  • 10
1
vote
1 answer

name of boundary control entity diagram

As you know we can show boundary, control and entity classes in analysis model; but I am not sure what is the name of this diagram? somewhere I saw it is "use case model", another where called it "object model",... If any one knows the exact name of…
roland duff
  • 91
  • 1
  • 1
  • 7
0
votes
1 answer

ECB pattern: can I have print method in Entity?

Goodmorning everyone. Can I have print methods in the entity? or is it conceptually wrong?
0
votes
1 answer

Are these classes considered as boundary, or entity?

I have these classes: IdCard, Note, Ingredient, Ceo, ProblemOccured, Chief. In my opinion IdCard, Note, Ingredient and ProblemOccured are <> classes since they interact with the people. But Ceo and Chief are <> classes. My friend…
R AND B
  • 51
  • 2
  • 9
1
2