...
首页> 外文期刊>Dr. Dobb's Journal >Native Queries for Persistent Objects
【24h】

Native Queries for Persistent Objects

机译:持久对象的本机查询

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

While today's object databases and object-relational mappers do a great job in making object persistence feel native to developers, queries still look foreign in object-oriented programs because they are expressed using either simple strings or object graphs with strings interspersed. Let's take a look at how existing systems would express a query such as "find all Student objects where the student is younger than 20." This query (and other examples in this article) assume the Student class defined in Example 1. Different data access APIs express the query quite differently, as illustrated in Example 2.
机译:尽管当今的对象数据库和对象关系映射器在使对象持久性对于开发人员而言很出色,但是查询在面向对象程序中仍然显得陌生,因为查询是使用简单的字符串或带有散布在字符串中的对象图表示的。让我们看一下现有系统如何表达查询,例如“在学生小于20岁的地方找到所有Student对象”。该查询(以及本文中的其他示例)采用了示例1中定义的Student类。不同的数据访问API对该查询的表达方式也大不相同,如示例2所示。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号