CN105095198B - A method and apparatus for accessing data entity - Google Patents

A method and apparatus for accessing data entity Download PDF

Info

Publication number
CN105095198B
CN105095198B CN201410153312.6A CN201410153312A CN105095198B CN 105095198 B CN105095198 B CN 105095198B CN 201410153312 A CN201410153312 A CN 201410153312A CN 105095198 B CN105095198 B CN 105095198B
Authority
CN
China
Prior art keywords
data
entity
data entity
access
real
Prior art date
Application number
CN201410153312.6A
Other languages
Chinese (zh)
Other versions
CN105095198A (en
Inventor
邓旻辉
罗坤莉
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Priority to CN201410153312.6A priority Critical patent/CN105095198B/en
Publication of CN105095198A publication Critical patent/CN105095198A/en
Application granted granted Critical
Publication of CN105095198B publication Critical patent/CN105095198B/en

Links

Abstract

本申请公开了种访问数据实体的方法,以实现提高系统运行效率的目的,包括:响应于接收到对数据实体的多个访问请求,针对访问请求返回模拟数据实体、以及执行对模拟数据实体对应的真正数据实体的并行访问,其中,模拟数据实体内置有异步线程,异步线程,用于当访问到与模拟数据实体对应的真正数据实体时,获取真正数据实体的内容,将真正数据实体的内容载入模拟数据实体;当存在针对模拟数据实体的调用时,判断模拟数据实体是否已载入真正数据实体的内容;如果否,返回到判断模拟数据实体是否已载入真正数据实体的内容的步骤;如果是,将模拟数据实体返回以供调用。 The present application discloses a method of accessing data entities, in order to achieve the purpose of improving the efficiency of system operation, comprising: in response to receiving a plurality of data access requests to the entity, the entity for returning analog data access request, and performing data entity corresponding to the analog parallel access real data entity, wherein the analog data entity built asynchronous threads, asynchronous thread, for, when access to the real data entity corresponding to the analog data entity, acquire the content real data entity, the contents of the real data entity If NO in step, returns to the judgment analog data entity has been loaded content real data entity; simulated load data entities; when there is call for a simulated data entity, the data entity determines whether the simulated real content data has been loaded entity ; if so, the analog data entities returned for calls. 另外,本申请实施例还提供了种访问数据实体的装置。 Further, the present application further provides means to access the data entity types.

Description

一种访问数据实体的方法及装置 A method and apparatus for accessing data entity

技术领域 FIELD

[0001] 本申请涉及计算机应用领域,特别涉及一种访问数据实体的方法及装置。 [0001] The present application relates to the field of computer applications, and more particularly to a method and apparatus for accessing a data entity.

背景技术 Background technique

[0002] 数据实体,是数据元素的集合,可以通过数据存储进行管理或通过计算获得。 [0002] The data entity, is a collection of data elements, data storage can be managed by or obtained by calculation. 例如,传统关系数据库中的一行数据可以理解为一个数据实体。 For example, a row of data in a traditional relational database may be understood as a data entity.

[0003] 通常,在复杂度较高的系统中会存在大量对数据实体的访问。 [0003] Generally, there will be a large number of access to the data entity in the high complexity of the system. 而对数据实体的不同访问之间,可能存在前置依赖关系,即一个访问的运行可能依赖于得到另一个访问所访问到的数据实体,如果得不到另一个访问所访问到的数据实体将发生运行错误。 And access to different data entity, there may be pre-dependency, i.e. an access operation may depend on the other to give access to the accessed data entities, another access if it is not the accessed data entities runtime error occurred. 因此,为了避免运行错误,目前一般采用完全串行的方式对数据实体进行访问。 Therefore, to avoid operational error, it is generally a fully serial fashion to access data entities.

[0004] 但是,只采用串行的方式对数据实体进行访问,总体访问时间等于所有访问的时间的总和,系统的运行效率很低。 [0004] However, only a serial manner entity access to the data, the overall access time equal to the sum of all access time, low operating efficiency of the system.

发明内容 SUMMARY

[0005] 有鉴于此,本申请的目的在于提供一种访问数据实体的方法及装置以实现提高系统运行效率的目的。 [0005] Accordingly, the present application aims to provide a method and apparatus for accessing a data entity to achieve the purpose of improving the efficiency of system operation.

[0006] 在本申请实施例的第一个方面,提供了一种访问数据实体的方法,例如,该方法可以包括:响应于接收到对数据实体的多个访问请求,针对所述访问请求返回模拟数据实体、 以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问, 其中,所述模拟数据实体内置有异步线程,所述异步线程,用于当访问到与所述模拟数据实体对应的真正数据实体时,获取所述真正数据实体的内容,将所述真正数据实体的内容载入所述模拟数据实体;当存在针对所述模拟数据实体的调用时,判断所述模拟数据实体是否已载入真正数据实体的内容;如果否,返回到所述判断模拟数据实体是否已载入真正数据实体的内容的步骤;如果是,将所述模拟数据实体返回以供调用。 [0006] In a first aspect of the embodiment of the present application, there is provided a method of accessing data entity, for example, the method may comprise: in response to receiving a request for access to a plurality of data entity, a request for the return visit analog data entity, and based on the plurality of access requests, performing parallel access to the real data entity corresponding to the entity of the analog data, wherein said analog data entities built asynchronous threads, the asynchronous thread, for, when accessing when the entity with the analog data corresponding to the real data entity, acquire the content of the real data entity, the content of the real data entity simulated loading data entities; when there is call for the analog data entity determining whether the analog data entity has been loaded with the contents of the real data entity; if not, returning to the step of determining whether the analog data entity has been loaded with the contents of the real data entity; if it is, return the analog data entities for calls.

[0007] 在本申请实施例的第二个方面,提供了一种访问数据实体的装置,例如,该装置可以包括:接收单元,用于响应于接收到对数据实体的多个访问请求,针对所述访问请求返回模拟数据实体、以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问,其中,所述模拟数据实体内置有异步线程,所述异步线程,用于当访问到与所述模拟数据实体对应的真正数据实体时,获取所述真正数据实体的内容,将所述真正数据实体的内容载入所述模拟数据实体;判断单元,用于当存在针对所述模拟数据实体的调用时,判断所述模拟数据实体是否已载入真正数据实体的内容;堵塞单元,用于如果所述判断单元判定为否,重新触发所述判断单元执行;返回单元,用于如果所述判断单元判定为是,将所述模拟数据实体返回以供调用。 [0007] In a second aspect of the embodiment of the present application, there is provided an apparatus for accessing data entity, for example, the apparatus may comprise: a receiving unit, in response to receiving a request for access to a plurality of data entities, for the access request to return the analog data entity, and based on the plurality of access requests, performing parallel access to the real data entity corresponding to the entity of the analog data, wherein said analog data entities built asynchronous threads, the asynchronous thread for, when access to the real data entity with the analog data corresponding to the entity, acquire the content of the real data entity, the contents of the real data entity, loading the analog data entity; determining means for, when when the call for the presence of the analog data entity, determining the analog data entity has been loaded content real data entity; and if the determination means determines whether to re-trigger the execution determination unit clogging means, for; return means for, if the determination means determines that the analog data entities returned for calling.

[0008] 可见本申请具有如下有益效果: [0008] The present application have found the following advantages:

[0009] 由于本申请针对所接收的多个访问请求返回了模拟数据实体,以及基于所述多个访问请求,执行了对真正数据实体的并行访问,因此,对于有前置依赖的访问请求来说,发出对已返回的模拟数据实体的调用不会发生运行错误,在模拟数据实体还未载入真正数据实体内容时,可以等待真正数据实体的内容以待调用,对于无前置依赖的多个访问请求来说,可以执行对与模拟数据实体对应的真正数据实体的并行访问,从而可以减少总体访问时间,提尚系统运彳丁效率。 [0009] Since the present application is directed to a plurality of access request returns the received analog data entity, and based on the plurality of access requests, execution of concurrent access to the real data entity, and therefore, have access to pre-dependent request that issues a call for the return of analog data entities does not run error occurs in the analog data entities are not really loaded content entity data, real data entities can wait for the content to be called, for no more than the front-dependent a request for access may be performed in parallel with the access to the real data entity corresponding to the analog data entities, thereby reducing the overall access time, yet provide efficient system operation butoxy left foot.

附图说明 BRIEF DESCRIPTION

[0010] 为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0010] In order to more clearly illustrate the technical solutions according to the prior art embodiment of the present application, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present application are described, those of ordinary skill in the art is concerned, without any creative effort, and can obtain other drawings based on these drawings.

