O'Reilly logo

iBatis in Action by Larry Meadors, Brandon Goodin, Clinton Begin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required