Chapter 10. iBATIS data access objects

This chapter covers

  • DAO rationale
  • Configuration
  • A SQL Map DAO example

Applications often need to access data from multiple data sources: relational databases, file systems, directory services, web services, and other providers. Each of these data stores has a different API to access the underlying storage mechanism, along with a whole set of idiosyncrasies.

The Data Access Object (DAO) pattern is used to hide the unique implementation quirks of these APIs. It provides a simple and common API for application developers so that the consumers of the data can be free of the complexities of the data access APIs.

The iBATIS Data Access Objects subproject is a simple implementation of the core J2EE pattern ...

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.