[0011] 图1为本申请实施例提供的一种访问数据实体的方法流程示意图; [0011] Figure 1 is a schematic of a process flow of the application accessing data entities according to an embodiment;

[0012] 图2为本申请实施例涉及的代理模式示意图; [0012] Figure 2 a schematic embodiment according to the present application proxy mode;

[0013] 图3为本申请实施例提供的一种访问数据实体的装置结构示意图之一; [0013] Figure 3 is a schematic structural diagram of one of the devices application for accessing data entities according to an embodiment;

[00M]图4为本申请实施例提供的一种访问数据实体的装置结构示意图之二。 [00M] Figure 4 apparatus structure for accessing data entity provides a schematic view of two embodiments of the present application.

具体实施方式 Detailed ways

[0015] 为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。 [0015] In order to make those skilled in the art better understand the technical solution of the present application, in conjunction with the following drawings of the present application example embodiments, the technical solutions in the present application will be clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present application, rather than all embodiments. 基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。 Based on the embodiments of the present disclosure, one of ordinary skill in this art All other embodiments without creative work obtained, it shall fall into the scope of the present application.

[0016] 为了能够通过并行访问数据实体的方式提高系统运行效率,本申请人发现,在接收到对数据实体的多个访问请求时,可以虚拟出与访问请求对应的模拟数据实体,返回模拟数据实体,以及基于所述多个访问请求,执行对与模拟数据实体对应的真正数据实体的并行访问。 [0016] In order to improve the system efficiency by parallel accessing data entity, the present applicant has found that, when a plurality of receiving access request data entity may be a virtual entity corresponding analog data access request, return the analog data entity, and based on the plurality of access requests, performing parallel access to the real data entity with the corresponding analog data entity. 其中,所述模拟数据实体可以内置有异步线程,异步线程可以用于当访问到与所述模拟数据实体对应的真正数据实体时,以异步方式获取所述真正数据实体的内容,将真正数据实体的内容载入所述模拟数据实体。 Wherein said analog data entities can be built asynchronous threads, asynchronous thread may be used when accessing the data to the real data entity corresponding to the entity with the analog, the contents asynchronously acquire real data entity, the data entity true loading the contents of the analog data entity. 当存在针对所述模拟数据实体的调用时,可以通过判定模拟数据实体还未载入真正数据实体的内容循环进行判断,堵塞调用,如果已载入,可以将模拟数据实体返回以供调用。 When the call data entity exists for the analog, the analog can not yet load data entities determined by the contents of the real data entity cyclic judge, blocked calls, if loaded, the entity may be an analog data for return calls. 因此,对于有前置依赖的访问请求来说,发出对已返回的模拟数据实体的调用不会发生运行错误,在模拟数据实体还未载入真正数据实体内容时,可以通过循环判断等待真正数据实体的内容以待调用,对于无前置依赖的多个访问请求来说,可以执行对与模拟数据实体对应的真正数据实体的并行访问,从而可以减少总体访问时间,提尚系统运彳丁效率。 Therefore, there is a request for access to pre-dependent, it issues a call for the return of analog data entities does not run error occurs in the analog data entities are not really loaded data entity content, you can wait for the cycle to determine the real data content entity to be called, a plurality of access requests for non-pre-dependent, it can be performed in parallel with the access to the real data entity corresponding to the analog data entities, thereby reducing the overall access time, yet provide efficient system operation butoxy left foot .

[0017] 基于上述分析,本申请实施例提供了一种访问数据实体的方法。 [0017] Based on the above, embodiments of the present application provides a method for accessing data entity. 参见图1,为本申请实施例提供的访问数据实体的方法流程示意图。 Referring to Figure 1, a method of accessing data entity schematic flow diagram according to an embodiment of the present application. 如图1所示,该实施例可以包括: As shown in FIG. 1, the embodiment may include:

[0018] SI 10、响应于接收到对数据实体的多个访问请求,针对所述访问请求返回模拟数据实体、以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问,其中,所述模拟数据实体内置有异步线程; [0018] SI 10, in response to receiving a request for access to a plurality of data entity, return the analog data entity for the access request, and based on the plurality of access requests, the real data entity performs the analog data corresponding to the entity parallel access, wherein said analog data entities built asynchronous thread;

