My Software,My Dream—Forge a more perfect NMS product.
原来我们都是在new dao时,同时获得一个Connection DaoInterface dao = new XxxxDao();
为什么新架构把Connection放在dao之外呢?为了实现事务。 当一个事务需要调用两个dao中两个(以上)方向时,如果出错, 只有同一个Connection才能实现rollback。 DaoInterface dao = new XxxxDao(connection);
posted on 2007-05-01 13:10 afunms 阅读(129) 评论(0) 编辑 收藏
We'd much rather change the world instead of going along with it.
Powered by: BlogJava Copyright © afunms