JDBC DAO - any good reference implementation?

Can anyone point me to a well-written DAO using JDBC that covers all the exceptions that the DAO should handle.

I looked through some samples on java.sun.com, their blue prints, but there is a lot of theory and less code.

Looking through Spring, the DAO source code will enlighten, but for me it is too complicated.

+5
source share
5 answers

Spring JdbcTemplate provides most plumbing, you will need to implement DAO JDBC.

Additional information at:

http://static.springframework.org/spring/docs/2.0.x/reference/jdbc.html

+8
source

Spring comes to mind.

0

, . .

, .

0

You can also reference some ORM tools - for example, Hibernate, TopLink, Apache Cayenne, etc. Sometimes ORM is very useful.

0
source

An example can be found at http://daoexamples.sourceforge.net/ . While browsing the Google code search, I found this one that has some DAOs in it. You can also do some research on common DAOs, run here and.

0
source

All Articles