[0019] 例如,在接收到对数据实体的访问请求时,可以针对该访问请求实时动态生成对应的模拟数据实体。 [0019] For example, upon receiving a request for access to the data entity, a request may be generated dynamically in real time corresponding analog data entity for that access. 其中,所述模拟数据实体可以为实例化产生的可执行对象,在该可执行对象中可以内置有异步线程、设置与真正数据实体相应的属性域(例如,字段、参数等等)、 且还可以在该可执行对象中自动加入用于实现以下步骤S120〜S150的代码,以便所有需要调用该模拟数据实体的程序在实现对该模拟数据实体的调用之前,可以等待真正数据实体的内容的载入。 Wherein said analog data entity may generate executable object is instantiated, the executable object may be built asynchronous thread, provided with the real data entity corresponding attribute fields (e.g., fields, parameters, etc.), and also may be automatically added code to implement the steps S120~S150 in the executable object, so that all the analog data entity needs to call a program invoked prior to implementing the analog data entity, the content may wait real data entity contained into.

[0020] 例如,本申请实施例可以使用代理模式。 [0020] For example, application of the present embodiment may use proxy mode. 如,Java中可以使用cglib (Code Generation Library,类生成库)实现代理模式。 As, Java can be used cglib (Code Generation Library, class libraries generated) achieved proxy mode. 在代理模式中,如图2所示,代理对象210与委托对象220有同样的接口230,代理对象主要负责为委托对象预处理消息、过滤消息、把消息转发给委托对象、以及事后处理消息等。 In proxy mode, shown in Figure 2, the proxy object delegate object 220 and 210 have the same interface 230, a proxy object is responsible for the pre-message delegate object, filtered message, forwarding the message to a delegate object, and a message post-processing, etc. . 代理对象与委托对象之间存在关联关系,代理对象本身并不真正实现服务,而是通过调用委托对象的相关方法来提供特定的服务。 There is any relationship between the proxy object and delegate object, the proxy object itself does not really achieve service, but to provide certain services related to the method by calling the delegate object. 因此,在本申请实施例中,可以使用代理模式,从异步运行线程池中,自动产生代理对象,由代理对象接收对数据实体的多个访问请求。 Accordingly, in the present embodiment, the application may use a proxy mode, from the thread pool asynchronous operation, automatically generating a proxy object for receiving a plurality of data access requests by the proxy object entity. 其中,对应一个访问请求,可以产生一个代理对象。 Wherein the corresponding access request, a proxy object may be generated. 由于代理对象持有对委托对象的引用,因此,当代理对象210接收到对数据实体的访问请求时,可以实时动态生成代理对象类型实例化产生的可执行对象(即,模拟数据实体),返回与所述访问请求对应的模拟数据实体、以及调用与所述代理对象关联的委托对象220执行对所述模拟数据实体对应的真正数据实体的并行访问。 Due proxy object holds a reference to the object delegate, and therefore, when the proxy object 210 receives a request for access to the data entity may dynamically generate real-time proxy object types generated executable object instantiation (i.e., analog data entities), and returns with the access request entity corresponding analog data, and calling the delegate object associated with the proxy object 220 to perform parallel access to the real data entity entity data corresponding to the analog. 例如,下述步骤S120〜步骤S150的代码可以是代理对象自动生成并加入模拟数据实体的。 For example, the steps of step S150 S120~ proxy object code can be automatically generated and added to the analog data entities. 在该实现方式中,内置于模拟数据实体的异步线程,可以用于定时向所述委托对象220请求真正数据实体,当所述委托对象220 访问到真正数据实体时,从所述委托对象220获取其访问到的真正数据实体的内容。 In this implementation, asynchronous thread built into analog data entity, may be used for the timing data requesting entity real object 220 to the delegate, the delegate object 220 when access to the real data entity, acquiring the proxy object 220 from access to the contents of the real data entities.

[0021] S120、当访问到与所述模拟数据实体对应的真正数据实体时,所述异步线程获取所述真正数据实体的内容,将所述真正数据实体的内容载入所述模拟数据实体; [0021] S120, when access to the real data entity with the analog data corresponding to the entity, the asynchronous thread to obtain the content of the real data entity, the content of the real data entity simulated loading data entities;

[0022] 例如,将真正数据实体的内容载入模拟数据实体的具体实现可以为将真正数据实体的属性域的值复制到模拟数据实体的对应的属性域。 [0022] For example, the contents of the real data entity specific loading analog data entity can be copied to a corresponding analog field data entity attribute value domain to the real data entity.

[0023] 可以理解的是,返回模拟数据实体的操作,与对模拟数据实体对应的真正数据实体访问的操作,可以是并行执行的操作。 [0023] It will be appreciated that the analog data entity returning operation, and the operation of the real data entity corresponding to the entity access simulation data, the operation may be performed in parallel. 步骤S120异步线程获取真正数据实体的操作可以是与下述步骤S130〜步骤S150并行的操作。 Step S120 asynchronous thread operations acquire real data entity may be a step S150 and the following steps S130~ parallel operation.

[0024] S130、当存在针对所述模拟数据实体的调用时,判断所述模拟数据实体是否已载入真正数据实体的内容; [0024] S130, when calling data entity exists for the analog, the analog data determining whether the entity has been loaded with the contents of the real data entity;

[0025] 为了便于对模拟数据实体是否已载入真正数据实体的内容进行判断,本申请实施例还可以设置有标志位,所述标志位可以用于标识所述模拟数据实体是否已载入真正数据实体的内容;所述异步线程,还可以用于对所述标志位进行更新;相应地,所述判断模拟数据实体是否已载入真正数据实体的内容,可以根据所述标志位进行判断。 [0025] In order to facilitate the analog data entity has been loaded content real data entity is determined, embodiments of the present application may also be provided with a flag, the flag can be simulated for identifying the real data entity has been loaded content data entity; the asynchronous thread, may also be used for the flag to be updated; accordingly, the analog data determining whether an entity has been loaded with the contents of the real data entity, may be determined according to the flag. 例如,所述标志位可以初始化为false,当所述模拟数据实体已载入真正数据实体的内容时,所述异步线程可以将所述标志位更新为true 〇 For example, the flag may be initialized to false, when the analog data entity has been loaded with the contents of the real data entity, the asynchronous thread may update the flag is true square

