Learn about the Repository pattern.
- [Instructor] Now up until this point…and throughout the rest of this course actually,…we've been looking at the DAO pattern.…But there's an alternate pattern that many people use…especially in the web world…and that's the repository pattern.…Now the differences between the repository pattern…and the DAO pattern is that the repository pattern focuses…only on single table access per class.…And in fact, the DAO that we've worked with to date…could be a repository in this use case…'cause we've only been interacting with the customer data.…
Now that's going to change throughout the rest of this course.…But keep in mind that a repository and a DAO…when you're dealing with a single table…are very, very similar.…Now instead of doing joining in the database,…in the repository pattern you join in the code.…So I would select everything from the orders namespace,…for instance, get the ID of the customer…and then go to the customer repository…and find the customer with that ID and then join it in code.…Whereas with the DAO pattern, I would get the order…
AuthorFrank P Moley III
- Deciphering JDBC terminology
- Using containerized PostgreSQL
- Creating, reading, updating, and deleting data
- The Repository pattern
- Using stored procedures
- Ordering and limiting results
- Transactions in JDBC
- Handling exceptions
Skill Level Intermediate
Database Foundations: Core Conceptswith Adam Wilbert2h 14m Beginner
Java Essential Training: Objects and APIswith David Gassner2h 46m Intermediate
What you need to know5m 10s
1. Introducing Java Data Access
2. Data Access Basics
3. Advanced Data Access
Next steps3m 26s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.