Chapter 11. Doing more with DAO

This chapter covers

  • More sample DAOs
  • Using Spring instead of IBATIS
  • Creating a DAO layer from scratch

As we saw in the previous chapter, the Data Access Object (DAO) pattern can be used to hide the unique implementation peculiarities of data-related APIs to provide a simple and common API for application developers. This pattern is very powerful, and is not unique to iBATIS, as other projects have created DAO implementations that you can use with iBATIS.

In this chapter, we look at a couple more SQL-based DAO implementations, as well as a couple of DAO implementations for other data sources (LDAP and web services). Then we explore the other options for DAO layers, including the Spring framework’s excellent ...

Get iBATIS in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.