data access object
数据访问对象
2025-09-06 22:19 浏览次数 5
数据访问对象
this data access object is extremely simple; it does not connect to any external resources (such as relational databases) to obtain test instances.
该数据访问对象极其简单;它不连接任何外部资源(比如关系数据库)以获得test实例。
figure 7 shows the critical portion of our example data access object (dao) code, demonstrating how to retrieve and reconstitute acl information from strings stored in a properties file.
图7显示了示例数据访问对象(data access object,dao)代码的关键部分,并演示了如何从属性文件中存储的字符串检索和重新构建acl信息。
this is a spring and data access object (dao) service that receives a rest-encoded request over a jms service interface.
这是一个spring和数据访问对象(dao)服务,其接收运行在jms服务接口之上的rest编码的请求。
configuration major layers of the application -- in the rentabike application, i expose a data access object (dao) layer, a controller layer, and a view layer (see listing 1).
配置应用程序的主要层 ——在rentabike应用程序中,我公开了一个数据访问对象(dao)层、一个控制器层和一个视图层(参阅清单1)。
the data access object got several finder methods to query the database.
数据访问对象(data access object)有一些搜索方法以查询数据库。
the first two articles of this series described in detail how to use inline methods and how to use data access object interfaces (daos) to access the database.
本系列前两篇文章详细介绍了如何使用内联方法和数据访问对象(dao)来访问数据库。
the contacts sample uses a multitier pattern for data access: presentation - service - data access object - database.
contactssample在数据访问中使用了多层模式:表示-服务-数据访问对象-数据库。
the framework「s support for hibernate is in compliance with spring」s generic transaction and data access object (dao) exception hierarchies.
框架对hibernate的支持符合spring通用的事务和数据访问对象(dao)异常层次结构。
listing 19. update method and statement for the in-the-bean mapping employee data access object
清单19.bean 内映射的employee数据访问对象的更新方法和语句
listing 4 shows a class data access object class, hence the name teamdao.
清单4显示的是类数据访问对象类,名为teamdao。
applying the data access object (dao) pattern throughout the applications enabled us to separate low-level data access logic from business logic.
在整个应用程序中使用数据访问对象(dao)使我们可以将底层数据访问逻辑与业务逻辑分离开来。
crack open example 4, which shows a commandlineview object with a property for a rentabike store, which eventually becomes the data access object for this application.
解压示例4,它展示了一个用于rentabike商店的带有属性的commandlineview对象,该对象最终成为该应用程序的数据访问对象。
a data access object (dao) that uses jpa is packaged with a persistence.xml that defines persistence context for the jpa entitymanager used by the application.
使用jpa 的数据访问对象 (dao)与persistence.xml打包在一起,后者为应用程序使用的jpaentitymanager定义持久性上下文。
for example, say a data access object called mydao needs a data source called ds. the container creates them both and sets a property
比方说,称为mydao的数据访问对象需要一个称为ds的数据源。
i encourage you to check out the morphia google code project for information about its data access object (dao) support, validation, and manual mapping capabilities.
要获得有关其数据访问对象(data access object,dao)支持、验证和手动映射功能的信息,我鼓励您查看morphiagooglecode项目。
the goal of the data access object pattern is to provide a single point of contact to a particular data source.
数据访问对象模式的目的是提供到特定数据源的单个联系点。
again, you've used a data access object (dao) pattern for abstracting the management of the physical data (retrieving from the file system, parsing xml, etc.)
另外,我们已经使用了data access object (dao)模式来抽象物理数据的管理(从文件系统检索数据、解析xml等)。
the service implementation class then uses a data access object (dao) implementation class to communicate with the persistent data storage.
该服务实现类然后使用一个数据访问对象(data access object,dao)实现类与持久数据存储通信。
use a data access object (dao) to abstract and encapsulate all access to the data source.
使用数据访问对象来抽象和封装对数据源的所有访问。
for example, the transfer object, business object, and data access object templates may be applied to each entity in the pim.
举例来说,传递对象、业务对象,和数据访问对象模板将应用于pim中的每个实体。
data access object (dao) and session facade are both good ones to use.
数据访问对象(data access object,dao)及会话外观(sessionfacade)都是非常值得一用的。
figure 9.3 factory for data access object strategy using factory method
当底层数据储存实现不需要发生改变时,该策略可以使用工厂方法设计模式实现,来产生应用中所需的dao.
in the application shown in figure 2, the gui relies on an abstraction -- a data access object or dao.
在图2所示的应用程序中,gui依赖于一个抽象 ——一个数据访问对象或dao。
in a real-world scenario, you would probably have a data access object that does connect to an external resource to retrieve test objects.
在现实世界中,您可能会具有连接外部资源以检索test对象的数据访问对象。
a new updateemployee method is added to the data access object class to update a single employee in the database
在数据访问对象类中添加一个新的updateemployee方法,它更新数据库中的一个职员
the techniques involved in implementing an eaz data access object to persist and retrieve permissions.
实现eaz数据访问对象以保持和检索权限所涉及的技术。