[0026] 考虑到在某些可能的特殊情况下,某些模拟数据实体内置的异步线程可能一直无法获取到真正数据实体,为了不长期堵塞其他访问,所述异步线程,还可以用于在预设时长内未获取真正数据实体时,将所述标志位更新为已获取真正数据实体所对应的状态,例如, 将标志位更新为true,从而使得系统可以在允许的时间内完成运行。 [0026] In some possible taking into account the special circumstances, some analog data entity built-in asynchronous thread may have been unable to get to the real data entities, in order not to clog other long-term access, the asynchronous thread can also be used to pre when the length is not acquired when the real data entity set, the flag is updated to real data acquired entity corresponding to a state, for example, the update flag is true, so that operation of the system can be completed within the time allowed.

[0027] S140、如果否,返回到所述判断模拟数据实体是否已载入真正数据实体的内容的步骤; [0027] S140, and if not, returns to the step of determining whether the analog data entity has been loaded with the contents of the real data entity;

[0028] SI 50、如果是,将所述模拟数据实体返回以供调用。 [0028] SI 50, if yes, return the analog data for calling entity.

[0029] 例如,一个代理对象类型为objl的代码可以如下所示: [0029] For example, a proxy object type objl code can be as follows:

Figure CN105095198BD00071

[0030] [0030]

[0031] [0031]

[0032] //上述代码表示:当存在针对模拟数据实体Objl的调用时,进入函数getFieldl, 在函数getFieldl中,通过判定标志位asyncOver为假而循环判断,通过判定标志位asyncOver为真,确定模拟数据实体已载入真正数据实体的内容,退出循环,返回已载入真正数据实体的内容的属性域fieldl以供调用。 [0032] // This code represents: When there is a call for analog data entity Objl, the process proceeds getFieldl function, the function getFieldl by asyncOver determination flag is false determination circulated by determining asyncOver flag is true, determine a simulated data entities loaded content real data entities, exit the loop and return loaded content real data entity attribute domain fieldl for calls.

[0033] [0033]

Figure CN105095198BD00072

[0034] 通过该段代码可见,所述模拟数据实体可以为代理对象类型(如上面代码中的Objl)实例化产生的可执行对象,针对访问请求返回模拟数据实体实际上是返回实例化后产生的可执行对象。 After [0034] This code is visible through the analog data entity can be instantiated to generate executable object proxy object type (e.g. Objl above code), to return the analog data for the access requesting entity actually returns an instance of generating the executable object. 在异步线程获取到真正数据实体后,可以将真正数据实体的内容载入该可执行对象中的相应属性域(如上面代码中的fieldl),即将该可执行对象中的相应属性域的值设置为真正数据,从而当存在针对模拟数据实体的调用时可以返回模拟数据实体以供调用,调用完全恢复正常。 After obtaining the real data entity in the asynchronous thread, the contents of the real data entity can be loaded corresponding attribute value field corresponding to the executable object property field (e.g., the above code fieldl), the executable object is about for the real data, so that when there is simulation data can be returned when you call the entity for the entity for analog data calls, calls back to normal.

[0035] 可见,应用本申请实施例提供的方法,由于针对访问请求返回了模拟数据实体,以及执行了对真正数据实体的并行访问,因此,对于有前置依赖的访问请求来说,发出对已返回的模拟数据实体的调用不会发生运行错误,在模拟数据实体还未载入真正数据实体内容时,可以等待真正数据实体的内容以待调用,对于无前置依赖的多个访问请求来说,可以执行对与模拟数据实体对应的真正数据实体的并行访问,从而可以减少总体访问时间,提高系统运行效率。 [0035] Visible, the present application method provided in this embodiment, since the access request for the return of analog data entity, and performing parallel access to the real data entity, and therefore, have access to pre-dependent request, the issue of when you call the simulation data entity has not run returned an error occurs, the data entities in a simulated real data entity has not been loaded content, content to wait for the real data entity to be called for more access without pre-dependent request say, you can perform concurrent access to data entities and real entities corresponding analog data, which can reduce the overall access time and improve operational efficiency of the system. 例如,在一种可能的情况下,有前置依赖的访问请求在调用模拟数据实体之前,模拟数据实体内置的异步线程已将真正数据实体的内容载入模拟数据实体,则在有前置依赖的访问请求调用模拟数据实体时可以直接成功调用模拟数据实体,得到其中的真正数据实体的内容,此时,理论上,所有对数据实体的访问请求全部并发执行,整个访问请求的总体时间最短。 For example, in one possible scenario, there are front-dependent access request before calling the analog data entity, the entity built-in analog data content asynchronous thread has real entity data loading analog data entities, then there are pre-reliance success can be directly invoked when a request calls analog data entities analog data entities to obtain the contents of the real data entities, then, in theory, all access to data entities of all requests concurrently, the total time the entire access request is the shortest.

[0036] 下面,结合本申请实施例一可能的应用场景进行说明。 [0036] Hereinafter, embodiments of the present application in conjunction with a possible application scenario will be described. 例如,本申请实施例可以应用于页面渲染的应用场景中。 For example, application of the present embodiment can be applied to render the page in the application scenario. 在页面渲染的应用场景中,通常按照三层模式进行设计:表现层,即页面表现层,内部通常采用JSP、velocity、或者freemarker等植染引擎将植染所需的数据进行渲染,呈现用户可见的页面,如HTML页面;业务逻辑层,调用业务逻辑对来自页面的访问请求进行运算,生成对数据实体的访问请求,调用业务逻辑对访问到的数据实体进行运算,得到渲染所需的数据,将渲染所需的数据提交给表现层进行渲染;数据访问层,响应对数据实体的访问请求,针对数据库进行添加、删除、修改、更新、查找等访问操作。 In page rendering application scenario, generally designed in accordance with three modes: the presentation layer, i.e., the page presentation layer, commonly used internal data JSP, velocity, or other explant freemarker engine plant transfection transfected desired rendering, rendering visible to the user pages, such as HTML pages; business logic, business logic invocation requests access to a page from a calculation carried out, generating an access request for data entities, call the business logic to access data entity calculates, to obtain data required to render, the rendering data required to be submitted for presentation layer rendering; data access layer, in response to requests for access to data entities, for the database to add, delete, modify, update, search and other access operations.

