在创建一个实体bean时,容器管理的持久性会将其信息保存在数据库中。
With container-managed persistence, when an entity bean is created, its information is saved in the database.
外部文件存储更为灵活,但是无法从数据库管理的持久性和完整性中获益。
External file storage is more flexible but does not benefit from database-managed persistency and integrity.
容器管理的持久性(CMP)实体bean在容器中自动处理所有持久性语义。
Container-managed persistence (CMP) entity beans handle all of the persistence semantics automatically, in the container.
如果在负载测试过程中发现存在引用完整性违规,则可能还需要为容器管理的持久性设置顺序分组。
If referential integrity violations are discovered during the load test, then you might also need to set the sequence grouping for container managed persistence.
“我现在的工作是,借助容器管理的持久性来完成JPA支持”,感恩节前夕我坐下来跟他谈话时他这样告诉我。
"Right now I am working on finishing JPA support with container-managed persistence," he told me when I sat down to talk to him just before Thanksgiving.
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.
使用用于连接的JDBCDataSource接口编写应用程序(或者使用容器管理的持久性,但那是另一个话题)。
Code your application using the JDBC DataSource interface for connections (or use container-managed persistence (i.e. EJBs), but that is another topic).
对于每个容器管理的em实例,都存在一个或多个对应的容器管理的持久性上下文(Persistence Contexts,PC)。
For each container-managed EM instance, there are one or more corresponding container-managed persistence contexts (PC).
例如,如果未设置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).
使用容器管理的持久性(Container Managed Persistence,CMP)实体bean时,容器生成持久性代码并管理持久性逻辑。
With container Managed persistence (CMP) entity beans, the container generates the persistence code as well as managing the persistence logic.
使用bean管理的持久性(Bean Managed Persistence,BMP)实体 bean 时,开发人员编写持久性代码而容器确定何时执行该代码。
With Bean Managed Persistence (BMP) entity beans, the developer writes the persistence code but the container determines when to execute that code.
但是,这个选择会受到部署工具局限性的限制—部署工具将bean实例的状态映射到数据库,这种情况下可能会使用bean管理的持久性(BMP)实体bean。
However, this choice can be limited by the deployment tool's limitation to map the bean instance's state to the database, in which case a bean-managed persistence (BMP) entity bean may be used.
但像所有持久性框架一样,它强制您管理一些低级的细节(我宁愿不要它们)。
But like all persistence frameworks, it forces you to manage some low-level details I'd prefer to do without.
因此,除了性能监控截取程序之外,该文件还包含了关于事务管理、安全性和持久性这样的指令。
So, in addition to the performance-monitoring interceptors, this file also contains directives regarding aspects such as transaction management, security, and persistence.
应用服务器所提供的服务也相同,比如分布式计算、事务管理和持久性。
The application server provides all the same services it used to, such as distributed computing, transaction management, and persistence.
要有效地管理涉及持久性域模型的应用程序变化,必须协调数据、模式和模型的变化。
To manage any application change involving a persistent domain model effectively, you must coordinate changes in the data, schema, and model.
这包括用于处理事件数据持久性、事件格式转换、与复杂事件处理引擎集成、管理服务及其他的服务。
These include services for event data persistence, event format conversion, integration with the complex event processing engine, administrative services, and others.
在Hibernate会话的生命周期中,Session接口管理持久性。
The session interface manages persistence during the lifecycle of a Hibernate session.
例如,一个持久性框架bean可能依赖一些由文件管理bean定义的功能。
For example, a persistence framework bean may rely on some facilities defined by a file management bean.
在本文中讨论的访问意图策略只能在容器管理持久性(CMP) 2 .xbean上应用。
The access intent policies discussed in this article apply to Container Managed Persistence (CMP) 2.x beans only.
重复步骤7,将所有bean按照您希望持久性管理器处理的顺序添加进来。
Repeat step 7 until you have added all beans in the sequence you want the persistence manager to handle them.
这个博客样例提供博客持久性bundle的一个附加1.1.0版来演示这个管理更新功能。
The blog sample provides an additional version 1.1.0 of the blog persistence bundle to demonstrate this administrative update capability.
它利用Blueprint容器的功能来管理持久性上下文和全局事务,以确保业务逻辑的开发和单元测试尽可能保持简单。
It leverages the Blueprint container's ability to manage both persistence contexts and global transactions to ensure the business logic remains as simple as possible to develop and unit test.
Python的pickle为python对象有效的持久性管理提供了健壮的和可靠的基础。
Python pickles provide a robust and reliable foundation for effective persistence management of Python objects.
一旦持久性数据传入图中,与管理持久性数据有关的其他问题就变得非常重要,包括下面这些问题。
Once persistent data is introduced into the picture, other issues related to the management of that persistent data become very important, issues such as the following.
在持久性上下文中,实体与基础持久性存储区的关联由实体管理器(entity manager,EM)管理。
Within the persistence context, the entity's association with the underlying persistence store is managed by the entity manager (EM).
此进程可以长时间运行,因此它可以管理状态机状态的持久性。
This process is long running so that it manages persistence of the state of the state machine.
这是因为JPA规范对持久性上下文的管理实例施加的了一个类似组的行为。
It's because the JPA specification imposes a group-like behavior on the managed instances of a persistence context.
然而,通过声明组件及其属性,开发人员需要管理服务器端的状态,这种状态可能是会话持久性的。
However, the developer is responsible for the server-side state through the way a component or its properties are declared, which can be session-persistent.
这对我们来说是一项艰巨的集成任务,而且曝露了不少难以解决的微妙问题,比如异常处理、并发性、安全性、以及持久性上下文管理。
This was a difficult integration task for us, and exposed several subtle issues that were difficult to address like exception handling, concurrency, security, and persistence context management.
应用推荐