In this video, we will learn the DAO (Data Access Object) design pattern with an implementation example.
Data Access Object or DAO design pattern is a popular design pattern to implement the persistence layer of Java application.
The Data Access Object (DAO) pattern is a structural pattern that allows us to isolate the application/business layer from the persistence layer using an abstract API.
#JDBC #Weirdocourses
Advantages of DAO pattern
-------------------------------------------------------------------
1. While changing a persistence mechanism, the service layer doesn’t even have to know where the data comes from. For example, if you’re thinking of shifting from using MySQL to MongoDB, all changes are needed to be done in the DAO layer only.
2. DAO pattern emphasis the low coupling between different components of an application. So, the View layer has no dependency on the DAO layer and only the Service layer depends on it, even that with the interfaces and not from concrete implementation.
3. As the persistence logic is completely separate, it is much easier to write Unit tests for individual components. For example, if you’re using JUnit and Mockito for testing frameworks, it will be easy to mock the individual components of your application.
4. As we work with interfaces in the DAO pattern, it also emphasizes the style of “work with interfaces instead of implementation” which is an excellent OOPs style of programming.
Chapters:
00:00 - Intro
01:27 - DAO Overview
06:07 - DAO in Practice (with JDBC)
54:04 - Conclusion
Sample DAO Project:
https://github.com/WeirdoGit/DaoProject
Document in this video:
https://weirdocourses.com/wp-content/...
Enroll for JDBC and other courses:
https://www.weirdocourses.com
Our Discord Server:
/ discord
Subscribe to this channel:
/ @weirdoviews
On this page of the site you can watch the video online DAO Design Pattern in JAVA implementation || Data Access Object Design Pattern with a duration of hours minute second in good quality, which was uploaded by the user WeirdOViews 01 January 1970, share the link with friends and acquaintances, this video has already been watched 561 times on youtube and it was liked by 26 viewers. Enjoy your viewing!