[0037] 在这一应用场景中,在如浏览型的页面(如HTML页面)中的任意操作,相应会产生来自页面的访问请求。 [0037] In this application scenario, any type of operations, such as browsing the page (e.g., HTML page) in the corresponding access request is generated from a page. 本申请实施例可以在业务逻辑层接收到来自页面的访问请求后,在业务逻辑层调用业务逻辑对来自页面的访问请求进行运算,生成对相同或不同数据实体的多个访问请求,针对所述访问请求返回模拟数据实体,以及在数据访问层执行对模拟数据实体对应的真正数据实体的并行访问。 After application of the present embodiment can be received in the access request from page business logic, business logic Yewuluojiceng call access request from a page operation, generating a plurality of access requests for the same data or different entities, for the access request to return the analog data entity, and performing parallel access to the real data entity corresponding to the analog data entity in the data access layer. 可以理解的是,由于对数据实体的访问请求为多个, 与数据实体的访问请求对应的模拟数据实体也可以为多个,对模拟数据实体对应的真正数据实体的访问也可以为多个,因此,本申请实施例所述的并行访问指的是,对模拟数据实体对应的真正数据实体的多个访问之间的并行执行。 It will be appreciated that, due to the data access request is a plurality of entities, the entity requesting access to the data corresponding to the analog data entity may be a plurality, access to the real data entity corresponding to the analog data entity may be a plurality, Thus, concurrent access to the embodiment of the present application refers to an embodiment of the parallel execution between the plurality of analog access to the real data entity data corresponding to the entity. 当任意模拟数据实体已载入真正数据实体的内容时,可以在业务逻辑层调用业务逻辑对所任意模拟数据实体已载入的真正数据实体的内容进行运算,获得页面渲染所需的数据,将所述页面渲染所需的数据提交给所述页面进行渲染。 When any analog data entity has been loaded content real data entities, operations can be carried out in the context of real business logic layer data entity calls the business logic of the entities any analog data has been loaded, access the desired page rendering data, the page rendering required data submitted to the page rendering.

[0038] 应用该实施例,对于有前置依赖关系的访问,可以发出对已返回的模拟数据实体的调用,在模拟数据实体还未载入真正数据实体时,可以等待真正数据实体以待调用,因此,不会发生运行错误,无前置依赖关系的访问之间可以并行执行。 [0038] Application of this embodiment, there is access to pre-dependency, can issue a call to the analog data entities returned, when the analog data entities are not loaded real data entity, the data entity may wait to be called true Therefore, runtime error does not occur, no access can be performed in parallel between the front dependencies. 与现有技术在页面渲染过程中,完全串行执行对数据实体的访问的方式相比较,可以减少对数据实体的总体访问时间,尽快获得需要访问的数据实体,尽快获得页面渲染所需的数据,从而减少整个页面的渲染持续时间,加快页面响应速度,提高用户体验以及应用性能。 The prior art in page rendering, full implementation of the serial access to data entities in a way compared to, you can reduce the overall access time to data entity, the entity needs to obtain access to data as soon as possible to achieve the desired page rendering data as soon as possible , thereby reducing the duration of rendering the entire page, the page speed up response time, improve the user experience and application performance.

[0039] 可以理解的是,本申请实施例可以应用的场景不仅限于页面渲染的应用场景,还可以应用于其他场景。 [0039] It will be appreciated that the application of the present embodiment can be applied to the scene of the embodiment is not limited to the page rendering application scenario, may be applied to other scenarios. 本申请实施例不受编程语言以及系统环境的限制,在任意编程语言和系统环境下均可实施。 This application is not limiting embodiments programming language and implementation of the system environment, can be implemented in any programming language and system environments. 例如,可以使用JAVA编程语言开发,部署环境可以为Iinux系统。 For example, you can use the JAVA programming language development, deployment environment can Iinux system.

[0040] 与上述访问数据实体的方法相应地,本申请实施例还提供了一种访问数据实体的装置。 [0040] The above-described method to access data objects and accordingly, the present application further provides means for accessing a data entity. 例如,参见3,为本申请实施例提供的访问数据实体的装置的结构示意图之一。 For example, referring to 3, one access device is a schematic structural diagram of a data entity to an embodiment of the present application. 如图3 所示,该装置可以包括: As shown in FIG 3, the apparatus may comprise:

[0041] 接收单元310,可以用于响应于接收到对数据实体的多个访问请求,针对所述访问请求返回模拟数据实体、以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问,其中,所述模拟数据实体内置有异步线程,所述异步线程,可以用于当访问到与所述模拟数据实体对应的真正数据实体时,获取所述真正数据实体的内容, 将所述真正数据实体的内容载入所述模拟数据实体; [0041] The receiving unit 310 can be used in response to receiving a request for access to a plurality of data entity, return the analog data entity for the access request, and based on the plurality of access requests, performing data entity corresponding to the analog parallel access real data entity, wherein the analog data entity built asynchronous threads, the asynchronous thread may be used when accessing the data to the real data entity corresponding to the analog entity, acquiring the real data entity content, the content of the real data entity simulated loading data entities;

[0042] 判断单元320,可以用于当存在针对所述模拟数据实体的调用时,判断所述模拟数据实体是否已载入真正数据实体的内容; [0042] determination unit 320, may be used when the call for the presence of the analog data entity, determining whether the analog data entity has been loaded content real data entity;

[0043] 堵塞单元330,可以用于如果所述判断单元判定为否,重新触发所述判断单元执行; [0043] blocked unit 330, may be used if the determination means determines that no, triggering the re-execution determination unit;

[0044] 返回单元340,可以用于如果所述判断单元判定为是,将所述模拟数据实体返回以供调用。 [0044] The return unit 340, may be used if the determination means determines that the analog data entities returned for calling.

[0045] 应用本申请实施例提供的装置,由于接收单元310针对访问请求,返回模拟数据实体以及执行对真正数据实体的并行访问,利用模拟数据实体内置的异步线程获取真正数据实体,判断单元320在存在针对模拟数据实体的调用时,判断模拟数据实体是否已载入真正数据实体的内容,因此,对于有前置依赖的访问请求来说,可以在还未访问到真正数据实体时,通过堵塞单元330判定还未载入返回判断步骤而堵塞调用,在访问到真正数据实体时, 通过返回单元340判定已载入返回模拟数据实体以供调用,因此,不会发生运行错误,对于无前置依赖的多个访问请求来说,可以执行对与模拟数据实体对应的真正数据实体的并行访问,从而可以减少总体访问时间,提高系统运行效率。 Means provided in the [0045] application of the present application embodiment, since the receiving unit 310 for the access request, return the analog data entity, and performing parallel access to the real data entity, using simulated data entity built-in asynchronous thread acquiring real data entity, determining unit 320 when the call for the presence of analog data entity, the data entity determines whether the simulated real content data has been loaded entity, therefore, have access to pre-dependent request, the access to the real data entity has not, by blocking Loading unit 330 returns the determination step it is determined yet clogged call, the access to the real data entity, by the return unit 340 determines that the entity has been loaded to return the analog data for retrieval, and therefore, operation error does not occur, without leading to a plurality of access requests dependent, it can be performed in parallel with the access to the real data entity corresponding to the analog data entities, thereby reducing the overall access time, improve the system efficiency.

