本文介绍了java中的DAO模式什么是业务对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 直接来自这篇关于J2EE DAO模式的oracle文章: 一切都非常清楚,但商业对象参与者(他们称之为)。 这里我引用我想要更多见解的位(特别是有用的实际例子(一个简单的例子))。我正在尝试将此模式用作练习(作为OCPJP的学生,它需要了解DAO模式)。到目前为止,我有我的DataSource(mysql数据库),我的传输对象(JavaBean,名为Person)和我的DAO对象在数据库和JavaBean(Person)之间正确连接。 那又一个商业对象是什么? 提前致谢解决方案 业务对象是集中应用程序所有逻辑的对象。使用Business Objects使用对象模型分离业务数据和逻辑。 在这里查看 Directly from this oracle article about the J2EE DAO Pattern:Everything is very clear indeed but the Business Object "participant" (as they call it).Here I quote the bit I would like more insights about (especially would be useful a real life example (an easy one)).I am trying to use this pattern as an exercise (as a student for the exam OCPJP it requires to understand the DAO Pattern). So far I have my DataSource (mysql database), my transfer object (JavaBean called Person) and my DAO object interfacing properly between the database and the JavaBean (Person).So again What exactly a Business Object is?Thanks in advance 解决方案 SEE HERE 这篇关于java中的DAO模式什么是业务对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!