Spring DAO | Code Factory

Spring Tutorial Index Page: Link

  • DAO — Data Access Object it will do data persistence operations. It will interact RDBMS machines, interact with XML files, interact with LDAP machines, interact with NoSQL machines.
  • The main aim of DAO is data access operation.
  • * In DAO we use Interface implementation pattern. So in future if we want to change DB then it is easy to do.
  • * Below are the implementations provider and implementations for connection pool.
    - Sun -> DataSource ( I )
    - Apache -> BasicDataSource ( C )
    - Mchange c3p0 -> ComboPooledDataSource ( C )
    - Spring -> DriverManagerDataSource ( C )
    - WebLogic -> WebLogic Data Source
  • For small enterprice application if you want to use connection pool then ComboPooledDataSource and BasicDataSource is recommended.
  1. Spring — Difference between JDBC and Spring JDBC
  2. Spring — Data Source and Connection Pool




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Set-up to succeed at scale

Development Update August 17, 2018

How to Implement Login, Logout, and Registration with Django’s User Model.

Making UILabel Accessible

DIY tech to catch the cat entering the house

New release: Vanilla framework 2.0

InvArch Weekly Update -11/19/2021

LONGi Unveils New Module for Distributed Generation Applications

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code Factory

Code Factory

More from Medium

How to Check the Health of a Spring boot Application using Spring Actuator

Communication Between Microservices | Spring WebClient

Functional Interfaces in Java

Java SE 10 & 11: Developer features