LB10 Data source design patterns with JSF

preview_player
Показать описание
An overview of Table data gateway, row data gateway, and active record, and how they can fit in a JSF application

Рекомендации по теме
Комментарии
Автор

18:58 a good software engineering principle - 19:02 *only talk to your immediate neighbor*
19:33 minimize the connections between one class and another

ruixue
Автор

1:13 motivation of these design patterns
1:16 mismatch of paradigms - 1:26 we are using *oo* and *relational database* and the two don't match
1:45 thus far, we have embedded SQL into the managed beans and their helper POJOs
1:52 makes maintenance awkward
1:54 SQL code cannot be easily found
2:00 putting all SQL statements into one interface does not remove the lack of oo structure

2:41 solution - design patterns
3:42 Table Data Gateway
4:19 the previous solution with USDP
4:34 *UML example demo of using table gateway*
6:05 *UML example demo of using view gateway*
6:32 just one CustomerGateway class - 6:47 the SQL will query not the just Customer but also the Discount table using a *join*
7:18 code example
8:33 CustomerGateway.find(int customerID)

ruixue
join shbcf.ru