CN105488117A - User-defined object processing method and apparatus - Google Patents
User-defined object processing method and apparatus Download PDFInfo
- Publication number
- CN105488117A CN105488117A CN201510818792.8A CN201510818792A CN105488117A CN 105488117 A CN105488117 A CN 105488117A CN 201510818792 A CN201510818792 A CN 201510818792A CN 105488117 A CN105488117 A CN 105488117A
- Authority
- CN
- China
- Prior art keywords
- defined object
- self
- described self
- data list
- configuration file
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2291—User-Defined Types; Storage management thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Embodiments of the invention provide a user-defined object processing method and apparatus, which relate to the technical field of computers and are used for improving the reliability of a research and development process and improving the efficiency of research and development. The method comprises: obtaining an access data list of a user-defined object from a database, wherein the access data list records data information of different fields corresponding to the user-defined object stored in the database; obtaining a configuration file of the user-defined object, wherein the configuration file of the user-defined object records corresponding relationships between each attribute of the user-defined object and different fields of the database; according to the configuration file of the user-defined object, packaging the data information of the different fields recorded in the access data list of the user-defined object into the user-defined object; and outputting the user-defined object in which the data information of the different fields recorded in the access data list of the user-defined object is packaged. The user-defined object processing method and apparatus are suitable for data automatic return scenes.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of disposal route and device of self-defined object.
Background technology
Along with the development of science and technology, data volume increases fast, makes the use of database more and more extensive.In system research and development common at present, database access is very common.In database access frequently system, the use of the persistence frameworks such as Hibernate is very extensive.Use persistence framework very simple to the operation of entity object, but when system research and development, research staff and foreground are carried out in mutual process, a usage data storehouse entity object is difficult to meet diversified demand.Therefore research staff is in order to meet diversified demand, usually needs self-defined object.And after carrying out database access, because each attribute of self-defined object cannot be corresponding with the data in database, therefore research staff needs the manual data returned by accessing database to correspond in the attribute of self-defined correspondence, just can complete returning of the various property values of self-defined object.State process in realization, the data returned by database needing research staff manual correspond in the attribute of self-defined correspondence, make the operation returning self-defining object in database access process relatively loaded down with trivial details, reduce the reliability of R&D process, and greatly reduce efficiency of research and development.
Summary of the invention
Embodiments of the invention provide a kind of disposal route and device of self-defined object, in order to improve the reliability of R&D process, improve efficiency of research and development.
For achieving the above object, embodiments of the invention adopt following technical scheme:
Embodiments provide a kind of disposal route of self-defined object, comprising: the visit data list being obtained from defining objects from database; The data message of different field corresponding to the described self-defined object that stores in database is recorded in described visit data list; Obtain the configuration file of described self-defined object; The corresponding relation between each attribute of described self-defined object and the different field of database is have recorded in the configuration file of described self-defined object; According to the configuration file of described self-defined object, by the data message of different field recorded in the visit data list of described self-defined object, be encapsulated in described self-defined object; Export the self-defined object encapsulating the data message of the different field recorded in the visit data list of described self-defined object.
Further, the described configuration file according to described self-defined object, by the data message of different field recorded in the visit data list of described self-defined object, be encapsulated into described self-defined object to comprise: according to the configuration file of described self-defined object, determine the field name that each attribute of described self-defined object is corresponding, the field name corresponding according to each attribute of described self-defined object, the data message of the different field recorded in the visit data list of described self-defined object, determine the data message of the field that each attribute of described self-defined object is corresponding, the data message of field corresponding for each attribute of described self-defined object is packaged into described self-defined object.
Further, described be obtained from the visit data list of defining objects before, also comprise: receive application layer send the request message being obtained from defining objects; The described visit data list being obtained from defining objects comprises: according to the described request message being obtained from defining objects, is obtained from the visit data list of defining objects; The self-defined object that described output encapsulates the data message of the different field recorded in the visit data list of described self-defined object comprises: the described self-defined object encapsulating the data message of the different field recorded in the visit data list of described self-defined object is sent to described application layer.
Further, embodiments provide a kind of DAA, comprising: acquiring unit, for being obtained from the visit data list of defining objects from database; The data message of different field corresponding to the described self-defined object that stores in database is recorded in described visit data list; Described acquiring unit, also for obtaining the configuration file of described self-defined object; The corresponding relation between each attribute of described self-defined object and the different field of database is have recorded in the configuration file of described self-defined object; Processing unit, the configuration file of described self-defined object also for obtaining according to described acquiring unit, the data message of the different field recorded in the visit data list of the described self-defined object obtained by described acquiring unit, is encapsulated in described self-defined object; Output unit, for exporting the self-defined object of the data message encapsulating the different field recorded in the visit data list of described self-defined object.
Further, described processing unit, specifically for the configuration file of described self-defined object obtained according to described acquiring unit, determine the field name that each attribute of described self-defined object is corresponding, the field name corresponding according to each attribute of described self-defined object, the data message of the different field recorded in the visit data list of the described self-defined object obtained at described acquiring unit, determines the data message of the field that each attribute of described self-defined object is corresponding; The data message of field corresponding for each attribute of described self-defined object is packaged into described self-defined object.
Further, also comprise: receiving element, for receiving the request message being obtained from defining objects that application layer sends; Described acquiring unit, specifically for being obtained from the request message of defining objects described in receiving according to described receiving element, is obtained from the visit data list of defining objects; Described output unit, specifically for being sent to described application layer by the described self-defined object encapsulating the data message of the different field recorded in the visit data list of described self-defined object.
Embodiments provide a kind of disposal route and device of self-defined object, comprising: the visit data list being obtained from defining objects; Be obtained from the configuration file of defining objects; Wherein, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in the configuration file of self-defined object; According to the configuration file of self-defined object, by the data message of different field recorded in the visit data list of self-defined object, be encapsulated in self-defined object; Export the self-defined object encapsulating the data message of the different field recorded in the visit data list of self-defined object.Like this, in the present invention, after DAA can obtain the visit data list of self-defined object in a database, obtain the configuration file of this self-defined object, and then can according to the configuration file of self-defined object, by the data encapsulation that records in the visit data list of self-defined object in self-defined object, thus export the self-defined object after encapsulation.So, the visit data list of self-defined object that DAA can directly will obtain from database, according to configuration file, be encapsulated in self-defined object, and participate in without the need to research staff, thus reduce in database access process the complexity of the operation returning self-defining object, improve the reliability of R&D process, and substantially increase efficiency of research and development.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the disposal route of a kind of self-defined object that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the disposal route of the self-defined object of another kind that Fig. 2 provides for the embodiment of the present invention;
The structural representation of a kind of DAA that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the another kind of DAA that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of disposal route of self-defined object, as shown in Figure 1, comprising:
Step 101, from database, be obtained from the visit data list of defining objects.
Wherein, the data message of different field corresponding to the described self-defined object that stores in database is recorded in visit data list.
It should be noted that, the self-defined object to liking user oneself definition.At least one attribute is included in self-defined object.
Concrete, when application layer needs acquisition User Defined object to carry out Correlation method for data processing, DAA needs the concrete numerical value of each attribute of self-defined object.Now, DAA can accessing database, thus gets the visit data list of self-defined object in a database.
It should be noted that, the data recorded in the visit data list of self-defined object are according to the format record in database.Be, the visit data list of self-defined object carries out the record of data according to the title of the field of database.And the title of each field recorded in each attribute of self-defined object and the visit data list of self-defined object is different, the visit data list of the self-defined object obtained cannot be potted directly in self-defined object by DAA.
It should be noted that, the visit data list how DAA is obtained from defining objects from database is in prior art, and the present invention does not repeat them here.
Exemplary, suppose the self-defined object a of User Defined, when application layer needs to be obtained from defining objects, DAA can get the data access list of self-defined object a in a database.Wherein, have recorded field 1 in database in the data access list of self-defined object a, the data message of field 2.
Step 102, obtain the configuration file of described self-defined object.
Wherein, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in the configuration file of self-defined object.
Concrete, because the title of each field recorded in each attribute of self-defined object and the visit data list of self-defined object is different, and the corresponding relation recorded in configuration file between each attribute of self-defined object and the different field of database, like this, DAA can determine the data message of the field in the visit data list that each attribute of self-defined object is corresponding according to configuration file.Therefore, DAA need be obtained from the configuration file of defining objects.
Configuration file can be that user writes out according to configuration format in advance.Configuration file can be XML (ExtensibleMarkupLanguage, extend markup language) file.User is after configuring configuration file, and configuration file can store by DAA, and like this, DAA is when needs obtain configuration file, and the unit that can arrive store configuration files gets required configuration file.Further, DAA is when store configuration files, the mark of self-defined object can be stored together with self-defined object profile, DAA can be made like this to find according to the mark of self-defined object the configuration file that self-defined object is corresponding.
It should be noted that, the mark of self-defined object is the information for uniquely indicating self-defined object.
Further, the configuration file being obtained from defining objects comprises: the configuration file that DAA can first determine whether self-defined object pre-configured, if the pre-configured configuration file of self-defined object, then directly can obtain the configuration file of this pre-configured self-defined object.If there is no the configuration file of pre-configured self-defined object, the message of the configuration file configuring self-defined object then can be sent to user, so that user writes self-defined object profile, DAA directly can obtain user that user writes to self-defined object profile.
Further, the visit data list of self-defined object is database column name or another name is key (key word), and train value is a kind of key of value (value), the list of value.That is, the visit data list of self-defined object is the key of row name in the database that self-defined object is corresponding and train value composition, the list of value.
Now the configuration file of self-defined object can be the corresponding relation of the row name that have recorded in each attribute of self-defined object and database.
It should be noted that, the visit data list of self-defined object can also be the list of other fields composition of database, and the present invention is not restricted this.
As above, described in example, DAA, after the data access list of self-defined object a, in the unit of store configuration files, can be obtained from the configuration file of defining objects a.Suppose the attribute A that have recorded the corresponding self-defined object a of Database field 1 in the configuration file of self-defined object a, the corresponding relation of the attribute B of the corresponding self-defined object a of Database field 2.
Step 103, configuration file according to self-defined object, by the data message of different field recorded in the visit data list of self-defined object, be encapsulated in self-defined object.
Concrete, DAA is after the configuration file obtaining self-defined object, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in configuration file due to self-defined object, be in the configuration file of self-defined object each attribute that have recorded self-defined object corresponding with which field of database respectively.Like this, DAA can check the configuration file of self-defined object, thus can the data message of the different field recorded in the visit data list of self-defined object be corresponded in the different attribute of self-defined object, and then can using the data message of different field that records in the visit data list of the self-defined object property value as the different attribute of self-defined object, be added in self-defined object, complete the encapsulation of self-defined object.
Further, according to the configuration file of self-defined object, by the data message of different field recorded in the visit data list of self-defined object, be encapsulated into self-defined object and comprise:
According to the configuration file of self-defined object, determine the field name that each attribute of self-defined object is corresponding, the field name corresponding according to each attribute of self-defined object, the data message of the different field recorded in the visit data list of self-defined object, determines the data message of the field that each attribute of self-defined object is corresponding; The data message of field corresponding for each attribute of self-defined object is packaged into self-defined object.
That is, DAA gets the configuration file of self-defined object, the configuration file of self-defined object can be checked, thus according to the corresponding relation between each attribute of the self-defined object recorded in configuration file and the different field of database, the field name that each attribute of self-defined object is corresponding can be determined, after determining the field name that each attribute of self-defined object is corresponding, can in the visit data list of self-defined object, determine the data message that field name that each attribute of self-defined object is corresponding is corresponding, be the data message determining the field that each attribute of self-defined object is corresponding, and then the data message of field corresponding for each attribute of self-defined object can be packaged into self-defined object, complete the encapsulation of self-defined object.
Further, at the key that the visit data list of self-defined object is row name in the database that self-defined object is corresponding and train value composition, the list of value, when the configuration file of self-defined object have recorded the corresponding relation of the row name in each attribute of self-defined object and database, DAA is after the configuration file obtaining self-defined object, the each self-corresponding row name of each attribute of self-defined object can be determined according to this configuration file, thus can in the visit data list of self-defined object, find each self-corresponding row name of each attribute of self-defined object, and then the train value of row name corresponding to each attribute getting self-defined object, be the data message of field corresponding to each attribute of being obtained from defining objects.DAA using the train value of row name corresponding for each attribute of the self-defined object obtained as the property value of each attribute of self-defined object, can add in self-defined object, completes the encapsulation of self-defined object.
As above described in example, DAA, after the configuration file obtaining self-defined object a, can check the configuration file of this self-defined object a, knows attribute A corresponding field 1, the attribute b corresponding field 2 of self-defined object a.Now, DAA according to attribute A corresponding field 1, the attribute B corresponding field 2 of the self-defined object a known, in the visit data list of self-defined object a, can obtain the data message of field 1, the data message of field 2.Be the data message that the attribute A that is obtained from defining objects a is corresponding, the data message that the attribute B of self-defined object a is corresponding, data message corresponding for the attribute A of self-defined object a can be added in the attribute A of self-defined object a by DAA, data message corresponding for the attribute B of self-defined object a is added in the attribute B of self-defined object a, completes the encapsulation of self-defined object a.
Step 104, output encapsulate the self-defined object of the data message of the different field recorded in the visit data list of self-defined object.
Concrete, after DAA completes the data message of field corresponding for each attribute of self-defined object is packaged into self-defined object, the self-defined object encapsulated can be exported, thus can make to need the application layer being obtained from defining objects to get self-defined object.
As above, described in example, the self-defined object a encapsulating the data message of the different field recorded in the visit data list of self-defined object a, after the encapsulation completing self-defined object a, can export by DAA.
Embodiments provide a kind of disposal route of self-defined object, comprising: the visit data list being obtained from defining objects; Be obtained from the configuration file of defining objects; Wherein, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in the configuration file of self-defined object; According to the configuration file of self-defined object, by the data message of different field recorded in the visit data list of self-defined object, be encapsulated in self-defined object; Export the self-defined object encapsulating the data message of the different field recorded in the visit data list of self-defined object.Like this, in the present invention, after DAA can obtain the visit data list of self-defined object in a database, obtain the configuration file of this self-defined object, and then can according to the configuration file of self-defined object, by the data encapsulation that records in the visit data list of self-defined object in self-defined object, thus export the self-defined object after encapsulation.So, the visit data list of self-defined object that DAA can directly will obtain from database, according to configuration file, be encapsulated in self-defined object, and participate in without the need to research staff, thus reduce in database access process the complexity of the operation returning self-defining object, improve the reliability of R&D process, and substantially increase efficiency of research and development.
Further, before step 101, said method, as shown in Figure 2, also comprises:
The request message being obtained from defining objects that step 105, reception application layer send.
Concrete, user is after defining self-defined object, and when carrying out data processing, application layer needs the specific object value obtaining each attribute of User Defined object.Due to each attribute of self-defined object specific object value record in a database, therefore application layer can send to DAA and be obtained from the request message of defining objects.Now, DAA can receive the request message being obtained from defining objects that application layer sends.
It should be noted that, what application layer sent is obtained from the identification information carrying self-defined object in the request message of defining objects, and like this, according to the identification information of self-defined object, DAA can know that application layer needs to know which self-defined object.
It should be noted that, the identification information of self-defined object is the information that uniquely can indicate self-defined object.
Now, the visit data list that step 101 is obtained from defining objects comprises: according to the request message being obtained from defining objects, is obtained from the visit data list of defining objects.
That is, DAA is after receiving the request message being obtained from defining objects, the request message being obtained from defining objects can be resolved, and then the identification information of self-defined object can be got, such DAA the identification information of self-defined object can be obtained from the visit data list of defining objects.
Further, step 104 exports the self-defined object encapsulating the data message of the different field recorded in the visit data list of self-defined object and comprises: the self-defined object of the data message encapsulating the different field recorded in the visit data list of self-defined object is sent to application layer.
That is, after DAA has encapsulated self-defined object, owing to being the property value that application layer need be obtained from each attribute of defining objects, therefore, the self-defined object of the data message encapsulating the different field recorded in the visit data list of self-defined object can be sent to application layer by DAA.
Embodiments provide a kind of disposal route of self-defined object, comprising: the visit data list being obtained from defining objects; Be obtained from the configuration file of defining objects; Wherein, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in the configuration file of self-defined object; According to the configuration file of self-defined object, by the data message of different field recorded in the visit data list of self-defined object, be encapsulated in self-defined object; Export the self-defined object encapsulating the data message of the different field recorded in the visit data list of self-defined object.Like this, in the present invention, after DAA can obtain the visit data list of self-defined object in a database, obtain the configuration file of this self-defined object, and then can according to the configuration file of self-defined object, by the data encapsulation that records in the visit data list of self-defined object in self-defined object, thus export the self-defined object after encapsulation.So, the visit data list of self-defined object that DAA can directly will obtain from database, according to configuration file, be encapsulated in self-defined object, and participate in without the need to research staff, thus reduce in database access process the complexity of the operation returning self-defining object, improve the reliability of R&D process, and substantially increase efficiency of research and development.
Embodiments provide a kind of DAA, as shown in Figure 3, comprising:
Acquiring unit 301, for being obtained from the visit data list of defining objects from database.
Wherein, the data message of different field corresponding to the self-defined object that stores in database is recorded in visit data list.
Acquiring unit 301, also for being obtained from the configuration file of defining objects.
Wherein, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in the configuration file of self-defined object.
Processing unit 302, the configuration file of self-defined object also for obtaining according to acquiring unit 301, the data message of the different field recorded in the visit data list of the self-defined object obtained by acquiring unit 301, is encapsulated in described self-defined object.
Concrete, processing unit 302, specifically for the configuration file of self-defined object obtained according to acquiring unit 301, determine the field name that each attribute of self-defined object is corresponding, the field name corresponding according to each attribute of self-defined object, the data message of the different field recorded in the visit data list of the self-defined object of acquiring unit 301 acquisition, determines the data message of the field that each attribute of self-defined object is corresponding; The data message of field corresponding for each attribute of self-defined object is packaged into self-defined object.
Output unit 303, for the self-defined object encapsulating the data message of the different field recorded in the visit data list of self-defined object that output processing unit 302 processes.
Further, above-mentioned DAA, as shown in Figure 4, also comprises:
Receiving element 304, for receiving the request message being obtained from defining objects that application layer sends.
Now, acquiring unit 301, specifically for the request message being obtained from defining objects received according to receiving element 304, is obtained from the visit data list of defining objects.
Output unit 303, specifically for being sent to application layer by the self-defined object of the data message encapsulating the different field recorded in the visit data list of self-defined object.
Embodiments provide a kind of DAA, comprising: the visit data list being obtained from defining objects; Be obtained from the configuration file of defining objects; Wherein, have recorded the corresponding relation between each attribute of self-defined object and the different field of database in the configuration file of self-defined object; According to the configuration file of self-defined object, by the data message of different field recorded in the visit data list of self-defined object, be encapsulated in self-defined object; Export the self-defined object encapsulating the data message of the different field recorded in the visit data list of self-defined object.Like this, in the present invention, after DAA can obtain the visit data list of self-defined object in a database, obtain the configuration file of this self-defined object, and then can according to the configuration file of self-defined object, by the data encapsulation that records in the visit data list of self-defined object in self-defined object, thus export the self-defined object after encapsulation.So, the visit data list of self-defined object that DAA can directly will obtain from database, according to configuration file, be encapsulated in self-defined object, and participate in without the need to research staff, thus reduce in database access process the complexity of the operation returning self-defining object, improve the reliability of R&D process, and substantially increase efficiency of research and development.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (6)
1. a disposal route for self-defined object, is characterized in that, comprising:
The visit data list of defining objects is obtained from from database; The data message of different field corresponding to the described self-defined object that stores in database is recorded in described visit data list;
Obtain the configuration file of described self-defined object; The corresponding relation between each attribute of described self-defined object and the different field of database is have recorded in the configuration file of described self-defined object;
According to the configuration file of described self-defined object, by the data message of different field recorded in the visit data list of described self-defined object, be encapsulated in described self-defined object;
Export the self-defined object encapsulating the data message of the different field recorded in the visit data list of described self-defined object.
2. method according to claim 1, is characterized in that, the described configuration file according to described self-defined object, by the data message of different field recorded in the visit data list of described self-defined object, is encapsulated into described self-defined object and comprises:
According to the configuration file of described self-defined object, determine the field name that each attribute of described self-defined object is corresponding, the field name corresponding according to each attribute of described self-defined object, the data message of the different field recorded in the visit data list of described self-defined object, determines the data message of the field that each attribute of described self-defined object is corresponding; The data message of field corresponding for each attribute of described self-defined object is packaged into described self-defined object.
3. method according to claim 2, is characterized in that, described be obtained from the visit data list of defining objects before, also comprise:
Receive the request message being obtained from defining objects that application layer sends;
The described visit data list being obtained from defining objects comprises:
According to the described request message being obtained from defining objects, be obtained from the visit data list of defining objects;
The self-defined object that described output encapsulates the data message of the different field recorded in the visit data list of described self-defined object comprises:
The described self-defined object encapsulating the data message of the different field recorded in the visit data list of described self-defined object is sent to described application layer.
4. a DAA, is characterized in that, comprising:
Acquiring unit, for being obtained from the visit data list of defining objects from database; The data message of different field corresponding to the described self-defined object that stores in database is recorded in described visit data list;
Described acquiring unit, also for obtaining the configuration file of described self-defined object; The corresponding relation between each attribute of described self-defined object and the different field of database is have recorded in the configuration file of described self-defined object;
Processing unit, the configuration file of described self-defined object also for obtaining according to described acquiring unit, the data message of the different field recorded in the visit data list of the described self-defined object obtained by described acquiring unit, is encapsulated in described self-defined object;
Output unit, for exporting the self-defined object of the data message encapsulating the different field recorded in the visit data list of described self-defined object.
5. device according to claim 4, is characterized in that,
Described processing unit, specifically for the configuration file of described self-defined object obtained according to described acquiring unit, determine the field name that each attribute of described self-defined object is corresponding, the field name corresponding according to each attribute of described self-defined object, the data message of the different field recorded in the visit data list of the described self-defined object obtained at described acquiring unit, determines the data message of the field that each attribute of described self-defined object is corresponding; The data message of field corresponding for each attribute of described self-defined object is packaged into described self-defined object.
6. device according to claim 5, is characterized in that, also comprises:
Receiving element, for receiving the request message being obtained from defining objects that application layer sends;
Described acquiring unit, specifically for being obtained from the request message of defining objects described in receiving according to described receiving element, is obtained from the visit data list of defining objects;
Described output unit, specifically for being sent to described application layer by the described self-defined object encapsulating the data message of the different field recorded in the visit data list of described self-defined object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510818792.8A CN105488117A (en) | 2015-11-23 | 2015-11-23 | User-defined object processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510818792.8A CN105488117A (en) | 2015-11-23 | 2015-11-23 | User-defined object processing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105488117A true CN105488117A (en) | 2016-04-13 |
Family
ID=55675092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510818792.8A Pending CN105488117A (en) | 2015-11-23 | 2015-11-23 | User-defined object processing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105488117A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019205790A1 (en) * | 2018-04-23 | 2019-10-31 | 华为技术有限公司 | Data operating method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091231A1 (en) * | 2003-10-24 | 2005-04-28 | Shankar Pal | System and method for storing and retrieving XML data encapsulated as an object in a database store |
CN101008952A (en) * | 2007-01-30 | 2007-08-01 | 华为技术有限公司 | Method and device for generating persistence layer |
CN101067814A (en) * | 2007-05-10 | 2007-11-07 | 浪潮集团山东通用软件有限公司 | Mapping conversion method between data access level Xml format data and relational data |
CN101290625A (en) * | 2008-06-11 | 2008-10-22 | 华东师范大学 | XML document storage and search method |
CN103914290A (en) * | 2012-12-31 | 2014-07-09 | 杭州勒卡斯广告策划有限公司 | Operating command processing method and device |
-
2015
- 2015-11-23 CN CN201510818792.8A patent/CN105488117A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091231A1 (en) * | 2003-10-24 | 2005-04-28 | Shankar Pal | System and method for storing and retrieving XML data encapsulated as an object in a database store |
CN101008952A (en) * | 2007-01-30 | 2007-08-01 | 华为技术有限公司 | Method and device for generating persistence layer |
CN101067814A (en) * | 2007-05-10 | 2007-11-07 | 浪潮集团山东通用软件有限公司 | Mapping conversion method between data access level Xml format data and relational data |
CN101290625A (en) * | 2008-06-11 | 2008-10-22 | 华东师范大学 | XML document storage and search method |
CN103914290A (en) * | 2012-12-31 | 2014-07-09 | 杭州勒卡斯广告策划有限公司 | Operating command processing method and device |
Non-Patent Citations (2)
Title |
---|
宋汉增等: "利用Hibernate对象持久化服务简化Java数据库访问", 《计算机应用》 * |
赵东波等: "基于Hibernate的效率查询的研究和应用", 《科学技术与工程》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019205790A1 (en) * | 2018-04-23 | 2019-10-31 | 华为技术有限公司 | Data operating method and device |
CN110399368A (en) * | 2018-04-23 | 2019-11-01 | 华为技术有限公司 | A kind of data manipulation method and device |
CN110399368B (en) * | 2018-04-23 | 2022-08-19 | 华为技术有限公司 | Method for customizing data table, data operation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108093070B (en) | Internet of things data service middleware system | |
CN106980669B (en) | Data storage and acquisition method and device | |
KR102317535B1 (en) | Methods and systems for implementing data tracking with software development kits | |
CN108345511B (en) | Application data checking method and device and electronic equipment | |
CN105022615A (en) | Interface generating method and system | |
CN109670081B (en) | Method and device for processing service request | |
CN107168695B (en) | Excel data analysis method and system | |
CN103095823A (en) | Object description method and object information interaction system in Internet of Things system | |
CN103777934B (en) | A kind of method and system generating controller CAN alternation of bed based on MATLAB | |
CN111552838A (en) | Data processing method and device, computer equipment and storage medium | |
CN109460220A (en) | The predefined code generating method of message, device, electronic equipment and storage medium | |
CN104144215A (en) | Method for building Internet-of-Things ubiquitous device resource model | |
CN106354843A (en) | Web crawler system and method | |
CN103559321A (en) | Document format conversion system | |
CN104216961A (en) | Method and device for data processing | |
CN101655795B (en) | Method for creating service embodiment and system thereof | |
CN114490641B (en) | Sharing method, equipment and medium of industrial Internet data | |
CN109828815A (en) | Screen adaptation method, device, equipment and storage medium based on mixed mode | |
CN104484958A (en) | Express delivery pickup method and system for intelligent express delivery cabinet | |
CN110955714A (en) | Method and device for converting unstructured text into structured text | |
CN106469372A (en) | A kind of address mapping method and device | |
CN103235757B (en) | Several apparatus and method that input domain tested object is tested are made based on robotization | |
CN106126595A (en) | A kind of document down loading method and device | |
CN110020243A (en) | Querying method, device, Internet of Things server and the storage medium of internet of things data | |
CN104750468B (en) | A kind of server-side topological data conversion method and conversion equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160413 |
|
WD01 | Invention patent application deemed withdrawn after publication |