[0046] 在本申请实施例一种可能的实现方式中,可以使用代理模式。 [0046] In the present application embodiment of a possible implementation, the proxy mode may be used. 例如,如图4所示,接收单元310可以包括:代理产生子单元311,用于产生代理对象;代理接收子单元312,用于当代理对象接收到对数据实体的多个访问请求时,返回与所述访问请求对应的模拟数据实体、以及调用与所述代理对象关联的委托对象,执行对所述模拟数据实体对应的真正数据实体的并行访问;所述异步线程,可以用于定时向所述委托对象请求真正数据实体,当所述委托对象访问到真正数据实体时,从所述委托对象获取其访问到的真正数据实体。 For example, as shown in FIG. 4, the receiving unit 310 may include: the agent generating subunit 311, for generating a proxy object; proxy receiving subunit 312, configured to, when the proxy object receives a plurality of data access request entity returns entity and the simulation data corresponding to the access request, and calls associated with the proxy object delegate object, performing parallel access to the real data entity corresponding to the analog data entity; the asynchronous thread may be used for the timing of the said delegate object requests to the real data entity, when the delegate object access to the real data entity, acquiring access to the real data entity from which the delegate object.

[0047] 为了便于对模拟数据实体是否已载入真正数据实体的内容进行判断,本申请实施例还可以设置有标志位,所述标志位可以用于标识所述模拟数据实体是否已载入真正数据实体的内容;所述异步线程,还可以用于对所述标志位进行更新;所述判断单元320,可以用于根据所述标志位判断模拟数据实体是否已载入真正数据实体的内容。 [0047] In order to facilitate the analog data entity has been loaded content real data entity is determined, embodiments of the present application may also be provided with a flag, the flag can be simulated for identifying the real data entity has been loaded content data entity; the asynchronous thread, can also be used to update the flag; the judging unit 320, the flag bit may be used in accordance with the analog data determining entity has been loaded with the contents of the real data entity.

[0048] 例如,本申请实施例可以应用于页面渲染的应用场景中。 [0048] For example, application of the present embodiment can be applied to render the page in the application scenario. 在页面渲染的应用场景中,如图4所示,本申请实施例还可以包括:页面请求接收单元350,可以用于接收来自页面的访问请求,调用业务逻辑对所述来自页面的访问请求进行运算,生成所述对数据实体的多个访问请求;数据实体运算单元360,可以用于当任意模拟数据实体已载入真正数据实体的内容时,调用业务逻辑对所任意模拟数据实体已载入的真正数据实体的内容进行运算, 获得页面渲染所需的数据;提交单元370,可以用于将所述页面渲染所需的数据提交给所述页面进行渲染。 In page rendering application scenario shown in Figure 4, the application of the present embodiment may further include: a page request receiving unit 350 may be used to receive an access request from a page, the call service logic to access the page requests from a calculating, generating a plurality of access requests for the data entity; physical data operation unit 360, the analog may be used when any data entity has been loaded with the contents of the real data entity, the call service logic entities of any analog data loaded real content data entity calculates to obtain data needed to render the page; issuing unit 370, may be used to render the page to submit the data required to render the page.

[0049] 应用该实施例,对于有前置依赖的访问来说,可以发出对已返回的模拟数据实体的调用,等待真正数据实体,不会发生运行错误,而无前置依赖关系的访问之间可以并行执行,与现有技术在页面渲染过程中,完全串行执行对数据实体的访问的方式相比较,可以减少对数据实体的总体访问时间,尽快获得需要访问的数据实体,尽快获得页面渲染所需的数据,从而减少整个页面的渲染持续时间,加快页面相应速度,提高用户体验以及应用性能。 Access the [0049] application of this embodiment, there is access to pre-dependent, it can issue a call to the analog data entities returned, waiting for the real data entity, run-time error does not occur without pre-dependency Room can be executed in parallel with the existing technology in the page rendering process, the full implementation of the serial access to data entities in a way compared to, you can reduce the overall access time to data entity, the entity needs to obtain access to data as soon as possible, as quickly as possible to get the page rendering data required, thereby reducing the duration of rendering the entire page, the page corresponding to accelerate the speed and improve the user experience and application performance.

[0050] 为了描述的方便,描述以上装置时以功能分为各种单元分别描述。 [0050] For convenience of description, the description of the above device is divided into various functional units are described. 当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。 Of course, the function of each unit is implemented in one or more software and / or hardware at the time of application of the present embodiment.

[0051] 通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。 [0051] By the above described embodiments can be seen, those skilled in the art can understand that the present application may be implemented by software plus a necessary universal hardware platform. 基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。 Based on such understanding, the technical solutions of the present application or the nature of the part contributing to the prior art may be embodied in a software product, which computer software product may be stored in a storage medium such as ROM / RAM, magnetic disk, , an optical disc, and includes several instructions that enable a computer device (may be a personal computer, a server, or network device) method for each application of the present embodiment or embodiments certain portions of the described embodiment is performed.

[0052] 本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。 [0052] In the present specification, various embodiments are described in a progressive manner, between similar portions of the same embodiment of various embodiments refer to each other, it is different from the embodiment and the other embodiments described each embodiment focus. 尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 In particular, for embodiments of the system, since they are substantially similar to the method embodiments, the description is relatively simple, some embodiments of the methods see relevant point can be described.

[0053] 本申请可用于众多通用或专用的计算系统环境或配置中。 [0053] The present application can be used in numerous general purpose or special purpose computing system environments or configurations. 例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。 For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PC, minicomputers, mainframe computers, comprising any of the above systems or devices, the distributed computing environment.

[0054] 本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。 [0054] The present application may be described in the general context of computer-executable instructions, executed by a computer, such as program modules. 一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。 Generally, program modules include performing particular tasks or implement particular abstract data types routines, programs, objects, components, data structures, and the like. 也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。 This application may be practiced in a distributed computing environment, the distributed computing environments, where tasks are performed by remote processing devices that are linked through a communications network. 在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。 In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices in.

