OO中另一个有趣的主题就是对象持久性。
J2EE试图让对象持久性尽可能地简单、透明和自动。
J2EE tries to make object persistence as simple, transparent, and automatic as possible.
对象持久性依赖于底层编程语言的对象序列化能力。
Object persistence depends on the object serialization capabilities of the underlying programming language.
JDO为对象持久性提供了第一个标准化的、完全面向对象的方法。
JDO supplies object persistence with the first standard and object-oriented way.
我还使用该库的定制查询语言和HSQLDB数据库演示了一个简单的对象持久性场景,也探讨了该库的一些高级功能。
I've demonstrated a simple object-persistence scenario using the library's custom query language and the HSQLDB database and also discussed some of the library's advanced features.
持久性对象应该总是保留在操作它们的业务对象的本地。
Persistent objects should ALWAYS remain local to the business object that operates on them.
对象序列化有很多明显的缺陷,但在这种情况下,却是一个合理的持久性解决方案,原因是保存在存储库中的表单数据实例的数量是有限的。
Object serialization has its well-known flaws, but in this case, it is a reasonable persistence solution because the number of form data instances that are kept in the repository is limited.
它仍然涉及对象创建、对象之间的消息和新状态的持久性。
It still involves the object creation, the messages between objects and the persistence of the new state.
若您关注对象串行化,特别是希望为长期持久性存储使用串行化对象时,就必须对串行化进行测试。
If you care about object serialization, and especially if you intend to use serialized objects for long-term persistent storage, you must test serialization.
所有的J2EE持久化技术都提供了一些机制来将业务数据对象映射回持久性数据源。
All J2EE persistence technologies provide some mechanism to map business data objects back to a persistent data source.
持久性类封装对持久性存储的访问,包括关系数据库、平面文件和对象库。
Persistence classes encapsulate access to your persistent stores, including relational databases, flat files, and object bases.
应用程序的主要层是数据库、持久性框架、数据库访问对象和用户界面(UI)控制器及视图层。
The main layers of the application are a database, a persistence framework, a database access object, and user interface (UI) controller and view layers.
EJB服务器提供一些基本服务,比如对象分发、命名、安全性、持久性、事务管理和并发性。
The EJB server provides primary services such as object distribution, naming, security, persistence, transaction management, and concurrency.
例如,与持久性有关的方面可能需要访问对象的初始化连接点。
For example, an aspect related to persistence might need access to an object's initialization join points.
相反,它只需要程序员将属性标记为持久性的,并识别出能代表对象唯一标识符(或者主键)的属性。
Instead, it requires the developer only to denote the attributes to be persisted and to identify the attribute to represent the object's unique identifier (or primary key).
EMF提供了持久性、一个有效的反射类属对象操纵api和一个变更通知框架。
EMF provides persistence, a very efficient reflective generic object manipulation API, and a change-notification framework.
GSD提供了写后读的持久性,这意味着一个对象在上传后就可以访问了:列表、下载或是删除。
GSD provides read-after-write consistency which basically means that an object can be accessed - listed, downloaded, or deleted – right after uploading.
使用JPA的数据访问对象(DAO)与persistence . xml打包在一起,后者为应用程序使用的JPAEntityManager定义持久性上下文。
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.
例如,只用pickle不能解决命名和查找pickle文件这样的问题,另外,它也不能支持并发地访问持久性对象。
For example, pickling alone doesn't solve the problem of naming and locating the pickle files, nor does it support concurrent access to persistent objects.
SimpleJPA是一个这类的示例:它是一个持久性库,允许jpa注释对象几乎与Amazon的SimpleDB无缝集成。
SimpleJPA is one example in this category: a persistence library that lets JPA annotated objects work almost seamlessly with Amazon's SimpleDB.
例如,如果未设置DataSource对象的mapping属性,则数据源的行为方式不会与容器管理的持久性(CMP)中的数据源相同。
For example, if the mapping attribute of the DataSource object is not set, the data source might not act as the data source in the container-managed persistence (CMP).
EcoSpace还包含了将对象存储到DB 2数据库中的持久性映射程序。
The EcoSpace also contains the persistence mapper that stores the objects away to a DB2 database.
Python的pickle为python对象有效的持久性管理提供了健壮的和可靠的基础。
Python pickles provide a robust and reliable foundation for effective persistence management of Python objects.
对象序列化是实现存储库持久性的一种最简单的方式,原因是datamaprepository类、所包含的数据地图以及它们的元素都是可序列化的。
Object serialization is an easy way for implementing the repository's persistence since the DataMapRepository class, the contained data maps, and their elements are serializable.
EcoSpace能包含将对象写入DB 2数据库的“持久性处理程序”。
The EcoSpace can contain 'persistence handlers' that can write the objects away to a DB2 database.
注意,这一开发场景需要使用Hibernate将已有持久性数据表示成基于对象的视图。
Note that this development scenario involves using Hibernate to present an object-based view of existing persistent data.
Bean管理的持久性将所有的工作交给EJB开发人员,让他们确定如何存储和检索特定的对象类型。
Bean-managed persistence leaves all the work to the EJB developer to figure out how to store and retrieve a specific object type.
cs源文件有自己的图形编辑器,可用于设置从对象到数据库的持久性映射。
The EcoSpace.cs source file has its own graphical editor that can be used to set up the persistence mapping for the objects to the database.
例如,图2显示的workflow类需要通过持久性机制创建customer对象。
For example, Figure 2 shows a Workflow class that needed to create customer objects by means of a persistence mechanism.
许多持久性机制以关系的方法而不是面向对象方法存储数据。
Many persistence mechanisms store data in a relational way rather than an object-oriented way.
应用推荐