JAVA 對象簡稱收集

 POJO
    Plain Old Java Object. This acronym is similar to POTS — Plain Old Telephone Service.

    “I've come to the conclusion that people forget about regular Java objects because they haven't got a fancy name - so while preparing for a talk Rebecca Parsons, Josh Mackenzie and I gave them one: POJO (Plain Old Java Object). A POJO domain model is easier to put together, quick to build, can run and test outside of an EJB container, and isn't dependent on EJB (maybe that's why EJB vendors don't encourage you to use them.)”
    ~ Martin Fowler


POJO - 簡單老Java對象 . 這個縮寫看起來很像POTS - 簡單老電話服務。

    對於人們經常忘記常規的Java對象,我的總結是它們沒有一個好名字 - 因此在準備一次演講時,Rebecca Parsons, Josh Mackenzie 和我給起了名字: POJO。  一個POJO模型是易組合、快速建立並且運行於EJB容器之外的,不依賴於EJB的一類對象(這或許也是EJB提供商們不鼓勵我們使用他們的原因)

 

VO:實際上很模糊,通常指ValueObject和ViewObject

ViewObject:UI需要的對象,如Struts的FormBean

Value Object:ValueObject和Transfer Object的總稱。

TO: Transfer Object,數據傳輸物件,在應用程序不同tie之間傳輸的對象

PO:Persistent Object(持久化物件),基本上就是Entity了
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章