Chapter 2. What is iBATIS?

This chapter covers

  • When to use iBATIS
  • When not to use iBATIS
  • Getting started
  • Future direction

In the previous chapter we discussed in detail the philosophy behind iBATIS and how the framework came to be. We also stated that iBATIS is a hybrid solution that borrows ideas from various other methods of working with a relational database. So what exactly is iBATIS? This chapter will answer that question.

iBATIS is what is known as a data mapper. In his book Patterns of Enterprise Application Architecture (Addison-Wesley Professional, 2002), Martin Fowler describes the Data Mapper pattern as follows:

A layer of Mappers[1] that moves data between objects and a database while keeping them independent of each other ...

Get iBatis in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.