concept feature in category iBatis

appears as: features, features, feature
iBatis in Action

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

Table 1.1. Advantages provided by iBATIS, which are the same as those provided by other solutions

Approach

Similar benefit

Solved problems

Stored procedures iBATIS encapsulates and externalizes SQL such that it is outside of your application code. It describes an API similar to that of a stored procedure, but the iBATIS API is object oriented. iBATIS also fully supports calling stored procedures directly. Business logic is kept out of the database, and the application is easier to deploy and test, and is more portable.
Inline SQL iBATIS allows SQL to be written the way it was intended to be written. There’s no string concatenation, “setting” of parameters, or “getting” of results. iBATIS doesn’t impose on your application code. No precompiler is needed, and you have full access to all of the features of SQL—not a subset.
Dynamic SQL iBATIS provides features for dynamically building queries based on parameters. No “query-builder” APIs are required. iBATIS doesn’t force SQL to be written in blocks of concatenated strings interlaced with application code.
Object/relational mapping iBATIS supports many of the same features as an O/RM tool, such as lazy loading, join fetching, caching, runtime code generation, and inheritance. iBATIS will work with any combination of data model and object model. There are nearly no restrictions or rules to how either is designed.

Of course there are more advanced options for mapping, especially around results. But we’ll discuss those in greater detail in part 2, “iBATIS basics.” Right now, it’s more important to understand the features and benefits of iBATIS and how it works.