My Software,My Dream—Forge a more perfect NMS product.
我認為至少滿足以下三個條件,才能算是一個好的DAO設計: 1. 多個數據源的問題; 2. new 一個Dao后,可以連續兩個(或以上)方法,而且最后connection是關閉, 但不顯示調用dao.close()。 3. 對事務的支持,就是對兩個(或以上)dao的不同方法(對兩張以上表進行操作), 必須同時成功或不成功。
這是長期困擾我的問題,所以,我覺得如果能解決好這些問題, 就是一個好的dao設計。
posted on 2007-10-05 17:14 afunms 閱讀(113) 評論(0) 編輯 收藏
We'd much rather change the world instead of going along with it.
Powered by: BlogJava Copyright © afunms