daoimpl什么時候用
Daoimpl是對dao接口的實現類,對多數據庫項目有用,如果項目肯定一直都只用一種平臺的數據庫,用不用就無所謂了,另外在dao中,也可以封裝對非關系數據庫的訪問,比如郵件系統、文件系統等.以上這句話摘自網絡,深合吾心!
posted on 2006-07-17 16:16 小秦 閱讀(2467) 評論(2) 編輯 收藏 所屬分類: java架構
posted on 2006-07-17 16:16 小秦 閱讀(2467) 評論(2) 編輯 收藏 所屬分類: java架構
It's not that accurate.
Considering the need of Unit test or the other things..we may need to isolate the code from db.
Therefore interface is a good practice in most of the time. 回復 更多評論
只有注冊用戶登錄后才能發表評論。 | ||
![]() |
||
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
|
||
相關文章:
|
||