[0055] 需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。 [0055] Incidentally, herein, relational terms such as first and second and the like are only used to distinguish one entity or operation from another entity or action without necessarily requiring or implying these entities the presence of any such actual relationship or order between or operations. 而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。 Further, the term "comprising", "containing" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, article, or apparatus not include only those elements but not expressly listed further comprising the other elements, or further comprising such process, method, article, or apparatus inherent elements. 在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。 Without more constraints, by the wording "include a ......" defined does not exclude the existence of additional identical elements in the element comprising a process, method, article, or apparatus.

[0056] 以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。 [0056] The above embodiments of the present application it is only the preferred, not intended to limit the scope of the present disclosure. 凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。 Any modifications made within the spirit and principle of this application, equivalent replacements, improvements, etc., are included within the scope of the present disclosure.

Claims (9)

1. 一种访问数据实体的方法,其特征在于,包括: 响应于接收到对数据实体的多个访问请求,针对所述访问请求返回模拟数据实体、以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问,其中,所述模拟数据实体内置有异步线程,所述异步线程,用于当访问到与所述模拟数据实体对应的真正数据实体时,获取所述真正数据实体的内容,将所述真正数据实体的内容载入所述模拟数据实体; 当存在针对所述模拟数据实体的调用时,判断所述模拟数据实体是否已载入真正数据实体的内容; 如果否,返回到所述判断模拟数据实体是否已载入真正数据实体的内容的步骤; 如果是,将所述模拟数据实体返回以供调用。 1. A method for accessing data entity, characterized by comprising: in response to receiving a plurality of data access request entity returns the analog data entity for the access request, and based on the plurality of access requests, performs the analog parallel access data entity corresponding to the real data entity, wherein the analog data entity built asynchronous threads, the asynchronous thread, for, when access to the real data entity data entities corresponding to the analog, obtaining the contents of the real data entity, the content of the real data entity simulated loading data entities; when there is data for the call entity of the analog, the analog data determining entity has been loaded the real data entity contents; if not, returning to the step of determining whether the analog data entity has been loaded real content data entity; if it is, return the analog data entities for calls.
2. 根据权利要求1所述的方法,其特征在于,所述响应于接收到对数据实体的多个访问请求,针对所述访问请求,返回模拟数据实体、以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问的具体实现为:产生代理对象;当代理对象接收到对数据实体的多个访问请求时,返回与所述访问请求对应的模拟数据实体、以及调用与所述代理对象关联的委托对象,基于所述多个访问请求执行对所述模拟数据实体对应的真正数据实体的并行访问; 所述异步线程,用于定时向所述委托对象请求真正数据实体,当所述委托对象访问到真正数据实体时,从所述委托对象获取其访问到的真正数据实体。 2. The method according to claim 1, wherein, in response to receiving said plurality of data entities access request for the access request, return the analog data entity, and based on the plurality of access requests, embodied performing parallel access to the real data entity corresponding to the analog data entity to: generate proxy object; when the proxy object receives a plurality of data access request entity, and return the analog data entity corresponding to the access request and invoking the delegate object associated with the proxy object, parallel access request execution of the analog data corresponding to the real data entity based on the plurality of access entities; the asynchronous thread, a timing request to the delegate object the real data entity, when the delegate object access to the real data entity, acquiring access to the real data entity from which the delegate object.
3. 根据权利要求1所述的方法,其特征在于,还设置有标志位,所述标志位用于标识所述模拟数据实体是否已载入真正数据实体的内容; 所述异步线程,还用于对所述标志位进行更新; 所述判断模拟数据实体是否已载入真正数据实体的内容,具体根据所述标志位进行判断。 3. The method according to claim 1, wherein further provided with a flag, the flag bit for identifying the data entity has been loaded simulated real content data entity; the asynchronous threads, further with to the flag to be updated; Analyzing said analog content data entity has been loaded the real data entity, be determined according to the particular flag.
4. 根据权利要求3所述的方法,其特征在于,所述异步线程,还用于在预设时长内未获取真正数据实体时,将所述标志位更新为已获取真正数据实体所对应的状态。 4. The method according to claim 3, characterized in that the asynchronous thread, but also for the duration of acquiring the real data entity is not a preset time, the flag is updated to real data acquired entity corresponding to status.
5. 根据权利要求1所述的方法,其特征在于,还包括,接收来自页面的访问请求,调用业务逻辑对所述来自页面的访问请求进行运算,生成所述对数据实体的多个访问请求; 当任意模拟数据实体已载入真正数据实体的内容时,调用业务逻辑对所任意模拟数据实体已载入的真正数据实体的内容进行运算,获得页面渲染所需的数据; 将所述页面渲染所需的数据提交给所述页面进行渲染。 5. The method according to claim 1, characterized by further comprising, receiving an access request from a page, the call service logic to access the requested page from a calculation performed to generate the request for access to a plurality of data entities ; when any analog data entity has been loaded with the contents of the real data entity, the call service logic entities of the real content data entities any analog data loaded calculates, to obtain a desired data page rendering; the page rendering the required data submitted to the page rendering.
6. —种访问数据实体的装置,其特征在于,包括: 接收单元,用于响应于接收到对数据实体的多个访问请求,针对所述访问请求返回模拟数据实体、以及基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问,其中,所述模拟数据实体内置有异步线程,所述异步线程,用于当访问到与所述模拟数据实体对应的真正数据实体时,获取所述真正数据实体的内容,将所述真正数据实体的内容载入所述模拟数据实体; 判断单元,用于当存在针对所述模拟数据实体的调用时,判断所述模拟数据实体是否已载入真正数据实体的内容; 堵塞单元,用于如果所述判断单元判定为否,重新触发所述判断单元执行; 返回单元,用于如果所述判断单元判定为是,将所述模拟数据实体返回以供调用。 6. - means for accessing data entity types, characterized by comprising: a receiving unit, in response to receiving a request for access to a plurality of data entity, return the analog data entity for the access request, based on said plurality access request, performing parallel access to the real data entity corresponding to the entity of the analog data, wherein said analog data entities built asynchronous threads, the asynchronous thread, for, when access to the data entity corresponding to the true analog when the data entity, the content acquiring real data entity, the content of the real data entity simulated loading data entities; determining means for, when the call for the presence of the analog data entity, determining the analog data entity has been loaded with the contents of the real data entity; plugging means, means for determining if the determination is no, triggering the re-execution determination unit; return unit for, if the determination means determines that, the said analog data entities returned for calling.
7. 根据权利要求6所述的装置,其特征在于,所述接收单元包括:代理产生子单元,用于产生代理对象;代理接收子单元,用于当代理对象接收到对数据实体的多个访问请求时,返回与所述访问请求对应的模拟数据实体、以及调用与所述代理对象关联的委托对象,基于所述多个访问请求,执行对所述模拟数据实体对应的真正数据实体的并行访问; 所述异步线程,用于定时向所述委托对象请求真正数据实体,当所述委托对象访问到真正数据实体时,从所述委托对象获取其访问到的真正数据实体。 7. The device according to claim 6, wherein said receiving means comprises: generating agent subunit, for generating a proxy object; proxy receiving subunit, configured to, when the proxy object receives a plurality of data entities when the access request, return the analog data corresponding to the access request entity, and invoking the delegate object associated with the proxy object, based on the plurality of access requests, the parallel execution of the real data entity corresponding to the analog data entity access; the asynchronous thread timing for a data requesting entity to the real delegate object, when the object is delegate access to the real data entity, acquiring access to the real data entity from which the delegate object.
8. 根据权利要求6所述的装置,其特征在于,还设置有标志位,所述标志位用于标识所述模拟数据实体是否已载入真正数据实体的内容; 所述异步线程,还用于对所述标志位进行更新; 所述判断单元,用于根据所述标志位判断模拟数据实体是否已载入真正数据实体的内容。 8. The apparatus according to claim 6, wherein, further provided with a flag, the flag bit for identifying the data entity has been loaded simulated real content data entity; the asynchronous threads, further with to the flag to be updated; the determining unit, said flag bit for determining whether the analog data entity has been loaded with the contents of the real data entity.
9. 根据权利要求6所述的装置,其特征在于,还包括: 页面请求接收单元,用于接收来自页面的访问请求,调用业务逻辑对所述来自页面的访问请求进行运算,生成所述对数据实体的多个访问请求; 数据实体运算单元,用于当任意模拟数据实体已载入真正数据实体的内容时,调用业务逻辑对所任意模拟数据实体已载入的真正数据实体的内容进行运算,获得页面渲染所需的数据; 提交单元,用于将所述页面渲染所需的数据提交给所述页面进行渲染。 9. The apparatus according to claim 6, characterized in that, further comprising: a page request receiving means for receiving an access request from a page, the call service logic to access the requested page from a calculation performed to generate a pair of requesting access to a plurality of data entities; physical data operation unit used when a data entity has been loaded any analog content real data entity, call the business logic of the contents of any analog data entity has been loaded the real data entity calculates to obtain the desired page rendering data; issuing unit, for the submission of data required to render the page to render the page.
CN201410153312.6A 2014-04-16 2014-04-16 A method and apparatus for accessing data entity CN105095198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410153312.6A CN105095198B (en) 2014-04-16 2014-04-16 A method and apparatus for accessing data entity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410153312.6A CN105095198B (en) 2014-04-16 2014-04-16 A method and apparatus for accessing data entity

