CN108089852A - Establish method, medium, device and the computing device of attribute access - Google Patents

Establish method, medium, device and the computing device of attribute access Download PDF

Info

Publication number
CN108089852A
CN108089852A CN201711360143.3A CN201711360143A CN108089852A CN 108089852 A CN108089852 A CN 108089852A CN 201711360143 A CN201711360143 A CN 201711360143A CN 108089852 A CN108089852 A CN 108089852A
Authority
CN
China
Prior art keywords
attribute
access
data source
data model
data
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201711360143.3A
Other languages
Chinese (zh)
Other versions
CN108089852B (en
Inventor
勾哲华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201711360143.3A priority Critical patent/CN108089852B/en
Publication of CN108089852A publication Critical patent/CN108089852A/en
Application granted granted Critical
Publication of CN108089852B publication Critical patent/CN108089852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Embodiments of the present invention provide a kind of method for establishing attribute access.This method includes the whole attributes obtained included by the class in data model and establishes the incidence relation of each attribute and at least one attributive character in whole attributes.The method of the present invention can enable data model objects quickly and easily to obtain the ability of the self-defined mapping of attribute access, and multiple data sources can be accessed while low cost, reduce the development cost for writing data access code, and code quality and maintainability are improved, and engineering invasive is low.In addition, embodiments of the present invention additionally provide a kind of medium, device and computing device for establishing attribute access.

Description

Establish method, medium, device and the computing device of attribute access
Technical field
Embodiments of the present invention are related to art of data access, are built more specifically, embodiments of the present invention are related to one kind Method, medium, device and the computing device of vertical attribute access.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this part.
In entire art of data access, the prior art can be directed to certain specific data source, customize self-defined One data model base class, realizes the access of the attribute to the specific data source.And it is possible to by way of subclass succession Additional attribute, to realize the purpose for accessing the particular source comprehensively by the method for attribute access.
However, usually there are the attribute accesses of invasive strong, the different types of data source of engineering for this data access mode There are the shortcomings of mutual exclusion and attribute access mapping policy underaction for mapping ability.
Engineering is invasive strong, and the specific data must be obtained in a manner that subclass inherits specific base class by being embodied in object The attribute access mapping ability in source.There are the class of mass data model in existing project, the class of these data models may be Through inheriting in some base class, and other base class cannot be inherited from.Thus object can not obtain attribute access by way of succession Mapping ability.
The attribute access mapping ability of different types of data source is presented as that object must be by inheriting by force there are mutual exclusion Mode obtains the attribute access mapping ability of the particular source.If it is intended to a data model, it can attribute access data Source A can also access data source B or even data source C, it is necessary to inherit multiple base class simultaneously, in the prior art, can only pass through weight The mode of structure realizes that cost is higher.
Attribute access mapping policy underaction, be presented as can not lightweight the multiple data sources of realization combined access plan Slightly, the Dynamical Deployment ability of data source can not be realized.
The content of the invention
Therefore, it is also very desirable to a kind of improved attribute access method, so that when carrying out attribute access to particular source not Need to add attribute by way of inheriting by force, can application attribute in all classes of the particular source, and engineering invades Property is low.
In the first aspect of embodiment of the present invention, a kind of method for establishing attribute access is provided.The method bag Include the whole attributes obtained included by the class in data model and establish each attribute in whole attribute at least The incidence relation of one attributive character.
In one embodiment of the invention, whole attributes included by the class in the acquisition data model include:Pass through The mode of recursive traversal obtains all types in the data model and its attribute corresponding to parent.
In another embodiment of the invention, the recurrence cut off of the recursive traversal is the data mould of the data model The metaclass of type base class or the data model.
In another embodiment of the present invention, which further includes the storage incidence relation.
In yet another embodiment of the present invention, which further includes:It receives and accesses the data The instruction of first attribute of model, first attribute are any one attribute in whole attributes;According to the association Relation determines the attributive character of first attribute;And the attributive character according to first attribute, to first attribute It accesses.
In yet another embodiment of the present invention, when the attributive character of first attribute, which includes operation state, binds, According to the attributive character of first attribute, before accessing to first attribute, the method further includes:Determine whether In the presence of at least one data source agent agreement with the first attribute dynamic binding, the data source agent agreement is used for institute It is associated at least one data source including first attribute to state data model.
In yet another embodiment of the present invention, there is at least one data source with the first attribute dynamic binding In the case of agency agreement, according to the attributive character of first attribute, access to first attribute, including:It accesses With at least one data source agent agreement of the first attribute dynamic binding and by the data source agent agreement from institute It states and first attribute is accessed at least one data source.
In yet another embodiment of the present invention, at least one data source generation with the first attribute dynamic binding is accessed Before managing agreement, further include and establish the data source agent agreement;And first attribute and the data source agent are assisted Discuss dynamic binding.
In yet another embodiment of the present invention, there is no at least one data with the first attribute dynamic binding In the case of the agency agreement of source, according to the attributive character of first attribute, access to first attribute, including:It visits Ask at least one affiliated partner agency agreement with the first attribute dynamic binding, the affiliated partner agency agreement for pair Class in the data model adds first attribute;And it accesses described first by the affiliated partner agency agreement and belongs to Property.
In yet another embodiment of the present invention, at least one affiliated partner with the first attribute dynamic binding is accessed Before agency agreement, further include:Create the affiliated partner agency agreement;And by first attribute and the affiliated partner Agency agreement dynamic binding.
In yet another embodiment of the present invention, according to the attributive character of first attribute, to first attribute into Row accesses, including:First attribute is accessed in a manner of key-value pair.
In yet another embodiment of the present invention, first attribute is accessed in a manner of key-value pair, including with the key assignments The value of first attribute is read to mode or the value of first attribute is write in a manner of the key-value pair.
In yet another embodiment of the present invention, the value of first attribute is read in a manner of the key-value pair, including root Keyword is determined according to described instruction, and first attribute is searched by the keyword and reads the value of first attribute.
In yet another embodiment of the present invention, the value of first attribute is write in a manner of the key-value pair, including root Keyword and value corresponding with the keyword are determined according to described instruction, and first attribute is searched by the keyword and is incited somebody to action The corresponding value write-in of keyword first attribute.
In the second aspect of embodiment of the present invention, a kind of medium for establishing attribute access is provided, is stored thereon with Executable instruction, described instruction make processor perform the above-mentioned method for establishing attribute access when being executed by processor.
In the third aspect of embodiment of the present invention, a kind of device for establishing attribute access is provided.Described device bag Include attribute acquisition module and attributive character relating module.Attribute acquisition module is used to obtain complete included by the class in data model Subordinate's property.Attributive character relating module is used to establish each attribute in whole attributes and at least one attributive character Incidence relation.
In one embodiment of the invention, the attribute acquisition module obtains the whole included by the class in data model Attribute, including obtaining all types in the data source and its attribute corresponding to parent by way of recursive traversal.
In another embodiment of the present invention, the recurrence cut off of the recursive traversal is the data of the data model The metaclass of model base class or the data model.
In yet another embodiment of the present invention, described device further includes memory module.The memory module is used to store The incidence relation.
In yet another embodiment of the present invention, described device further includes access instruction receiving module, attributive character determines Module and access modules.Access instruction receiving module accesses the instruction of the first attribute of the data model, institute for reception The first attribute is stated as any one attribute in whole attributes.Attributive character determining module is used to be closed according to the association System determines the attributive character of first attribute.Access modules are used for the content of the attributive character according to first attribute, right First attribute accesses.
In yet another embodiment of the present invention, described device further includes data source agent protocol determination module.Data source Agency agreement determining module is used for when the content of the attributive character of first attribute is bound for operation state, it is determined whether is deposited In at least one data source agent agreement with the first attribute dynamic binding, the data source agent agreement is used for by described in Data model is associated at least one data source including first attribute.
In yet another embodiment of the present invention, the access modules include data source agent protocol access submodule and the One accesses submodule.Data source agent accesses submodule and is used for the presence of at least one number with the first attribute dynamic binding In the case of the agency agreement of source, at least one data source agent agreement with the first attribute dynamic binding is accessed.First Access submodule is common to accesses first attribute by the data source agent agreement from least one data source.
In yet another embodiment of the present invention, the access modules further include data source agent agreement setting up submodule, With data source agency agreement dynamic binding submodule.Data source agent agreement setting up submodule is used to establish the data source agent Agreement.Data source agent dynamic binding submodule is used to bind first attribute and the data source agent protocol dynamic.
In yet another embodiment of the present invention, the access modules include affiliated partner proxy access submodule and second Access submodule.Affiliated partner proxy access submodule is used for there is no at least one with the first attribute dynamic binding In the case of data source agent agreement, at least one affiliated partner agency agreement with the first attribute dynamic binding is accessed, The affiliated partner agency agreement is used to add first attribute to the class of the data model.Second access submodule is used for First attribute is accessed by the affiliated partner agency agreement.
In yet another embodiment of the present invention, the access modules further include affiliated partner agency agreement and create submodule Dynamic binding submodule is acted on behalf of with affiliated partner.Affiliated partner agency creates submodule for creating the affiliated partner agency association View.Affiliated partner acts on behalf of dynamic binding submodule for first attribute and affiliated partner agency agreement dynamic to be tied up It is fixed.
In yet another embodiment of the present invention, access modules are according to the attributive character of first attribute, to described One attribute accesses, including accessing first attribute in a manner of key-value pair.
In yet another embodiment of the present invention, first attribute is accessed in a manner of key-value pair, including with the key assignments The value of first attribute is read to mode or the value of first attribute is write in a manner of the key-value pair.
In yet another embodiment of the present invention, the value of first attribute is read in a manner of the key-value pair, including root Keyword is determined according to described instruction, crosses keyword lookup first attribute and reads the value of first attribute.
In yet another embodiment of the present invention, the value of first attribute is write in a manner of the key-value pair, including root Keyword and value corresponding with the keyword are determined according to described instruction, and first attribute is searched by the keyword and is incited somebody to action The corresponding value write-in of keyword first attribute.
In the fourth aspect of embodiment of the present invention, provide a kind of computing device, including one or more memories, And one or more processors.Executable instruction is stored on the memory.The processor performs the executable finger Order, to realize the above-mentioned method for establishing attribute access.
The method and apparatus for establishing attribute access of embodiment according to the present invention, can be to the whole of a data model The feature of the attribute of type and its parent is collected analysis, it is established that every in whole attributes included by the class of the data model One incidence relation between attribute and attributive character, so as to which making the object of the data model, to obtain attribute access self-defined The ability of mapping.
Further, embodiment establishes the method and apparatus of attribute access according to the present invention, as long as called one The secondary incidence relation, you can allow all objects of the data model that all there is the ability of self-defining attribute mapping.
Also, the method and apparatus for establishing attribute access of embodiment according to the present invention, belong to data model Property when accessing, can multiple data sources can be accessed while low cost by agent data agreement, and can be according to specific It is actually needed to formulate corresponding data storage scheme and access strategy.
Moreover, method and apparatus for establishing attribute access of embodiment according to the present invention, can cover most of exploitation In data access demand, developer is facilitated to add attribute and method for class, usually only needs one or two line code of simple statement. So as to can greatly reduce the development cost for writing data access code, and improve code quality and maintainability.
Description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to attached drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:
Fig. 1 schematically shows the application scenarios for establishing attribute access method and apparatus of embodiment according to the present invention Schematic diagram;
Fig. 2 schematically shows the flow chart for establishing attribute access method according to embodiments of the present invention;
Fig. 3 schematically shows the flow chart according to another embodiment of the present invention for establishing attribute access method;
Fig. 4 schematically shows the flow chart for establishing attribute access method of another embodiment according to the present invention;
Fig. 5 schematically shows the method stream to access to first attribute according to yet another embodiment of the invention Cheng Tu;
Fig. 6 A~6B diagrammatically illustrate the example for the data source agent for realizing the method implemented according to the present invention;
Fig. 7 schematically shows the method stream to access to first attribute according to yet another embodiment of the invention Journey figure
Fig. 8 A~8C diagrammatically illustrate the application example for establishing attribute access method of embodiment according to the present invention;
Fig. 9 illustrates the schematic diagram of the program product for establishing attribute access according to embodiments of the present invention;
Figure 10 diagrammatically illustrates the block diagram of the device for establishing attribute access according to embodiments of the present invention;And
Figure 11 diagrammatically illustrates the block diagram of computing device according to embodiments of the present invention.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that provide this A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention Mode limits the scope of the invention.On the contrary, these embodiments are provided so that the present invention is more thorough and complete, and energy It enough will fully convey the scope of the invention to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the present invention can be implemented as following form, i.e.,:Complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
According to the embodiment of the present invention, it is proposed that a kind of method for establishing attribute access, medium, device and calculating are set It is standby.
Herein, it is to be understood that any number of elements in attached drawing is used to example and unrestricted and any Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the present invention, the principle and spirit of the invention are illustrated in detail.
Summary of the invention
The inventors discovered that in existing attribute access method, when accessing to specific data source can only by after Some specific base class is held, the object of the data source can be made to obtain attribute access map feature.And it is this succession be must It must be realized by way of inheriting by force, and invasive strong, the attribute access mapping of engineering existing for existing attribute access method The use scope for also limiting attribute access such as dumb.
The present invention program passes through carries out an attributive analysis to data model, it is established that class in the data model Incidence relation between the corresponding attributive character of whole attributes, so that all objects of the data model obtain The ability of the self-defined mapping of attribute access is carried out by the incidence relation.Concrete operations can include to the class institute in data model Including the attributive character of whole attributes be collected, and set up each attribute in whole attributes of the class of the data model Incidence relation between attributive character.So, it is only necessary to call once the analysis method for establishing attribute access, you can allow The attribute of all objects of the data model establishes its incidence relation with corresponding attributive character.It in this way, can be greatly Convenient attribute access.
After the basic principle of the present invention is described, lower mask body introduces the various nonrestrictive embodiment party of the present invention Formula.
Application scenarios overview
With reference first to Fig. 1.
Fig. 1 schematically shows the application scenarios for establishing attribute access method and apparatus of embodiment according to the present invention Schematic diagram.
As shown in Figure 1, be equipped with application APP in user terminal 11, user passes through the APP that is installed in user terminal 11 Webpage, which is sent, to Website server 12 obtains request, the webpage that user asks is sent to user terminal 11 by Website server 12, The webpage information received is shown by the APP installed in user terminal 11.
User is operated on the APP of user terminal 11, is accessed to various data sources.Website server 12 can be with In response to user's operation, the service of various data accesses is provided to the user.
By network connection, which can be mutual for LAN, wide area network, movement for user terminal 11 and Website server 12 Networking etc..User terminal 11 can be portable equipment (such as:Mobile phone, tablet, laptop etc.), or PC (PC, Personal Computer), Website server 12 can be any server apparatus for being capable of providing website service.
It should be noted that the method for establishing attribute access that the embodiment of the present invention is provided can be by Website server 12 It performs.Correspondingly, the device for establishing attribute access that the embodiment of the present invention is provided can generally be arranged at Website server 12 In.The method of what the embodiment of the present invention was provided establish attribute access can also by be different from Website server 12 and can with Other Website servers or Website server cluster that family terminal 11 and/or Website server 12 communicate perform.Correspondingly, this hair The device of what bright embodiment was provided establish attribute access can also be arranged at different from Website server 12 and can be with user In other Website servers or Website server cluster that terminal 11 and/or Website server 12 communicate.Certainly, the present invention is implemented The method for establishing attribute access that example is provided can also be performed by user terminal 11, more specifically, by being mounted on user terminal APP on 11 is performed.Correspondingly, the device for establishing attribute access that the embodiment of the present invention is provided can also be arranged at user In terminal 11.Alternatively, the method for establishing attribute access that the embodiment of the present invention is provided can also partly be held by user terminal 11 Row, is partly performed by Website server 12.Correspondingly, the device for establishing attribute access that the embodiment of the present invention is provided can also Part is arranged in user terminal 11, is partly arranged in Website server 12.
It should be understood that the number of the user terminal, network and Website server in Fig. 1 is only schematical.According to reality It now needs, can have any number of terminal device, network and server.
Illustrative methods
With reference to the application scenarios of Fig. 1, the use of illustrative embodiments according to the present invention is described with reference to other accompanying drawings In the method for establishing attribute access.It should be noted that above application scene be for only for ease of understand the present invention spirit and Principle and show, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can be applied In applicable any scene.
Fig. 2 schematically shows the flow chart for establishing attribute access method according to embodiments of the present invention.
As shown in Fig. 2, the method for establishing attribute access according to embodiments of the present invention, including operation S201 and operation S202。
In operation S201, whole attributes included by the class of data model are obtained.
In operation S202, each attribute established in whole attributes is associated at least one attributive character System.
According to an embodiment of the invention, the attributive character can include title, the access characteristics of attribute of the attribute And whether dynamic binding etc..
According to an embodiment of the invention, the method for establishing attribute access can be applied to iphone operation System, IOS system and other relevant operating systems.
Specifically, the whole attributes operated included by the class that data model is obtained in S201 can be by recursive traversal Mode obtains the attribute corresponding to all types and its parent of the data model.
Further, the recurrence cut off of the recursive traversal can be the data model data model base class, Or the metaclass of the data model.
According to an embodiment of the invention, establishing the method for attribute access needs to obtain and analyze the class institute of the data model Including whole attributes.It can search by way of recursive traversal and obtain all types of the data model and its parent institute Corresponding attribute.
In order to avoid the attribute unrelated with data access is analyzed collection, it is possible to specify the base class conduct of the data model The characteristic point of recurrence cut-off.It, can be with all in the data model if do not specify the base class of the data model The metaclass NSObject of type ends for recurrence.
Each attribute and the incidence relation of at least one attributive character in whole attributes are established in operation S202, It can be analyzed by the attributive character to each attribute, determine attributive character possessed by each attribute.These Attributive character includes and is not limited to the title of attribute, corresponding member variable name, the type of attribute, whether dynamic is tied up when running Fixed, GET method names (i.e. the title of the method for the value of the attribute of reading object), SET method names (write or assign the category of object Property value method title), access feature (strong is accessed by force, assign specifies access, weak it is weak access, copy replicate, The mono- originals of nonatomic give access etc.).
A series of indexes are established according to the incidence relation of each attribute and at least one attributive character, to optimize in attribute The attributive character of attribute is conveniently and efficiently got during access.
The method according to an embodiment of the invention for establishing attribute access, can the data model base class for the first time by It performs, can also be performed in object initialization during use, attribute access possibly even is being carried out to the data model It performs before.
It is according to an embodiment of the invention to establish the method for attribute access, as long as being performed once, you can make the number The ability of the self-defined mapping of attribute access is obtained according to whole objects of model.
Fig. 3 schematically shows the flow chart according to another embodiment of the present invention for establishing attribute access method.
As shown in figure 3, according to another embodiment of the present invention establish attribute access method division operation S201 and operation S202 Afterwards, operation S303 is further included.
In operation S303, the incidence relation is stored.
In order not to limit the calling of the incidence relation to being established in operation S202, the incidence relation can be delayed It deposits, so that a series of calling of indexes such as the incidence relation is from the data model of calling and the limitation on calling opportunity.
Of course it is to be understood that incidence relation can be a series of part in indexes as previously described, therefore, in storage institute While stating incidence relation, other mapping relations in this series of index can also be stored simultaneously, in case calling.
According to embodiments of the present invention, method for establishing attribute access, by being carried out to the data model to be analyzed Attributive analysis so that all objects of the data model obtain the ability of the self-defined mapping of attribute access, while will not Cause unnecessary consumption.Because the method for establishing attribute access does not limit a series of calling of indexes such as the incidence relation Data model and calling opportunity, the self-defined mapping of attribute access can only be obtained by way of inheriting by force by having broken the prior art The limitation of ability.
Fig. 4 schematically shows the flow chart for establishing attribute access method of another embodiment according to the present invention.
As shown in figure 4, according to the present invention another embodiment establish attribute access method division operation S201 and operation S202 Outside, operation S403~operation S405 is further included.
In operation S403, the instruction for the first attribute for accessing the data model is received, first attribute is described complete Any one attribute in subordinate's property.
In operation S404, according to the incidence relation, the attributive character of first attribute is determined.
In operation S405, according to the attributive character of first attribute, access to first attribute.
It according to an embodiment of the invention, can be with when this is established attribute access method and carries out attribute access to the data model Attribute access is carried out to the first attribute according to the attributive character of corresponding first attribute in access instruction, is had general, pervasive Attribute access ability.
For example, when the first attribute is that there is no (be, for example, to have in data model described in first attribute during attributive character Attribute), can first attribute be accessed from the data model by existing access mode in the prior art.When the first category Property have attributive character, and for dynamic binding when, can access at other data sources or by giving the data model Class add the mode of first attribute and access.General, pervasive attribute access is carried out in this way, it is possible to realize.
According to an embodiment of the invention, when the attributive character of first attribute, which includes operation state, binds, operating Before S405, the attribute access method of establishing further includes operation S406.
In operation S406, it is determined whether exist and assisted at least one data source agent of the first attribute dynamic binding View, the data source agent agreement are used for the data model is related at least one data source including first attribute Connection.
According to an embodiment of the invention, operate S405 and access first attribute, including accessing first in a manner of key-value pair Attribute.
Specifically, first attribute is accessed in a manner of key-value pair, including reading described first in a manner of the key-value pair The value (the GET methods that i.e. key-value pair mode accesses) of attribute or the value that first attribute is write in a manner of the key-value pair (the SET methods that i.e. key-value pair mode accesses).
The value of first attribute is read in a manner of the key-value pair, including determining keyword according to described instruction, passing through The keyword searches first attribute and reads the value of first attribute.
The value of first attribute is write in a manner of the key-value pair, including according to described instruction determine keyword and with this The corresponding value of keyword searches first attribute by the keyword and will be described in the corresponding value write-in of the keyword First attribute.
Specifically, the realization for operating S405 may be referred to Fig. 5 or two kinds of different method flow realizations shown in Fig. 7.
An embodiment according to the present invention, when the content of the attributive character of first attribute is bound for operation state, In the case of at least one data source agent agreement with the first attribute dynamic binding, operation S405 can pass through figure Method flow shown in 5 is realized.
Fig. 5 schematically shows in operation S405 middle according to yet another embodiment of the invention and first attribute is visited The method flow diagram asked.
As shown in figure 5, when first attribute attributive character content for operation state bind when, exist with it is described In the case of at least one data source agent agreement of first attribute dynamic binding, operation S405 can include operation S4151~ Operate S4152.
In operation S4151, at least one data source agent agreement with the first attribute dynamic binding is accessed.
In operation S4152, at least one first attribute according in source is accessed by the data source agent.
According to an embodiment of the invention, when operation S405 accesses to first attribute, first access and described first At least one data source agent of attribute dynamic binding, then accessed by the data source agent at least one data source First attribute.
According to an embodiment of the invention, can simultaneously be accessed in one or more kinds of data sources by the data source agent First attribute.
The data source can include data file, database or program code etc..
The data source agent dynamic can also be replaced when program is run, and realize the Dynamical Deployment of data policy.
The data source agent can access a variety of data sources simultaneously.
By this method, multiple numbers can be accessed while low cost using the data source agent agreement when carrying out data access According to source, and corresponding data storage scheme and access strategy can be formulated according to specific actual needs.
In some embodiments, at least one data source with the first attribute dynamic binding is accessed in operation S4151 Before agency agreement, the data source agent agreement can also be established and by first attribute and the data source agent Agreement carries out dynamic binding.
According to an embodiment of the invention, the dynamic binding of first attribute and the data source agent agreement is established, from And allow to access first attribute from one or more data sources by the data source agent agreement.
According to an embodiment of the invention, the data source agent agreement can belong to according to the first attribute, dynamic binding first Property with the GET methods of first attribute and SET methods.
According to an embodiment of the invention, the data source agent agreement dynamic can also be replaced when program is run, and be realized The Dynamical Deployment of data policy.Which kind of in a particular application, configured that data source agent agreement is selected to carry out according to demand It is specific to access.
Below with reference to the signal of Fig. 6 A~6B, the method shown in Fig. 5 is described further in conjunction with specific embodiments.
Fig. 6 A~6B diagrammatically illustrate the example for the data source agent for realizing the method implemented according to the present invention.
For example, in the prior art, (KVC is the abbreviation of Key Value Coding, and Chinese is entitled in a manner of key-value pair KVC Key assignments encodes, and is a kind of machine that generic attribute can be directly accessed by the name Key of character string that Objective-C is provided System) access attribute, the incoming following two KVC GET/SET methods of from the base class to data model can be given tacit consent to:
-(id)valueForKey:(NSString*)key;
-(void)setValue:(nullable id)value forKey:(NSString*)key;.
According to an embodiment of the invention, the KVC GET/SET sides provided in this programme Fig. 6 A- Fig. 6 B are operationally provided Method, can be according to the instruction of the first attribute of the access data model of reception, to judge the first attribute in the instruction Attributive character (such as the Property Name of the first attribute, attribute type and whether dynamic binding etc.).
By the substitute mode of such as Fig. 6 A~6B, the attribute that can intercept and capture the first attribute in the instruction of attribute access is special Sign, and data flow will be accessed and be directed toward desired data source.For example, when the first attribute there is no attributive character or is not dynamic During the attribute of binding, it is possible to be accessed by prior art attribute access mode.If when the attributive character of the first attribute is During dynamic binding, it can be accessed by data source agent agreement associated with first attribute, dynamic binding including this At least one data source of first attribute.
The displacement opportunity of the KVC GET/SET methods of this programme provided in Fig. 6 A~6B can select for example establishing institute It is carried out when stating each attribute and the incidence relation of at least one attributive character in whole attributes.Furthermore it is possible to only for number According to the base class of model into line replacement, so as to avoid replacing metaclass NSObject as far as possible, the coverage of displacement is reduced.
As shown in Figure 6A, process can be sketched as incoming keyword key, return the GET methods of data source agent agreement The corresponding value of key in the data source.
A kind of data model therein realization method shown partially for data source agent agreement GET methods.
As shown in Figure 6B, process can be sketched to be passed to key and value data source agent agreement SET methods, will Value remains to the corresponding positions of key in data source.
A kind of data model therein realization method shown partially for data source agent SET methods.
As shown in Figure 6 A and 6B, the access strategy of data source agent 1 therein is to access multiple data sources, data source agent 2 access strategy is to access a kind of data source.Also, in the process of running, data source agent can be cut according to requirements for access It is changed to data source agent agreement 1 or data source agent agreement 2.
It is appreciated that being merely illustrative description shown in Fig. 6 A and 6B, the restriction to the present invention program should not be used as.
According to an embodiment of the invention, as long as having access to the data source of the data source agent agreement, mould can be accessed Type base class, so as to pass through attribute access dynamic mapping to data source.
According to an embodiment of the invention, data model during attribute access is carried out in the attribute access method shown in Fig. 5 Multiple data source agent agreements can be connected, and can a variety of data be accessed by data source agent agreement simultaneously Source, while as shown in Figure 6 A and 6B.
Further, data source agent agreement can also be during called side accesses the data model with journey The operation state displacement of sequence, to realize the Dynamical Deployment of data policy.By this method so that data model can be inexpensive is same When access multiple data sources, and corresponding data storage scheme and access strategy can be formulated according to specific actual needs.
Another embodiment according to the present invention, when the attributive character of first attribute, which includes operation state, binds, not In the case of at least one data source agent agreement with the first attribute dynamic binding, operation S405 can pass through figure Method flow shown in 7 is realized.
Fig. 7 schematically shows in operation S405 according to yet another embodiment of the invention and first attribute is visited The method flow diagram asked.
As shown in fig. 7, when first attribute attribute include operation state bind when, there is no with described first belong to Property dynamic binding at least one data source agent agreement in the case of, operation S405 can include operation S4251 and operation S4252。
In operation S4251, at least one affiliated partner agency agreement with the first attribute dynamic binding is accessed, it is described Affiliated partner agency agreement is used to add first attribute to the class in the data model;
In operation S4252, first attribute is accessed by the affiliated partner agency agreement.
According to an embodiment of the invention, in some embodiments before S4251 is operated, can also include creating the pass Join object broker agreement and by first attribute and the affiliated partner agency agreement dynamic binding.
It can be such as one metaclass NSObject affiliated partner agency agreement of establishment to establish affiliated partner agency agreement. Can attribute (such as NSObject) be added to the existing class of a data model by Category in Objective-C, still It is indirect with Associated Object when cannot but add instance variable, however can run by way of key-value pair access Ground achievees the purpose that add respective instance variable.By affiliated partner agency agreement, the class of the data model can be given to add First attribute, so as to pass through the first attribute described in the affiliated partner protocol access.
The affiliated partner agency agreement can be stated to realize by simple one or two row, by data model script Some no attribute informations are added to the data model.It is thus possible to expand the attribute access ability of the data model, So that by during data model, can not only access the existing category of non-dynamic binding in the data model described in attribute access Property, it can also access and the attribute by the affiliated partner agency agreement dynamic binding.
Fig. 5 and the two methods shown in Fig. 7 to access to first attribute can be the first of called side access Attribute carries out when being dynamic binding, and difference lies in the method shown in Fig. 5 is applied to the feelings there are data source agent agreement to the two Shape, although method shown in Fig. 7 is applied to the situation there is no data source agent, there are the feelings of affiliated partner agency agreement Shape.
According to an embodiment of the invention, this, which is established attribute access method and provides a kind of general, pervasive attribute access, reflects Penetrate strategy.For example, when called side access the first attribute there is no attributive character or be dynamic binding attribute when (example Such as first attribute is the attribute that the data model is had by oneself), it can be by existing mode in the prior art from the data mould First attribute is accessed in type.Alternatively, when the first attribute there are attributive character, and for dynamic binding attribute when, can pass through Data source agent agreement associated with first attribute accesses first attribute at other at least one data sources.Again or Person, when which belongs to the attribute of dynamic binding but data source agent agreement associated with first attribute is not present, Can first attribute be added to the class of the data model by affiliated partner agency agreement, so as to visit first attribute It asks.By this method, the method according to an embodiment of the invention for establishing attribute access can realize that progress is general, pervasive Attribute access.
Fig. 8 A~8C diagrammatically illustrate the application example for establishing attribute access method of embodiment according to the present invention.
As shown in Figure 8 A, when to read the value of the first attribute, according to an embodiment of the invention, a key assignments can be created To the GET methods of access.Such as create corresponding "-(id) valueForKey:(NSString*)key;" method of replacing, rear letter Claim displacement GET methods.
In operation S403, the instruction for the value that read the first attribute is received.The instruction can be obtained according to the instruction to be visited The keyword KEY for the first attribute asked.
In operation S404, according to the incidence relation established in S202 is operated, the keyword of first attribute is determined The corresponding attributive character of KEY.
S405 is being operated, according to the content of the corresponding attributive character of keyword KEY, the value of reading first attribute.
Specifically, a) be not if there is no attributive character or dynamic binding attribute.Then using of the prior art The KVC GET methods of system for the self-defined data model base class of specific data source, are realized to the specific data source Attribute access.For example, "-(id) valueForKey using acquiescence:(NSString*)key;" system KVC GET methods It accesses.
B) if there is attributive character, and it is the attribute of dynamic binding, i.e., it is@dynamic that attribute is stated in code.
Then check for the situation of the data source agent agreement of the method shown in Fig. 6 A.Such as there are data source agent associations View, then by the GET methods of data source agent agreement, access according to the method flow shown in Fig. 5.
Such as there is no available data source agent agreement, then by method shown in Fig. 7, the affiliated partner generation is utilized Reason agreement GET methods access.
Correspondingly, situation when Fig. 8 B are shown to the first attribute assignment.
As shown in Figure 8 B, according to an embodiment of the invention, the SET methods that a key-value pair accesses can be created.Such as it creates Build corresponding "-(void) setValue:(nullable id)value forKey:(NSString*)key;" method of replacing, SET methods are referred to as replaced afterwards.
In operation S403, reception will be to the instruction of the first attribute assignment.Accessed first can be obtained according to the instruction The corresponding value of keyword KEY and keyword KEY of attribute.
In operation S404, according to the incidence relation established in S202 is operated, the keyword KEY of the first attribute is determined Corresponding attributive character.
In operation S405, according to the corresponding attributive character of keyword KEY, the corresponding values of keyword KEY are arranged to The value of first attribute.
Specifically, a) be not if there is no attributive character or dynamic binding attribute.
The KVC SET methods of system of the prior art are then utilized, for the self-defined data mould of specific data source Type base class is configured the value of the first attribute in the specific data source.For example, "-(void) using acquiescence setValue:(nullable id)value forKey:(NSString*)key;" system KVC SET methods access.
B) if there is attributive character, and it is the attribute of dynamic binding.
Then check for the situation of the data source agent agreement of the method shown in Fig. 6 B.Such as there are data source agent associations View, then by the SET methods of data source agent agreement, access according to the method flow shown in Fig. 5.
As crossed there is no available data source agent agreement, then by method shown in Fig. 7, the affiliated partner is utilized Agency agreement SET methods access.
As shown in Figure 8 C, the method for establishing attribute according to embodiments of the present invention, by analyzing institute in the data model Attributive character possessed by having the corresponding attribute of type and its parent, can make by oneself free burial ground for the destitute establish each attribute at least The incidence relation of one attributive character.It is thus possible to being used as index by the incidence relation makes whole objects of the data model Corresponding attribute mapping access ability has been respectively provided with, efficiently attribute access can be carried out.
According to Fig. 8 C, the base class of data model can be analyzed, determine whether the base class of the data model is put Changed KVC GET/SET method of this programme with reference to figure 6A and 6B.If transposed, illustrate the base class energy of the data model The attributive character of the first attribute in enough attribute access instructions for effectively intercepting and capturing called side, and it is directed toward us by data flow is accessed Desired data source.
After the KVC GET/SET methods of transposed this programme, whether all classes for analyzing data model establish attribute With the incidence relation of attributive character, i.e., whether performed operation S201 and operation S202.
If being not carried out, operation S201 and operation S202 are performed, establishes between attribute and attributive character and associates pass System, such as by all types in data model described in recursive analysis and its attribute of parent, until the base class of data model.Or Person, further the displacement GET methods without the attribute for binding GET methods, then dynamic binding acquiescence, alternatively, not binding The displacement SET methods of the attribute of SET methods, then dynamic binding acquiescence.Afterwards, it is possible to the side provided according to embodiments of the present invention Method, carry out universally, pervasively dynamic access.
If performing operation S201 and operation S202, which has had been provided with the energy of self-defining attribute mapping Power.The method that can be provided according to embodiments of the present invention, carry out universally, pervasively dynamic access.
For example, if the attribute of dynamic binding, and GET or SET methods are not set in compiling, then according to the present invention Embodiment, the flow that can be illustrated by Fig. 8 C, to the base class bind properties access method of data model, so that data source It can be accessed by Fig. 5 or shown in Fig. 7 methods.
According to an embodiment of the invention, for the attribute of statement dynamic binding, it may not be necessary to write the GET/SET of affiliated partner Method, you can carry out attribute access operation, be particularly suitable for through classification mode, increase attribute for already existing model class, subtract Few size of code, promotes development efficiency.
Exemplary media
After the method for exemplary embodiment of the invention is described, next, with reference to figure 9 to the exemplary reality of the present invention Apply mode, be introduced for establishing the program product 900 of attribute access.
Fig. 9 illustrates the schematic diagram of the program product 900 for establishing attribute access according to embodiments of the present invention.
Executable instruction is stored in the program product 900.These instructions cause computing device when being executed by processor It performs with reference to the described methods for establishing attribute access of 2~Fig. 8 of figure C.
For example, the computing device can perform operation S201 as shown in Figure 2:Included by the class for obtaining data model Whole attributes;And operation S202:Establish each attribute in whole attributes and the pass of at least one attributive character Connection relation.
Any combination of one or more readable mediums may be employed in described program product.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device or arbitrary above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection, portable disc with one or more conducting wires, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 9, the program product 900 for being used to establish attribute access according to the embodiment of the present invention is described, It may be employed portable compact disc read only memory (CD-ROM) and including program code, and can in computing device, such as It is run on PC.However, the program product of the present invention is without being limited thereto, in this document, readable storage medium storing program for executing can be appointed What includes or stores the tangible medium of program, the program can be commanded execution system, device either device use or and its It is used in combination.
Readable signal medium can be included in a base band or as the data-signal that a carrier wave part is propagated, wherein carrying Readable program code.Diversified forms may be employed in the data-signal of this propagation, believe including --- but being not limited to --- electromagnetism Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can Read medium, which can send, propagate either transmit to be used by instruction execution system, device or device or Program in connection.
The program code included on readable medium can be transmitted with any appropriate medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
It can write to perform the program that operates of the present invention with any combination of one or more programming languages Code, described program design language is including object oriented program language --- such as Java, C++ etc. further include routine Procedural programming language one-such as " C ", language or similar programming language.Program code can fully exist It performs in user calculating equipment, partly perform on a user device, part performs or exists completely on a remote computing It is performed on remote computing device or server.In the situation for being related to remote computing device, remote computing device can be by appointing The network for species of anticipating --- user calculating equipment is connected to including LAN (LAN) or wide area network (WAN)-mono-, alternatively, can be with It is connected to external computing device (such as passing through Internet connection using ISP).
Exemplary means
After the medium of exemplary embodiment of the invention is described, next, exemplary to the present invention with reference to figure 10 Embodiment, be described for establishing the device 1000 of attribute access.
Figure 10 diagrammatically illustrates the block diagram of the device 1000 for establishing attribute access according to embodiments of the present invention.
The device 1000 can be used to implement with reference to the described methods for establishing attribute access of 2~Fig. 8 of figure C.
As shown in Figure 10, which includes attribute acquisition module 1010 and attributive character relating module 1020.
Attribute acquisition module 1010 is used to obtain whole attributes included by the class of data model.
Attributive character relating module 1020 is used to establish each attribute in whole attributes and at least one attribute The incidence relation of feature.
According to an embodiment of the invention, the attribute acquisition module obtains whole attributes included by the class of data model, Including by way of recursive traversal, obtaining the attribute corresponding to all types and its parent of the data model.
Further, the recurrence cut off of the recursive traversal can be the base class of the data model or described The metaclass of data model.
According to an embodiment of the invention, which can also include memory module 1030.Memory module 1030 is used for Store the incidence relation.
According to an embodiment of the invention, which can also include access instruction receiving module 1040, attributive character Determining module 1050 and access modules 1060.
Access instruction receiving module 1040 is for receiving the instruction for the first attribute for accessing the data model, and described first Attribute is any one attribute in whole attributes.
Attributive character determining module 1050 is used to, according to the incidence relation, determine the attributive character of first attribute.
Access modules 1060 are used for the attributive character according to first attribute, access to first attribute.
According to an embodiment of the invention, which further includes data source agent protocol determination module 1070.
Data source agent protocol determination module 1070 is used for when the content of the attributive character of first attribute is dynamic for operation When state is bound, it is determined whether there are at least one data source agent agreement with the first attribute dynamic binding, the data Source agency agreement is used for the data model is associated at least one data source including first attribute.
According to an embodiment of the invention, which can include data source agent protocol access submodule and the One accesses submodule.
In addition, the access modules 1060 can also include data source agent setting up submodule and data source agency agreement dynamic Bind submodule.
Data source agent accesses submodule and is used for when the attributive character of first attribute includes operation state binding, In the case of at least one data source agent agreement with the first attribute dynamic binding, access and first attribute At least one data source agent agreement of dynamic binding.
First access submodule is used to access institute from least one data source by the data source agent agreement State the first attribute.
Data source agent agreement setting up submodule is used to establish the data source agent agreement;And
Data source agent protocol dynamic binding submodule is used to move first attribute and the data source agent agreement State is bound.
Alternatively, according to another embodiment of the present invention, which can include affiliated partner and access submodule Submodule is accessed with second.It creates submodule in addition, the access modules 1060 can also include affiliated partner agency and associates pair As acting on behalf of dynamic binding submodule.
Affiliated partner accesses submodule and is used for when the content of the attributive character of first attribute is bound for operation state, In the case of there is no at least one data source agent agreement with the first attribute dynamic binding, access and described first At least one affiliated partner agency agreement of attribute dynamic binding, the affiliated partner agency agreement are used for the data model Class add first attribute.
Second, which accesses submodule, is used to access first attribute by the affiliated partner agency agreement.
Affiliated partner agency creates submodule, for creating the affiliated partner agency agreement.
Affiliated partner acts on behalf of dynamic binding submodule, for first attribute and the affiliated partner agency agreement to be moved State is bound.
According to an embodiment of the invention, the first attribute described in the access submodule block access, including being visited in a manner of key-value pair Ask first attribute.
Specifically, first attribute is accessed in a manner of key-value pair, including reading described first in a manner of the key-value pair The value of attribute or the value that first attribute is write in a manner of the key-value pair.
Further, the value of first attribute is read in a manner of the key-value pair to be included determining key according to described instruction Word searches first attribute by the keyword and reads the value of first attribute.
And the value of first attribute is write in a manner of the key-value pair, including determining keyword according to described instruction Value corresponding with the keyword searches first attribute by the keyword and writes the corresponding value of the keyword Enter first attribute.
Exemplary computer device
After method, medium and the device of exemplary embodiment of the invention is described, next, with reference to figure 11 to this Invention illustrative embodiments, 1100 being described property introduction of computing device for establishing the method for attribute access.
The embodiment of the present invention additionally provides a kind of computing device.Person of ordinary skill in the field is it is understood that this hair Bright various aspects can be implemented as system, method or program product.Therefore, various aspects of the invention can be implemented as Following form, i.e.,:Complete hardware embodiment, complete Software Implementation (including firmware, microcode etc.) or hardware and The embodiment that software aspects combine, may be collectively referred to as " circuit ", " module " or " system " here.
In some possible embodiments, computing device according to the present invention can include at least at least one processing Device and at least one processor.Wherein, the memory storage has program code, when said program code is by the processing When device performs so that the processor is performed in above-mentioned " illustrative methods " part of this specification described by 2~Fig. 8 of reference chart C The method for establishing attribute access.For example, the processor, which can perform operation S201 as shown in Figure 2, obtains data model In class included by whole attributes;And operation S202 establishes each attribute and at least one category in whole attributes The incidence relation of property feature.
Figure 11 diagrammatically illustrates the block diagram of computing device 1100 according to embodiments of the present invention.
Being set for establishing the calculating of attribute access for this embodiment according to the present invention is described referring to Figure 11 Standby 1100.Computing device 1100 as shown in figure 11 is only an example, function that should not be to the embodiment of the present invention and use Range band carrys out any restrictions.
As shown in figure 11, computing device 1100 is showed in the form of universal computing device.The component of computing device 1100 can To include but not limited to:Above-mentioned at least one processor 1110, above-mentioned at least one processor 1120, connection different system component The bus 1130 of (including memory 1120 and processor 1110).
Bus 1130 includes data/address bus, address bus and controlling bus.
Memory 1120 can include volatile memory, such as random access memory (RAM) 1121 and/or high speed are delayed Memory 1122 is deposited, can further include read-only memory (ROM) 1123.
Memory 1120 can also include program/utility with one group of (at least one) program module 1124 1125, such program module 1124 includes but not limited to:Operating system, one or more application program, other program moulds Block and program data may include the realization of network environment in each or certain combination in these examples.
Computing device 1100 can also be with one or more external equipments 1140 (such as keyboard, sensing equipment, bluetooth equipment Deng) communicate, this communication can be carried out by input/output (I/0) interface 1150.Also, computing device 1100 can also lead to Cross network adapter 1160 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown in the figure, network adapter 1160 is led to by bus 1130 and other modules of computing device 1100 Letter.It should be understood that although not shown in the drawings, can combine computing device 1100 use other hardware and/or software module, including But it is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive And data backup storage system etc..
It should be noted that although several units/modules of device or subelement/submodule are referred in above-detailed Block, but it is this division be merely exemplary it is not enforceable.In fact, it according to the embodiment of the present invention, retouches above The feature and function for two or more units/modules stated can embody in a units/modules.It is conversely, described above A units/modules feature and function can be further divided into being embodied by multiple units/modules.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or The operation that these operations must be performed or have to carry out shown in whole according to the particular order by implying could be realized desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and performed and/or by one by some steps Step is decomposed into execution of multiple steps.
Although describe spirit and principles of the present invention by reference to several specific embodiments, it should be appreciated that, this Invention is not limited to disclosed specific embodiment, does not also mean that the feature in these aspects cannot to the division of each side Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and In the range of included various modifications and equivalent arrangements.

