- Spring JDBC is a powerful mechanism to connect to The database and execute SQL queries.
 - We use JDBC template class to connect to database and perform operations.
 - JDBC is an API to perform operations with database.
 - Problems with old JDBC.
 - We need to write a lot of code as we need to repeatedly open JDBC connection, get and execute statement and close the connection.
 - Exception handling problem in which we need to handle checked exception i.e. SQL exception.
 - Repeating all these codes from one to another database, logic is a time consuming task.
 - Spring JDBC corrects all the above problems.
 - JDBC template requires following dependencies
 - DataSource
 - A source which contains all metadata of our database.
 - DriverManagerDataSource class is passed as implementation of DataSource Interface.
 - Information required by DriverManagerDataSource to Interact with database is as follows.
 - DriverClassName
 - URL of database
 - Username
 - Password
 - JDBC template has following important methods
 - Update for insert, update, delete queries.
 - Execute for select queries.
 - Swing JDBC select data using following methods.
 - For single object
 - Selecting data using Spring JDBC.
 - Public T queryForObject(String sql, Rowmapper <T> rowmapper,Object args…)
 - For multiple object
 - Public List<T> query (String sql,RowMapper <T> rowmapper)
 - Row Mapper converts result set object into object of class.
 
- Annotations
 - Controllers
 - Components
 - Dependencies
 - Documenting Java Code
 - Entities
 - Hibernate
 - HTTPS Security
 - Spring Core
 - Maven
 - Spring MVC
 - Microservices
 - Packages
 - Project Configuration
 - REST Templates
 - Spring Boot
 - AOP
 - Spring DI
 - Spring IOC
 - Spring Data
 - Tag Library
 - View Resolvers
 - Validations,Errors & Exceptions
 - Activiti Framework
 - Deploy spring boot Microservices in Fargate
 - Spring Security
 - Password encryption using Jasypt
 - Flyway DB Migration Script
 - Session in Spring Boot
 - Spring Expression Language
 - Spring JDBC
 - Spring ORM
 - Unit Testing
 - Correlation ID
 - Logging
 - ELK Stack
 - EFK Stack
 - Swagger
 - Rabbit MQ
 - Circuit Breaker Pattern
 - Connection Pooling
 - Spring Batch
 - Zipkins
 - Kafka
 - Spring Boot Actuator
 - Spring Cloud
 - Caching
 - Gateway
 - Service Discovery
 
Spring JDBC
Subscribe to:
Comments (Atom)
Spring Boot
What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...
- 
Technology's / frameworks in Spring Spring core Spring MVC Spring boot Spring data Hibernate
 - 
Information about ELK can be found on https://springimplant.blogspot.com/p/elk-stack.html Installing ELK on Fedora Install Java Add ELK to ...
 - 
Step 1: Open your IDE and click on Help » Install New Software… Step 2 : Click on the Add button and fill the details like Name: Acti...
 
No comments:
Post a Comment