Publications (2)

Publication Number Publication Date
CN105095198A CN105095198A (en) 2015-11-25
CN105095198B true CN105095198B (en) 2018-12-04

Family

ID=54575669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410153312.6A CN105095198B (en) 2014-04-16 2014-04-16 A method and apparatus for accessing data entity

Country Status (1)

Country Link
CN (1) CN105095198B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265489A (en) * 1999-03-01 2000-09-06 惠普公司 Management program of JAVA application program for embedded system
CN1179285C (en) * 1998-12-24 2004-12-08 计算机合伙思维公司 Computer system for dynamic command extensibility in intelligent agent
CN100543742C (en) * 2006-06-30 2009-09-23 华为技术有限公司 Method and device to transfer data by buffer technique in enterprise application frame
CN103164194A (en) * 2011-12-13 2013-06-19 成都勤智数码科技有限公司 Method and device for presenting and collecting web data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE501433C2 (en) * 1993-06-23 1995-02-13 Ellemtel Utvecklings Ab Ways to achieve data access in a primary memory based database
CN1960252A (en) * 2006-06-30 2007-05-09 南京联创科技股份有限公司 Multidimension object access control method based on roles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1179285C (en) * 1998-12-24 2004-12-08 计算机合伙思维公司 Computer system for dynamic command extensibility in intelligent agent
CN1265489A (en) * 1999-03-01 2000-09-06 惠普公司 Management program of JAVA application program for embedded system
CN100543742C (en) * 2006-06-30 2009-09-23 华为技术有限公司 Method and device to transfer data by buffer technique in enterprise application frame
CN103164194A (en) * 2011-12-13 2013-06-19 成都勤智数码科技有限公司 Method and device for presenting and collecting web data

Also Published As

Publication number Publication date
CN105095198A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US8650481B1 (en) Stable and secure use of content scripts in browser extensions
US20060271395A1 (en) Distributed object identity in a virtual machine cluster
US8904382B2 (en) Creating instances of cloud computing environments
Karmani et al. Actor frameworks for the JVM platform: a comparative analysis
US20050086237A1 (en) Shared queues in shared object space
CN101356522A (en) Dynamically repositioning workflow by end users
Gu et al. SHadoop: Improving MapReduce performance by optimizing job execution mechanism in Hadoop clusters
US20110154226A1 (en) Chip model of an extensible plug-in architecture for enterprise mashups
Liu et al. Research on development of android applications
Xu et al. Performance modeling and prediction of enterprise JavaBeans with layered queuing network templates
CA2829266A1 (en) System and method for batch evaluation programs
US8826304B2 (en) Virtual object indirection in a hosted computer environment
US8789017B2 (en) System and method for using stream objects to perform stream processing in a text-based computing environment
US9043445B2 (en) Linking instances within a cloud computing environment
CN101699405B (en) Method and device for interaction between host program and plug-in and interaction between plug-ins
US7900190B2 (en) Business object templates
CN104142858B (en) Blocking task scheduling method and apparatus
US8065659B1 (en) Method and apparatus for executing scripts within a web browser
KR101310506B1 (en) Virtual machine and programming language for event processing
US9177132B2 (en) Capturing data parameters in templates in a networked computing environment
CN1797346A (en) System and method for inducing asynchronous behavioral change in managed application process
US9215153B2 (en) Providing status information for virtual resource computing environment
JP5189986B2 (en) Extensible mechanism for object synthesis
US20120102471A1 (en) Generating specifications of client-server applications for static analysis
US20110087919A1 (en) Managing availability of a component having a closed address space

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01