Back to Browse

Spring CRUD - Read | How to write a custom RowMapper? | Spring Jdbc Select | BeanPropertyRowmapper

22.9K views
Oct 22, 2020
1:00:23

In this video, we will learn to fetch data from the database. So far in this spring jdbc course, we have covered insert, delete and batch update. Now it’s time for the most important select operation(Spring CRUD - Read). So Let’s read data by using jdbctemplate’s query method. We will also learn how to query for an individual object by using jdbctemplate’s queryForObject method. Note that to perform a select operation using jdbctempalte, We have to understand a concept called RowMapper. The RowMapper is going to help us to fetch database records in form of a resultset. Using the RowMapper’s mapRow method we can also bind our DB record with our domain(POJO) class object. The rowmapper fetch the complete resultset and make it available inside the maprow method one by one so that we don’t have to manually loop over the resultset. Once we understand the RowMapper concept, we will understand Spring’s Row mapper implementation called BeanProeprtyRowMapper. It is going to help us to bind our database resultset with our domain class object without even writing a custom row mapper. Timestamp: Introduction : 00:00 Spring JDBC Select - Gameplan : 01:52 Spring JDBC perform a batch update: 08:29 Spring CRUD - Read Data from the database: 12:53 Spring Framework (JDBC) : QueryForObject : 37:13 Why BeanPropertyRowMapper (concept) : 44:09 Let’s code- BeanPropertyRowMapper:49:18 #SpringJdbc #jdbctemplate #seleniumexpress For more courses visit https://www.seleniumexpress.com Any time you are getting stuck with issues, Feel free to ask for support. You can send mail to [email protected] you can ping me on my Facebook page https://www.facebook.com/seleniumexpress Make sure to join my private Facebook page (Ask me here) “SeleniumExpress - Support" https://www.facebook.com/groups/187000222361579/ you can ask for support in my website forum https://www.seleniumexpress.com Subscribe to my youtube channel https://www.youtube.com/channel/UCpUYkSDJpHug-vfC5S-NXRA?sub_confirmation=1 Follow me on Insta https://www.instagram.com/selenium_express/ Music : ----------- credits: - (channel intro) Adventures by A Himitsu https://soundcloud.com/a-himitsu Creative Commons — Attribution 3.0 Unported— CC BY 3.0 http://creativecommons.org/licenses/b... Music released by Argofox https://youtu.be/8BXNwnxaVQE Music provided by Audio Library https://youtu.be/MkNeIUgNPQ8 Song: Jarico - Island (Vlog No Copyright Music) Music promoted by Vlog No Copyright Music. Video Link: https://youtu.be/gZlDn4EmTvo

Download

0 formats

No download links available.

Spring CRUD - Read | How to write a custom RowMapper? | Spring Jdbc Select | BeanPropertyRowmapper | NatokHD