Claims (10)

1. a kind of method for establishing attribute access, including:
Obtain whole attributes included by the class in data model;
Establish each attribute and the incidence relation of at least one attributive character in whole attributes.
2. according to the method described in claim 1, wherein, obtaining whole attributes included by the class in data model includes:
By way of recursive traversal, the attribute corresponding to all types and its parent of the data model is obtained.
3. according to the method described in claim 2, wherein:
The recurrence cut off of the recursive traversal is the base class of the data model or the metaclass of the data model.
4. it according to the method described in claim 1, further includes:
The instruction for the first attribute for accessing the data model is received, first attribute is any one in whole attributes A attribute;
According to the incidence relation, the attributive character of first attribute is determined;And
According to the attributive character of first attribute, access to first attribute.
5. according to the method described in claim 4, wherein, when the attributive character of first attribute includes operation state binding When, according to the attributive character of first attribute, before accessing to first attribute, the method further includes:
Determine whether there is at least one data source agent agreement with the first attribute dynamic binding, the data source agent Agreement is used for the data model is associated at least one data source including first attribute.
6. according to the method described in claim 5, wherein, there are at least one data with the first attribute dynamic binding In the case of the agency agreement of source, according to the attributive character of first attribute, access to first attribute, including:
Access at least one data source agent agreement with the first attribute dynamic binding;And
First attribute is accessed from least one data source by the data source agent agreement.
7. according to the method described in claim 5, wherein, there is no at least one numbers with the first attribute dynamic binding In the case of according to source agency agreement, according to the attributive character of first attribute, access to first attribute, including:
Access at least one affiliated partner agency agreement with the first attribute dynamic binding, the affiliated partner agency agreement For adding first attribute to the class in the data model;And
First attribute is accessed by the affiliated partner agency agreement.
8. a kind of medium for establishing attribute access, is stored thereon with executable instruction, described instruction makes when being executed by processor Processor perform claim requires the method described in 1~7 any one.
9. a kind of device for establishing attribute access, including:
Attribute acquisition module, for obtaining whole attributes included by the class in data model;
Attributive character relating module, for establishing each attribute and the pass of at least one attributive character in whole attributes Connection relation.
10. a kind of computing device, including:
One or more memories, are stored with executable instruction;
One or more processors perform the executable instruction, to realize the side described in claim 1~7 any one Method.
CN201711360143.3A 2017-12-15 2017-12-15 Method, medium, apparatus and computing device for establishing attribute access Active CN108089852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711360143.3A CN108089852B (en) 2017-12-15 2017-12-15 Method, medium, apparatus and computing device for establishing attribute access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711360143.3A CN108089852B (en) 2017-12-15 2017-12-15 Method, medium, apparatus and computing device for establishing attribute access

