Spring对iBATIS SqlMaps1.3和2.0都提供了支持。首先让我们来看一看两个之间的区别。

表 11.1. iBATIS SqlMaps supporting classes for 1.3 and 2.0

Creation of SqlMap

    1.3 SqlMapFactoryBean

    2.0 SqlMapClientFactoryBean

Template-style helper class

     1.3  SqlMapTemplate

     2.0  SqlMapClientTemplate

Callback to use MappedStatement

     1.3 SqlMapCallback

     2.0 SqlMapClientCallback

Super class for DAOs

     1.3 SqlMapDaoSupport

     2.0 SqlMapClientDaoSupport

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.