计算机专业外文资料翻译--对象持久化和Java-深入的了解面向对象语言中的对象持久的讨论
《计算机专业外文资料翻译--对象持久化和Java-深入的了解面向对象语言中的对象持久的讨论》由会员分享,可在线阅读,更多相关《计算机专业外文资料翻译--对象持久化和Java-深入的了解面向对象语言中的对象持久的讨论(13页珍藏版)》请在毕设资料网上搜索。
1、1 英文文献 Object persistence and Java By Arsalan Saljoughy, JavaW, 05/01/97 Object durability, or persistence, is the term you often hear used in conjunction with the issue of storing objects in databases. Persistence is expected to operate with transactional integrity, and as such it is subject to str
2、ict conditions. (See the Resources section of this article for more information on transaction processing.) In contrast, language services offered through standard language libraries and packages are often free from transactional constraints. As well see in this article, evidence suggests that simpl
3、e Java persistence will likely stem from the language itself, while sophisticated database functionality will be offered by database vendors. No object is an island In the real world, you rarely find an object that lacks relations to other objects. Objects are components of object models. The issue
4、of object durability transcends the issue of object model durability and distribution once we make the observation that objects are interconnected by virtue of their relations to one another. The relational approach to data storage tends to aggregate data by type. Rows in a table represent the physi
5、cal aggregate of objects of the same type on disk. The relationships among objects are then represented by keys that are shared across many tables. Although through database organization, relational databases sometimes allow tables that are likely to be used together to be co-located (or clustered)
6、in the same logical partition, such as a database segment, they have no mechanism to store object relationships in the database. Hence, in order to construct an object model, these relationships are constructed from the existing keys at run time in a process referred to as table joins. This is the s
7、ame well-known property of the relational databases called data independence. Nearly all variants of object databases offer some mechanism to enhance the performance of a system that involves complex object relationships over traditional relational databases. To query or to navigate? In storing obje
8、cts on disk, we are faced with the choice of co-locating related objects to better accommodate navigational access, or to store objects in table-like collections that aggregate objects by type to facilitate predicate-based access (queries), or both. The co-location of objects in persistent storage i
9、s an area where relational and object-oriented databases widely differ. The choice of the query language is another area of consideration. Structured Query Language (SQL) and extensions of it have provided relational systems with a predicate-based 2 access mechanism. Object Query Language (OQL) is a
10、n object variant of SQL, standardized by ODMG, but support for this language is currently scant. Polymorphic methods offer unprecedented elegance in constructing a semantic query for a collection of objects. For example, imagine a polymorphic behavior for acccount called isInGoodStanding. It may ret
11、urn the Boolean true for all accounts in good standing, and false otherwise. Now imagine the elegance of querying the collection of accounts, where inGoodStanding is implemented differently based on business rules, for all accounts in good standing. It may look something like: setOfGoodCustomers = s
12、etOfAccounts.query(account.inGoodStanding(); While several of the existing object databases are capable of processing such a query style in C+ and Smalltalk, it is difficult for them to do so for larger (say, 500+ gigabytes) collections and more complex query expressions. Several of the relational d
13、atabase companies, such as Oracle and Informix, will soon offer other, SQL-based syntax to achieve the same result. Persistence and type An object-oriented language aficionado would say persistence and type are orthogonal properties of an object; that is, persistent and transient objects of the same
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机专业 外文 资料 翻译 对象 持久 以及 java 深入 深刻 了解 面向 语言 中的 讨论
