0
ibatis-sqlmap-2.3.4を読むと、両方ともSqlMapExecutorを実装していることがわかります。ibatisのSqlMapClientとSqlMapSeesionの違いは何ですか?
SqlMapClientImplはスレッドセーフを提供するlocalSqlMapSessionで挿入します。新しいSqlMapSessionImpl毎回返す
SqlMapSession session = this.sqlMapClient.openSession();
...
return action.doInSqlMapClient(session);
のOpenSession方法:
しかしspring2.5.6で、SqlMapClientTemplateのexecuteメソッドは次のようにSqlMapClientImplを使用しています。
私の質問は以下のとおりです。
代わりのSqlMapClientのはなぜSqlMapClientTemplate使用sqlMapSeesion?
なぜsqlMapClientのlocalSqlMapSessionがSqlMapClientTemplateで使用されていないのですか?
return action.doInSqlMapClient(this.sqlMapClient);
SqlMapClientとSqlMapSeesionの違いは何ですか?あなたの最初の質問のための