Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Spring Professional Certification Exam Tutorial - Module 03
Rating: 4.8 out of 5(1,202 ratings)
5,501 students

Spring Professional Certification Exam Tutorial - Module 03

Data Management: JDBC, Transactions, Spring Data JPA
Created byDominik Cebula
Last updated 8/2019
English

What you'll learn

  • Knowledge and skills required for Spring Professional Certification Exam
  • Spring Professional Certification Study Guide Explanation & Answers
  • Data Management: JDBC, Transactions, Spring Data JPA

Course content

1 section30 lectures3h 30m total length
  • Examples Download0:01
  • Question 01 - What is the difference between checked and unchecked [...]?8:51

    What is the difference between checked and unchecked exceptions?

    • Why does Spring prefer unchecked exceptions?

    • What is the data access exception hierarchy?

  • Question 02 - How do you configure a DataSource in Spring? [...]15:11

    How do you configure a DataSource in Spring? Which bean is very useful for development/test databases?

  • Question 03 - What is the Template design pattern and what is the JDBC template?10:15

    Explore the template design pattern as a behavioral pattern that encapsulates algorithm steps for code reuse, and see how the JDBC template simplifies JDBC workflows.

  • Question 04 - What is a callback? What are the three JdbcTemplate [...]17:33

    What is a callback? What are the three JdbcTemplate callback interfaces that can be used with queries? What is each used for? (You would not have to remember the interface names in the exam, but you should know what they do if you see them in a code sample).

  • Question 05 - Can you execute a plain SQL statement with the JDBC template?1:32

    Yes, the JDBC template can execute plain SQL statements using methods like query for list, query for object, query for map, and update, demonstrated in an employee DAO example.

  • Question 06 - When does the JDBC template acquire (and release) a [...]7:19

    When does the JDBC template acquire (and release) a connection, for every method called or once per template? Why?

  • Question 07 - How does the JdbcTemplate support generic queries? [...]6:05

    How does the JdbcTemplate support generic queries? How does it return objects and lists/maps of objects?

  • Question 08 - What is a transaction? What is the difference between [...]7:31

    What is a transaction? What is the difference between a local and a global transaction?

  • Question 09 - Is a transaction a cross cutting concern? How is it [...]3:22

    Is a transaction a cross cutting concern? How is it implemented by Spring?

  • Question 10 - How are you going to define a transaction in Spring? What [...]8:31

    How are you going to define a transaction in Spring?

    • What does @Transactional do? What is the PlatformTransactionManager?

  • Question 11 - Is the JDBC template able to participate in an existing [...]?4:51

    Is the JDBC template able to participate in an existing transaction?

  • Question 12 - What is a transaction isolation level? How many do we have [...]20:24

    What is a transaction isolation level? How many do we have and how are they ordered?

  • Question 13 - What is @EnableTransactionManagement for?4:55

    Enable transaction management activates annotation driven transactions in Spring, proxying methods annotated with transaction to manage begin, commit, and rollback via a transaction interceptor and a platform transaction manager.

  • Question 14 - What does transaction propagation mean?9:06

    Learn how transaction propagation reuses or creates transactions across transactional method calls, covering required, supports, mandatory, requires new, not supported, never, and nested.

  • Question 15 - What happens if one @Transactional annotated method is [...]5:23

    What happens if one @Transactional annotated method is calling another @Transactional annotated method on the same object instance?

  • Question 16 - Where can the @Transactional annotation be used? What is a [...]3:29

    Where can the @Transactional annotation be used? What is a typical usage if you put it at class level?

  • Question 17 - What does declarative transaction management mean?2:36

    Declarative transaction management uses the transactional annotation to let the framework handle transactions, eliminating boilerplate compared to manual transaction code that manages connections, commits, and rollbacks.

  • Question 18 - What is the default rollback policy? How can you override it?3:42

    Explain the default Spring rollback policy: automatic rollback on unchecked exceptions, not on checked ones; override using rollbackFor and noRollbackFor in the transactional annotation.

  • Question 19 - What is the default rollback policy in a JUnit test, when [...]4:01

    What is the default rollback policy in a JUnit test, when you use the @RunWith(SpringJUnit4ClassRunner.class) in JUnit 4 or @ExtendWith(SpringExtension.class) in JUnit 5, and annotate your @Test annotated method with @Transactional?

  • Question 20 - Why is the term "unit of work" so important and why does [...]8:27

    Why is the term "unit of work" so important and why does JDBC AutoCommit violate this pattern?

  • Question 21 - What do you need to do in Spring if you would like to work [...]?7:37

    What do you need to do in Spring if you would like to work with JPA?

  • Question 22 - Are you able to participate in a given transaction in [...]3:44

    Are you able to participate in a given transaction in Spring while working with JPA?

  • Question 23 - Which PlatformTransactionManager(s) can you use with JPA?10:02

    Use the JPA transaction manager for one database and one entity manager; use the JTA transaction manager for multiple databases or transactional resources to span a single transaction.

  • Question 24 - What do you have to configure to use JPA with Spring? [...]5:30

    What do you have to configure to use JPA with Spring? How does Spring Boot make this easier?

  • Question 25 - What is a Repository interface?6:29

    Understand how a repository interface in Spring Data defines the expected data access behaviors and enables automatic query generation from method names for CRUD operations, paging, sorting, and JPA integration.

  • Question 26 - How do you define a Repository interface? Why is [...]5:58

    How do you define a Repository interface? Why is it an interface not a class?

  • Question 27 - What is the naming convention for finder methods in a [...]5:43

    What is the naming convention for finder methods in a Repository interface?

  • Question 28 - How are Spring Data repositories implemented by Spring at runtime?9:47

    Declare interfaces; Spring generates the implementation via simple JPA repository, creates a bean per interface, and supports global or per-repository customization with a base class or custom methods.

  • Question 29 - What is @Query used for?2:50

    Use the @Query annotation on a repository method to specify the JPA query, overriding the finder method name-based generation and giving you more control over the executed query.

Requirements

  • Java
  • Maven
  • IDE of your choice

Description

Spring Professional Exam Tutorial explains and answers all questions from Spring Professional Certification Study Guide. Each answer to exam topic is explained in detail with video tutorial, description and good example for you to get deep understanding of discussed topic. With this course you will get all required knowledge and skills to pass Spring Professional Certification Exam.

Course is divided into 8 modules:

  • Module 01 - Container, Dependency, and IoC

  • Module 02 - Aspect Oriented Programming

  • Module 03 - Data Management: JDBC, Transactions, Spring Data JPA

  • Module 04 – Spring Boot

  • Module 05 - Spring MVC and The Web Layer

  • Module 06 – Security

  • Module 07 – REST

  • Module 08 – Testing

This course covers third module of the entire course and inside you can find answers to all topics from Spring Professional Certification Study Guide third section, which is Data Management: JDBC, Transactions, Spring Data JPA.


Who this course is for:

  • Spring Professional Exam & Certification Candidates