XML data model versus the data object model
XML数据模型与数据对象模型
In the data object model approach, you need to first create the wrapper objects to encapsulate the customer and order data, as shown in Listing 1, Listing 2, and Listing 3.
按照数据对象模型方式,首先需要创建包装器对象来封装客户和订单数据,见清单1、清单2和清单3。
SDO provides a generic way for applications to interact with any object model and the data contained within the objects.
SDO提供了应用程序与任何对象模型和该对象中包含的数据进行交互的一般方法。
The asset is a data model container object that provides transformation methods for various content types.
资产是一个数据模型容器对象,为各种内容类型提供转换方法。
At the heart of every SDO instance is a model that defines the permitted structure of a data object.
在每个sdo实例的中心都有一个模式,用于定义所允许的数据对象结构。
The OCL queries free developers from the burden of the underlying XML data model and allow them to concentrate on the object model of their application, which they usually know very well.
OCL查询语言使开发人员从基础XML数据模型解脱出来,允许他们将重点放在其应用程序的对象模型上(这也是他们非常熟悉的部分)。
The model should be organized similar to applications, with viewpoints that capture specific service design information, such as the enterprise object model for data transfer objects.
应该将模型组织为与应用程序类似的方式,并包括捕获特定服务设计信息的视角,如数据传输对象的企业对象模型。
The problem with this approach is that if you are storing the data as XML and you are using the Object Model in the application, all kinds of mapping and transform issues arise.
这种方式的问题是,如果以xml格式存储数据,而在应用程序中使用对象模型,就会产生各种映射和转换问题。
The task of a data binding framework is to get the value stored in the domain object into that model.
数据绑定框架的任务是获取存储在域对象中的值再导入模型中。
We have a simple interface map with underlying business object maps to translate between the data model used in the process, and the data model of the services we're choreographing.
我们有一个具有基础业务对象映射的简单接口映射,以便对流程中使用的数据模型与我们正在编排的服务的数据模型进行相互转换。
Using the XML data model, the whole hierarchy of data object wrappers can be eliminated, leaving the programmer to focus on the business logic rather than on the business data management.
通过使用XML数据模型,就可以取消整个数据对象包装器层次结构,让开发人员将注意力集中在业务逻辑上,而不会为业务数据管理分心。
The document API model parses XML data to produce an object.
文档API模型对XML数据进行解析以生成一个对象。
Upon receiving this event, the controller knows that the feed data is cached in the model object and can be presented in the view.
一旦收到此事件,控制器就会知道提要数据是在模型对象中缓存并可在视图中展示。
Rules of this nature arise during informational analysis, either as part of the business object model or logical data modeling.
这种规则出现在信息分析阶段,可能作为业务对象模型的一部分,也可能作为逻辑数据建模的一部分。
With SQL databases, it's a good idea to separate the data loading from the object model.
对于SQL数据库,分解从对象模型中加载的数据是一种好办法。
JPA is a simplified programming model used for object relational mapping and data persistence.
JPA是一个用于对象关系映射以及数据支持的简化程序模型。
Object relational mapping refers to the technique of mapping the data representation from an object model to a relational data model with a SQL-based schema.
用基于 SQL 的模式可以把数据呈现从对象模型映射到关系数据模型,对象关系映射引用了这项技术。
One must therefore take into account both the expected return type and the data model when deciding how to cast the object that this method returns.
因此在决定如何对该方法的返回值进行强制类型转换时,必须同时考虑预期的返回类型和所用的数据模型。
The data model largely follows the typical object model used in standard application development environments.
数据模型主要遵循标准应用程序开发环境中所使用的典型对象模型。
The data model will define the object structure plus layout and valid values.
数据模型将定义对象结构、布局和有效值。
When the server sends XML data to the browser, that XML data is processed using Document Object Model (DOM) APIs.
服务器将XML数据发送到浏览器时,使用文档对象模型(DOM)API来处理这些XML数据。
Since it groups services on the basis of related behavior, rather than encapsulated (behavior plus data), the set of services will be subtly different from a business object model.
由于它基于相关的行为对服务进行分组,而不是进行封装(行为及数据),所以这组服务与业务对象略有不同。
In many cases it is necessary to copy the data from the XML object model into an application-specific object model or a database before processing can start.
很多情况下,在处理之前必须将数据从XML对象模型复制到应用程序专用的对象模型或者数据库。
You can bind a model class to an XWT UI while, at the same time, the data field in the model object will be automatically fed to the UI controls.
可以将一个模型类绑定到一个XWTUI,而同时,模型对象中的数据字段会被自动地提供给UI控件。
Now take a look at the the reverse process — building an in-memory object model from a data stream.
现在看看相反的过程,从数据流建立内存对象模型。
Plus, you would have to write additional code in the middle tier to map the relational data to an Object data Model or an XML data Model.
另外,必须在中间层中编写更多代码,将关系数据映射到对象数据模型或XML数据模型。
Making any changes to your physical data model involves expanding to the object that you want to change, making the changes, and then saving the model.
修改物理数据模型需要展开要修改的对象,进行修改,然后保存模型。
This code creates a new XML Document Object Model (DOM), then adds all of the data in the $items array to it.
这段代码创建了一个新的XML文档对象模型(Document Object Model ,DOM),然后将 $items数组中的所有数据都保存到这个模型中。
These will be set if the user posted data that failed validations against the Recipe model object.
如果用户发布的数据没有通过Recipe模型对象的验证就会设置这些消息。
These will be set if the user posted data that failed validations against the Recipe model object.
如果用户发布的数据没有通过Recipe模型对象的验证就会设置这些消息。
应用推荐