Publications (2)

Publication Number Publication Date
CN108089852A true CN108089852A (en) 2018-05-29
CN108089852B CN108089852B (en) 2020-08-04

Family

ID=62176613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711360143.3A Active CN108089852B (en) 2017-12-15 2017-12-15 Method, medium, apparatus and computing device for establishing attribute access

Country Status (1)

Country Link
CN (1) CN108089852B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727482A (en) * 2018-07-16 2020-01-24 阿里巴巴集团控股有限公司 Interface updating method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071805A1 (en) * 2003-09-30 2005-03-31 Johannes Lauterbach Developing applications using a metamodel
CN103914456A (en) * 2012-12-31 2014-07-09 北京中交兴路信息科技有限公司 Data storage method and system
CN104216708A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Method and device for data monitoring

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071805A1 (en) * 2003-09-30 2005-03-31 Johannes Lauterbach Developing applications using a metamodel
CN103914456A (en) * 2012-12-31 2014-07-09 北京中交兴路信息科技有限公司 Data storage method and system
CN104216708A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Method and device for data monitoring

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727482A (en) * 2018-07-16 2020-01-24 阿里巴巴集团控股有限公司 Interface updating method and device
CN110727482B (en) * 2018-07-16 2023-05-12 阿里巴巴集团控股有限公司 Interface updating method and device

