Join Ketkee Aryamane for an in-depth discussion in this video Add methods in the DAO class, part of Java EE: Concurrency and Multithreading.
- [Instructor] Now let us add a method in…the BankAccountDao to get the bank account…information for all users.…We'll retrieve that information from…the bank account table, and once that's done,…all the rows that we get out of it,…we're going to make a collection of…bank account bean objects.…Similarly, we'll add another method in the Dao class…which will fetch us the transaction information…for every bank account.…If there are multiple transactions,…all of those rows will be contained in a list of…bank account transaction beans.…Let's head to the IDE.…
That's the Dao class.…We have created a data source.…This is the source from which we are going to…retrieve the connection object to make the transactions.…We've already tied up this data source by…a constructor to our Dao class,…so let's add the methods.…The first one will be public.…It will return us a list of bank account beans,…which is this;…getAllBankAccounts.…
What are we going to do here is,…we are first going to get the connection object.…That connection object can be retrieved…
- What is concurrency?
- Processes and threads in Java SE
- Java EE concurrency APIs
- Working with the ManagedExecutorService, ManagedScheduledExecutorService, ManagedThreadFactory, and ContextService APIs
- Defining data access object (DAO) classes
- Adding methods to DAO classes
- Writing REST classes
- Creating custom thread factories
- Creating contextual proxies
- JTA transactions and concurrency
Skill Level Intermediate
Java EE: Contexts and Dependency Injectionwith Alex Theedom1h 43m Intermediate
Java EE: Design Patterns and Architecturewith Alex Theedom2h 44m Intermediate
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m Intermediate
1. Overview and Setup
2. Processes and Threads
3. Executor API
4. Java EE Concurrency APIs
5. Concurrency and Transactions
- 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.