Creating a method from a block of code
    71.
    发明申请
    Creating a method from a block of code 失效
    从一个代码块创建一个方法

    公开(公告)号:US20050125774A1

    公开(公告)日:2005-06-09

    申请号:US10728017

    申请日:2003-12-04

    IPC分类号: G06F9/44 G06F9/45

    CPC分类号: G06F8/4436 G06F8/33

    摘要: A method, apparatus, system, and signal-bearing medium that in an embodiment determine whether a block of code associated with a copy-and-paste operation or a punch-out operation has a size greater than a threshold. If the size is greater than the threshold, then a method is created and the block of code is pasted into the method. Also, an invocation to the newly created method is added at the copied-from location and the intended pasted-to location (in the case of the copy-and-paste operation) or an invocation to the newly created method is added at the copied-from location (in the case of the punch-out operation). In this way, future modifications to the block of code need only be made in one place: the method, instead of at all locations where duplicate code exists. Thus, embodiments of the invention may reduce the fragility of the code.

    摘要翻译: 一种方法,装置,系统和信号承载介质,其在一个实施例中确定与复制和粘贴操作或打孔操作相关联的代码块是否具有大于阈值的尺寸。 如果大小大于阈值,则创建一个方法,并将该代码块粘贴到该方法中。 此外,在复制的位置和预期的粘贴到位置(在复制和粘贴操作的情况下)添加对新创建的方法的调用,或者将新创建的方法的调用添加到复制 - 从位置(在打孔操作的情况下)。 以这种方式,对代码块的未来修改只需要在一个地方进行:该方法,而不是在存在重复代码的所有位置。 因此,本发明的实施例可以减少代码的脆弱性。

    Apparatus and method for processing database queries
    72.
    发明申请
    Apparatus and method for processing database queries 审中-公开
    用于处理数据库查询的装置和方法

    公开(公告)号:US20050097083A1

    公开(公告)日:2005-05-05

    申请号:US10697968

    申请日:2003-10-30

    IPC分类号: G06F7/00

    CPC分类号: G06F16/24539 G06F16/2454

    摘要: Multiple database queries are satisfied with the same data in a manner that assures the data is current and without having to interrogate the database for each query. In a first embodiment, all queries that are received during the processing of a first query are evaluated to determine whether the result set returned for the first query will satisfy the queries received during processing of the first query. If so, the result set returned for the first query is used to generate result sets for the subsequent compatible queries received during the processing of the first query. In a second embodiment, queries are delayed and grouped, and a new query is then processed for each group that returns a result set that satisfies all of the queries in the group. In both cases, the result set for one query is used to generate a result set for a different query.

    摘要翻译: 以确保数据是最新的方式并且不必询问每个查询的数据库的方式,以相同的数据满足多个数据库查询。 在第一实施例中,评估在处理第一查询期间接收到的所有查询,以确定对于第一查询返回的结果集是否将满足在处理第一查询期间接收到的查询。 如果是这样,则为第一个查询返回的结果集用于生成在处理第一个查询期间接收到的后续兼容查询的结果集。 在第二实施例中,查询被延迟和分组,然后对于返回满足组中的所有查询的结果集的每个组来处理新的查询。 在这两种情况下,一个查询的结果集用于为不同的查询生成结果集。