Also Published As

Publication number Publication date
CN108089852B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US10942708B2 (en) Generating web API specification from online documentation
US8756407B2 (en) Configuration rule prototyping tool
US20210149645A1 (en) System, method, and apparatus for data-centric networked application development services
CN110321374B (en) Standard file IO operating system and method based on distributed network
CN107133263A (en) POI recommends method, device, equipment and computer-readable recording medium
US20200302350A1 (en) Natural language processing based business domain modeling
US10691764B2 (en) Search engine optimization techniques
JP2022530440A (en) Debugging on-premises and off-premises
CN113742005A (en) Platform docking method and device
CN113778897B (en) Automatic test method, device and equipment for interface and storage medium
CN109450736A (en) Network interface test method and device, medium and calculating equipment
CN113268243A (en) Memory prediction method and device, storage medium and electronic equipment
CN116244387A (en) Entity relationship construction method, device, electronic equipment and storage medium
CN112765368B (en) Knowledge graph establishment method, device, equipment and medium based on industrial APP
CN108089852A (en) Establish method, medium, device and the computing device of attribute access
CN115136230A (en) Unsupervised singing voice conversion based on tone confrontation network
CN117008920A (en) Engine system, request processing method and device, computer equipment and storage medium
CN107169005A (en) POI recommends method, device, equipment and computer-readable recording medium
US9519566B2 (en) Modeling memory use of applications
CN105227608A (en) For developing the method and apparatus enriching internet, applications
US11636111B1 (en) Extraction of relationship graphs from relational databases
US11907711B2 (en) Fast porting of projects
CN109408057A (en) Method, apparatus, medium and the calculating equipment of automatic code generating
JP2024508412A (en) Generating natural language interfaces from graphical user interfaces
US11650954B2 (en) Replication continued enhancement method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant