concept external parameter map in category iBatis

appears as: n external parameter map, external parameter maps
iBatis in Action

This is an excerpt from Manning's book iBatis in Action.

You can specify up to six attributes when using an external parameter map. If you do not specify them, iBATIS will try to decide on reasonable values using reflection, but this takes time and may not be as accurate. Table 4.4 lists the attributes that are available for mapping parameters, and briefly describes how each is used. While inline parameter mapping in iBATIS works well for most mapped statements, if you want to improve performance or encounter a case where things are not working as expected, an external parameter map may be just what you need. In chapter 5, we will look at a full-blown external parameter map, but for our purposes here, that is not needed.

While this mapped statement will work, it can become verbose and difficult to maintain once you reach the point where you have a few different versions of the insert statement as well as some update statements, and you throw in a couple dozen queries. When that happens, an external parameter map may help simplify the maintenance of your SQL Map files.

5.2.2. Using an external parameter map

Along with providing the same functionality as inline parameter mapping, using an external parameter map has the added benefit of improved performance and additional validation at load time (which means that fewer errors slip through the cracks during testing for your users to find at runtime).

Here is an example of an insert statement that uses an external parameter map. The following code is functionally identical to the previous example, but uses an external parameter map instead of an inline one: