Explore a possible solution to the challenge to implement a basic DAO.
(upbeat music)…- [Instructor] So that you've had some time to implement…this challenge I want to show you my solution to this problem.…I'm going to open up my IDE here…and in source main Java in our base package…I've created a couple files.…So let's start with our Order file.…Let's close this so we can have…a little bit more real estate.…So what you'll see here is I created…an Order object it implements…the DataTransferObject interface…and I've got my customer information,…my salesperson information.…
I've also got the order specific information such as…the creation date and the due date, the status…and then I have a list of OrderLines.…One other thing that I added to this object…was I went ahead and put a toString on it…so I can print this information out.…Let's take a look at our OrderLine object itself…and we'll shrink this back down.…So now on the OrderLine you'll notice this time…I did not implement the DTO and that's because this…is a sub-object that doesn't have it's own DAO itself.…
On this I have the quantity which comes from the order line…
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
Programming Foundations: Databaseswith Simon Allardice3h 11m Appropriate for all
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.