CN109710509A - Data checking, device, equipment and computer readable storage medium - Google Patents

Data checking, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109710509A
CN109710509A CN201810947608.3A CN201810947608A CN109710509A CN 109710509 A CN109710509 A CN 109710509A CN 201810947608 A CN201810947608 A CN 201810947608A CN 109710509 A CN109710509 A CN 109710509A
Authority
CN
China
Prior art keywords
mongodb
sentence
java
action statement
template
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
CN201810947608.3A
Other languages
Chinese (zh)
Other versions
CN109710509B (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810947608.3A priority Critical patent/CN109710509B/en
Publication of CN109710509A publication Critical patent/CN109710509A/en
Application granted granted Critical
Publication of CN109710509B publication Critical patent/CN109710509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of data checking, device, equipment and computer readable storage mediums, which comprises receives the java sentence that user inputs in the code input window of code debugging application interface;The java sentence received is linked in the database mongodb based on distributed document storage, to call Open Framework spring mongodb template in the mongodb;Java sentence is converted into the action statement of spliced mongodb by the spring mongodb template of calling;By the action statement real-time Transmission of the mongodb to console, to carry out display inspection in the console.The present invention improves the accuracy and efficiency of data inspection.

Description

Data checking, device, equipment and computer readable storage medium
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data checking, device, equipment and computers Readable storage medium storing program for executing.
Background technique
In existing code development debugging process, what is generated under normal circumstances is java sentence, since java sentence is zero Scattered sentence, and these data are scrappy splicings, can only be manually in debugging tool to judge whether data splice correctly In write code and debugged, whether the data to check return correct, and manually write code debugging data, check number According to accuracy it is lower, and the time of entire application development process consumption is longer, causes efficiency lower.
Summary of the invention
The main purpose of the present invention is to provide a kind of data checking, device, equipment and computer-readable storage mediums Matter, it is intended to solve existing data test mode, all lower technical problem of accuracy and efficiency.
To achieve the above object, the present invention provides a kind of data checking, and the data checking includes:
Receive the java sentence that user inputs in the code input window of code debugging application interface;
By the java sentence received be linked to based on distributed document storage database mongodb in, with Open Framework spring mongodb template is called in the mongodb;
Java sentence is converted into the operation language of spliced mongodb by the spring mongodb template of calling Sentence;
By the action statement real-time Transmission of the mongodb to console, to carry out display inspection in the console.
Optionally, the java sentence that will be received is linked to the database based on distributed document storage In mongodb, include: to be called in the mongodb the step of Open Framework spring mongodb template
After receiving the java sentence, link information is extracted from the java sentence;
Entered in the corresponding mongodb of the link information according to the link information, the java that will be received Sentence is transmitted in the mongodb, and Open Framework spring mongodb template is called in the mongodb.
Optionally, java sentence is converted into spliced by the spring mongodb template by calling The step of action statement of mongodb includes:
Read the filter of the java sentence and the parsing information of the java sentence;
Class is determined according to the filter of the java sentence, and method is determined according to the parsing information of the java sentence;
According to class, method and the preset reflection mechanism determined in the java sentence, in springmongodb template Middle determining class and method;
According to the class and method of the spring mongodb template, the java sentence is converted into spliced The action statement of mongodb.
Optionally, the reflection mechanism is java sentence and a kind of reflection mechanism of mongodb, can by the emission mechanism Class and method are determined in spring mongodb template, class is object in java sentence, by reflection mechanism by java language The class of sentence is when corresponding to spring mongodb template, and it is document in mongodb that class is corresponding;Method is in java sentence The operating method for increasing or deleting class as needed, corresponds to spring for the method for java sentence by reflection mechanism When mongodb template, the method in springmongodb template, which just refers to, increases in set or deletes document.
Optionally, the class and method according to the spring mongodb template, the java sentence is converted into The step of action statement of spliced mongodb includes:
By the class and method in the spring mongodb template, institute is mapped out in spring mongodb template State class and the corresponding action statement expression formula of method;
According to the hierarchical relationship of method in action statement expression formula, called in the java API class of action statement expression formula Information, and splice according to information of the sequence of calling to calling, to obtain spliced action statement, wherein after splicing Action statement be json format mongodb action statement.
Optionally, the action statement real-time Transmission by the mongodb is to console, to be shown in the console After the step of showing inspection, the method also includes:
Determine current type of service;
The type identification of the action statement and type of service are compared, whether are institute with the determination action statement State the corresponding action statement of type of service;
If so, determining that the splicing result of action statement is correct.
Optionally, the action statement real-time Transmission by the mongodb is to console, to be shown in the console After the step of showing inspection, the method also includes:
The action statement is executed in the console;
The implementing result of the action statement is printed in the console, by the spliced action statement of manual analysis It is whether correct.
In addition, to achieve the above object, the present invention also provides a kind of data detecting device, the data detecting device packet It includes:
Receiving module, the java language inputted in the code input window of code debugging application interface for receiving user Sentence;
Calling module, for the java sentence received to be linked to the database based on distributed document storage In mongodb, to call Open Framework spring mongodb template in the mongodb;
Java sentence is converted into spliced by conversion module for the spring mongodb template by calling The action statement of mongodb;
Display module, for by the action statement real-time Transmission of the mongodb to console, to carry out in the console Display checks.
In addition, to achieve the above object, the present invention also provides a kind of data to check that equipment, the data check that equipment includes The data that memory, processor, communication bus and being stored in can be run on the memory and on the processor check journey Sequence;
The communication bus is for realizing the communication connection between processor and memory;
The processor checks program for executing the data, to realize the step of data checking as described above Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with data on storage medium and checks program, the data, which check, realizes number as described above when program is executed by processor The step of according to inspection method.
It is defeated in the code input window of code debugging application interface to receive user for data checking proposed by the present invention Then the java sentence received is linked in mongodb, to call in the mongodb by the java sentence entered Spring mongodb template, then the spring mongodb template by calling java sentence is converted into it is spliced The action statement of mongodb, by the action statement real-time Transmission of the mongodb to console, to be shown in the console Show inspection.In the present invention, scrappy java sentence is transmitted in mongodb, spring mongodb mould is called by mongodb Action statement is finally transmitted to console and carries out display inspection by plate to be converted to the action statement of mongodb, due to operating language Sentence is spliced action statement, so that user visually checks whether the splicing result of sentence is accurate, the inspection to data It is more accurate, and efficiency is also higher.
Detailed description of the invention
Fig. 1 is that the data for the hardware running environment that the embodiment of the present invention is related to check device structure schematic diagram;
Fig. 2 is the flow diagram of data checking first embodiment of the present invention;
Fig. 3 is the refinement flow diagram of step S20 in Fig. 2;
Fig. 4 is the refinement flow diagram of step S30 in Fig. 2;
Fig. 5 is the refinement flow diagram of step S34 in Fig. 4;
Fig. 6 is the flow diagram of data checking second embodiment of the present invention;
Fig. 7 is the flow diagram of data checking 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly: receiving user in the code input window of code debugging application interface Then the java sentence received is linked in mongodb, in the mongodb by the java sentence of middle input It calls spring mongodb template, then by the springmongodb template of calling is converted into java sentence spliced The action statement of mongodb, by the action statement real-time Transmission of the mongodb to console, to be shown in the console Show inspection.To solve existing data test mode, all lower problem of accuracy and efficiency.
As shown in Figure 1, the data that Fig. 1 is the hardware running environment that the embodiment of the present invention is related to check that device structure shows It is intended to.
Data of the embodiment of the present invention check that equipment can be PC, are also possible to smart phone, tablet computer, portable computer Etc. equipment having a display function.
As shown in Figure 1, the data check that equipment may include: processor 1001, such as CPU, communication bus 1002, user Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection between these components Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user Interface 1003 can also include wireline interface (such as connecting wired keyboard, wire mouse etc.), the wireless interface (example of standard Such as connecting Wireless Keyboard, wireless mouse).Network interface 1004 optionally may include the wireline interface of standard (for connecting Connect cable network), wireless interface (such as WI-FI interface, blue tooth interface, infrared interface, for connecting wireless network).Storage Device 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk Memory.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Optionally, equipment can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module etc..
It will be understood by those skilled in the art that data shown in Fig. 1 check device structure not structure paired data inspection The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium Network communication module, Subscriber Interface Module SIM and data check program.Wherein, operating system is to manage and control data to check equipment With the program of software resource, network communication module, Subscriber Interface Module SIM, data is supported to check program and other programs or software Operation;Network communication module is for managing and controlling network interface 1002;Subscriber Interface Module SIM is for managing and controlling user Interface 1003.
Data shown in Fig. 1 check in equipment that the data check that equipment calls memory by processor 1001 The data that store in 1005 check program, the step of to realize data checking as described below.
The hardware configuration of equipment is checked based on above-mentioned data, proposes each embodiment of data checking of the present invention.
It is the flow diagram of data checking first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the data checking includes:
Step S10 receives the java sentence that user inputs in the code input window of code debugging application interface;
The java sentence received is linked to the database mongodb based on distributed document storage by step S20 In, to call Open Framework spring mongodb template in the mongodb;
Java sentence is converted into spliced mongodb's by the spring mongodb template of calling by step S30 Action statement;
Step S40, by the action statement real-time Transmission of the mongodb to console, to be shown in the console It checks.
In the present embodiment, the data checking is applied to data inspection equipment, and the data check equipment such as Fig. 1 Shown in check equipment.The data, which check, is provided with mongodb (database based on distributed document storage) in equipment, should Spring (Open Framework) mongodb template is stored in mongodb, to carry out the subsequent java (program of object-oriented Design language) sentence conversion.
It is the specific steps that data inspection is realized in the present embodiment below:
Step S10 receives the java sentence that user inputs in the code input window of code debugging application interface;
In the present embodiment, first start code debugging application, show that code is defeated with the application interface applied in code debugging Enter window, in the case where application interface shows code input window, receives the java that user inputs in the code input window Sentence, it should be understood that java sentence is scattered sentence.
The java sentence received is linked to the database mongodb based on distributed document storage by step S20 In, to call Open Framework spring mongodb template in the mongodb;
Receive user input java sentence after, the java sentence received is linked in mongodb, with The spring mongodb template prestored is called in mongodb.Specifically, include: referring to Fig. 3, the step S20
Step S21 extracts link information from the java sentence after receiving the java sentence;
Step S22 enters in the corresponding mongodb of the link information according to the link information, will receive The java sentence is transmitted in the mongodb, and Open Framework spring mongodb mould is called in the mongodb Plate.
That is, first extracting link information after receiving java sentence from java sentence, being extracted in java sentence Out after link information, the clicking operation or touch control operation received by the link information region enters the link In the corresponding mongodb of information, later, java sentence is transferred in the mongodb, to call open source in the mongodb Frame spring mongodb template, and execute subsequent sentence conversion operation.
In the present embodiment, it is directly entered in mongodb by the link information of java sentence, so that into The mode of mongodb is more convenient, subsequent that java sentence is transmitted in the mongodb, to call spring in mongodb Mongodb template, so that java sentence calls the whole operation process of spring mongodb template also more convenient, simply. Java sentence is converted into the operation language of spliced mongodb by the spring mongodb template of calling by step S30 Sentence;
After java sentence is transmitted to mongodb, spring mongodb template is called in mongodb, it is described Spring mongodb template is previously stored in mongodb, for java sentence to be converted into the action statement of mongodb. After calling to spring mongodb template, java sentence is converted into spelling by the spring mongodb template of calling The action statement of mongodb after connecing.Specifically, include: referring to Fig. 4, the step S30
Step S31 reads the filter of the java sentence and the parsing information of the java sentence;
In the present embodiment, the filter of java sentence actually refers to the condition that the class to java sentence is screened, The condition of screening in need is set in the filter of java sentence, which class needed to filter out, passes through the filtering of java sentence Device is the class that can determine needs.And the parsing information of java sentence refers to the operating method of java sentence, i.e., how to java language The method that sentence is operated.Step S32 determines class according to the filter of the java sentence, and according to the java sentence Parsing information determines method;
It should be noted that newly having entity class (class) in java sentence, class is corresponding with attribute value, such as: java language In sentence, the object of class is book, then the attribute value of class is exactly the publication date of the unit price of book, title, book.According to the java sentence Filter determine class, the class of needs is exactly selected by the filter screen of java sentence.In addition, having inside java sentence specific Method, the method for java sentence is determined by parsing information, and parsing information shows the operating method of java sentence, logical Cross the parsing information for reading java sentence, it may be determined that operating method, if by taking the object of class is book as an example, then the behaviour of java sentence It is exactly as method: increases or delete class as needed.
Step S33, according to class, method and the preset reflection mechanism determined in the java sentence, in spring Class and method are determined in mongodb template;
In the present embodiment, after determining class and method, according to determining class, method and preset reflection mechanism, Class and method are determined in spring mongodb template, wherein the reflection mechanism is java sentence and one kind of mongodb Reflection mechanism can determine class and method by the emission mechanism in spring mongodb template.That is, the class in java sentence It is object, when the class of java sentence being corresponded to spring mongodb template by reflection mechanism, corresponding class is mongodb In document, method is the operating method increased or delete class as needed in java sentence, by reflection mechanism by java When the method for sentence corresponds to spring mongodb template, the method in spring mongodb template just refers in set Increase or delete document.
The java sentence is converted into splicing by step S34 according to the class and method of the spring mongodb template The action statement of mongodb afterwards.
It, can be according to the springmongodb template after the class and method for determining spring mongodb template Class and method, the java sentence is converted into the action statement of mongodb, that is to say, that filter according in java sentence After class out, and increase or deletion class, text is filtered out in the set of spring mongodb template according to reflection mechanism Shelves, and increase in the document of set or delete document, finally according to the operation for increasing or deleting document in set, obtain The action statement of mongodb, wherein the action statement of mongodb be json (javaScript Object Notation, one Kind of data interchange format) format action statement.
In other words, it in the present embodiment, after obtaining java sentence, can first be determined according to the filter of java sentence The class needed out, and corresponding method is determined according to java sentence, later, java sentence is transmitted to spring mongodb When in template, according to the class and method set in java sentence, corresponding class can be called in spring mongodb template And method, java sentence is converted into the action statement of the mongodb of spliced json format.
Further, include: referring to Fig. 5, the step S34
Step S341, through class and method in the spring mongodb template, in spring mongodb template Map out the class and the corresponding action statement expression formula of method;
In the present embodiment, after the class and method for determining spring mongodb template, pass through the spring Class and method in mongodb template map out the class and the corresponding action statement of method in spring mongodb template Expression formula, it should be noted that class and method can uniquely map out corresponding action statement table in spring mongodb template Up to formula, the form of the action statement expression formula without limitation, is determined with the actual content of class and method.
Step S342, according to the hierarchical relationship of method in action statement expression formula, in the java of action statement expression formula Recalls information in API class, and splice according to information of the sequence of calling to calling, to obtain spliced action statement, Wherein, spliced action statement is the action statement of the mongodb of json format.
After obtaining class and the corresponding action statement expression formula of method, according to the java API of action statement expression formula (Application Programming Interface, application programming interface) class, the hierarchical relationship of method, in java Hierarchical relationship in API class according to method calls out information, and splices the information of calling according to the sequence of calling, with To spliced action statement.
Step S40, by the action statement real-time Transmission of the mongodb to console, to be shown in the console It checks.
After java sentence is converted into the action statement of mongodb by spring mongodb template, it will operate Sentence real-time Transmission is into console, and to carry out display inspection in the console, the console is a display window, is used for The action statement of display splicing, so as to the spliced action statement of user's Visual retrieval.
The data checking that the present embodiment proposes receives user in the code input window of code debugging application interface Then the java sentence received is linked in mongodb, to adjust in the mongodb by the java sentence of input With spring mongodb template, then the springmongodb template by calling java sentence is converted into it is spliced The action statement of mongodb, by the action statement real-time Transmission of the mongodb to console, to be shown in the console Show inspection.In the present invention, scrappy java sentence is transmitted in mongodb, spring mongodb mould is called by mongodb Action statement is finally transmitted to console and carries out display inspection by plate to be converted to the action statement of mongodb, due to operating language Sentence is spliced action statement, so that user visually checks whether the splicing result of sentence is accurate, the inspection to data It is more accurate, and efficiency is also higher.
Further, the second embodiment of data checking of the present invention is proposed based on first embodiment.
The difference of the first embodiment of the second embodiment and data checking of data checking is, referring to Fig. 6, After the step S40, the method also includes:
Step S50 determines current type of service;
In the present embodiment, after the action statement of mongodb to be transmitted to console and is shown, determining currently is needed The type of service wanted, wherein type of service according to code debugging apply in specifically include business determine, herein without limitation.
The type identification of the action statement and type of service are compared by step S60, with the determination action statement It whether is the corresponding action statement of the type of service;
Step S70, if so, determining that the splicing result of action statement is correct.
After determining type of service, type identification is extracted in action statement, by the type identification of action statement It is compared with type of service, determines whether the action statement is the corresponding action statement of the type of service, if the operation Sentence is the corresponding action statement of the type of service, then can determine that the splicing result of action statement is correct.
In the present embodiment, after obtaining spliced action statement, using current type of service and action statement Type identification be compared, verified with the splicing result to action statement, improve the accuracy of data inspection.
Further, the 3rd embodiment of data checking of the present invention is proposed based on first or second embodiments.
The difference of the first or second embodiments of the 3rd embodiment and data checking of data checking is, joins According to Fig. 7, after the step S40, the method also includes:
Step S80 executes the action statement in the console;
Step S90 prints to the implementing result of the action statement in the console, spliced by manual analysis Whether action statement is correct.
It in the present embodiment, can be in console after the action statement of mongodb to be transmitted to console and is shown Middle execution action statement, that is, run the program segment of the action statement, after obtaining the implementing result of action statement, will operate Whether the implementing result of sentence prints in console, correct by the spliced action statement of manual analysis.
It in the present embodiment, is the equal of that another data checking is provided, direct display operation language in the console The implementing result of sentence improves the convenience and flexibility of data inspection by user's macroscopic examination.
The present invention also provides a kind of data detecting device, the data detecting device includes:
Receiving module, the java language inputted in the code input window of code debugging application interface for receiving user Sentence;
Calling module, for the java sentence received to be linked to the database based on distributed document storage In mongodb, to call Open Framework spring mongodb template in the mongodb;
Java sentence is converted into spliced by conversion module for the spring mongodb template by calling The action statement of mongodb;
Display module, for by the action statement real-time Transmission of the mongodb to console, to carry out in the console Display.
The specific embodiment of data detecting device of the present invention and the basic phase of above-mentioned each embodiment of file type conversion method Together, details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with data and check program, the data, which check, realizes data reviewing party as described above when program is executed by processor Method.
Computer readable storage medium specific embodiment of the present invention and each embodiment base of above-mentioned file type conversion method This is identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data checking, which is characterized in that the data checking the following steps are included:
Receive the java sentence that user inputs in the code input window of code debugging application interface;
The java sentence received is linked in the database mongodb based on distributed document storage, described Open Framework spring mongodb template is called in mongodb;
Java sentence is converted into the action statement of spliced mongodb by the spring mongodb template of calling;
By the action statement real-time Transmission of the mongodb to console, to carry out display inspection in the console.
2. data checking as described in claim 1, which is characterized in that described to link the java sentence received Into the database mongodb stored based on distributed document, to call Open Framework spring in the mongodb The step of mongodb template includes:
After receiving the java sentence, link information is extracted from the java sentence;
Entered in the corresponding mongodb of the link information according to the link information, the java sentence that will be received It is transmitted in the mongodb, and calls Open Framework spring mongodb template in the mongodb.
3. data checking as described in claim 1, which is characterized in that the spring mongodb mould by calling Java sentence is converted into the step of action statement of spliced mongodb and includes: by plate
Read the filter of the java sentence and the parsing information of the java sentence;
Class is determined according to the filter of the java sentence, and method is determined according to the parsing information of the java sentence;
According to class, method and the preset reflection mechanism determined in the java sentence, in spring mongodb template Determine class and method;
According to the class and method of the spring mongodb template, the java sentence is converted into spliced mongodb Action statement.
4. data checking as claimed in claim 3, which is characterized in that the reflection mechanism be java sentence and A kind of reflection mechanism of mongodb can determine class and method by the emission mechanism in spring mongodb template, Class is object in java sentence, when the class of java sentence being corresponded to spring mongodb template by reflection mechanism, class pair What is answered is the document in mongodb;Method is the operating method as needed increased or delete class in java sentence, by anti- When penetrating mechanism the method for java sentence being corresponded to spring mongodb template, the method in spring mongodb template is just Refer to and increases or delete document in set.
5. data checking as claimed in claim 3, which is characterized in that described according to the spring mongodb template Class and method, the step of java sentence is converted into the action statement of spliced mongodb includes:
By the class and method in the spring mongodb template, the class is mapped out in spring mongodb template Action statement expression formula corresponding with method;
According to the hierarchical relationship of method in action statement expression formula, letter is called in the java API class of action statement expression formula Breath, and splice according to information of the sequence of calling to calling, to obtain spliced action statement, wherein spliced Action statement is the action statement of the mongodb of json format.
6. data checking as described in any one in claim 1-5, which is characterized in that the behaviour by the mongodb Make sentence real-time Transmission to console, after carrying out the step of display checks in the console, the method also includes:
Determine current type of service;
The type identification of the action statement and type of service are compared, whether are the industry with the determination action statement The corresponding action statement of service type;
If so, determining that the splicing result of action statement is correct.
7. data checking as described in any one in claim 1-5, which is characterized in that the behaviour by the mongodb Make sentence real-time Transmission to console, after carrying out the step of display checks in the console, the method also includes:
The action statement is executed in the console;
The implementing result of the action statement is printed in the console, by the spliced action statement of manual analysis whether Correctly.
8. a kind of data detecting device, which is characterized in that the data detecting device includes:
Receiving module, the java sentence inputted in the code input window of code debugging application interface for receiving user;
Calling module, for the java sentence received to be linked to the database based on distributed document storage In mongodb, to call Open Framework spring mongodb template in the mongodb;
Java sentence is converted into spliced mongodb for the spring mongodb template by calling by conversion module Action statement;
Display module, for by the action statement real-time Transmission of the mongodb to console, to be shown in the console It checks.
9. a kind of data check equipment, which is characterized in that the data check that equipment includes memory, processor, communication bus And it is stored in the data that can be run on the memory and on the processor and checks program;
The communication bus is for realizing the communication connection between processor and memory;
The processor checks program for executing the data, to realize the data as described in any one of claims 1 to 7 The step of inspection method.
10. a kind of computer readable storage medium, which is characterized in that be stored with data inspection on the computer readable storage medium Program is looked into, the data check the data inspection realized as described in any one of claims 1 to 7 when program is executed by processor The step of method.
CN201810947608.3A 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium Active CN109710509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810947608.3A CN109710509B (en) 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810947608.3A CN109710509B (en) 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109710509A true CN109710509A (en) 2019-05-03
CN109710509B CN109710509B (en) 2023-07-21

Family

ID=66253709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810947608.3A Active CN109710509B (en) 2018-08-20 2018-08-20 Data checking method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109710509B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609255A (en) * 2012-01-19 2012-07-25 中国科学院计算机网络信息中心 Generation method for Spring IOC (Inversion of Control) configuration file
US20140188918A1 (en) * 2012-04-03 2014-07-03 Sas Institute Inc. Techniques to perform in-database computational programming
CN105512985A (en) * 2015-12-29 2016-04-20 杭州邦泰科技有限公司 Diabetes electronic medical record data storage method based on openEHR standard
US20170104742A1 (en) * 2015-10-12 2017-04-13 American Express Travel Related Services Company, Inc. System and method for communicating between distributed applications and databases
US20170193437A1 (en) * 2016-01-04 2017-07-06 Syntel, Inc. Method and apparatus for inventory analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609255A (en) * 2012-01-19 2012-07-25 中国科学院计算机网络信息中心 Generation method for Spring IOC (Inversion of Control) configuration file
US20140188918A1 (en) * 2012-04-03 2014-07-03 Sas Institute Inc. Techniques to perform in-database computational programming
US20170104742A1 (en) * 2015-10-12 2017-04-13 American Express Travel Related Services Company, Inc. System and method for communicating between distributed applications and databases
CN105512985A (en) * 2015-12-29 2016-04-20 杭州邦泰科技有限公司 Diabetes electronic medical record data storage method based on openEHR standard
US20170193437A1 (en) * 2016-01-04 2017-07-06 Syntel, Inc. Method and apparatus for inventory analysis

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YISUN123456: "MongoDB DBObject和JavaBean实体转换转换", pages 1 - 3 *
如若: "MongoDB 将Json数据直接写入MongoDB的方法", pages 1 - 3 *

Also Published As

Publication number Publication date
CN109710509B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN109828903B (en) Automatic testing method and device, computer device and storage medium
US10932106B2 (en) System, a method and a computer program product for automated remote control
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
CN109460279A (en) Forms pages development approach, device, equipment and storage medium based on small routine
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
JP2014510482A (en) System and method for testing content of a mobile communication device
CN110389896A (en) Code automated analysis and test method, device and computer readable storage medium
CN107909466A (en) Customer relationship network display method, apparatus, equipment and readable storage medium storing program for executing
CN111190825A (en) Automatic test method, system and robot
CN110928763A (en) Test method, test device, storage medium and computer equipment
CN108023918A (en) A kind of information on services acquisition methods, apparatus and system
US11741002B2 (en) Test automation systems and methods using logical identifiers
CN107451112B (en) Form tool data checking method, device, terminal equipment and storage medium
CN107391362A (en) Application testing method, mobile terminal and storage medium
US20220350857A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN109542431A (en) Control property analysis method, device, electronic equipment and storage medium
CN112015654A (en) Method and apparatus for testing
CN107644075A (en) The method and apparatus for collecting page info
CN110659021B (en) Development and test system for micro application in mobile terminal
CN115438635A (en) Report generation method, report generation device, and computer storage medium
CN114185791A (en) Method, device and equipment for testing data mapping file and storage medium
CN109558447A (en) Data managing method, device and computer readable storage medium
CN111427776A (en) Automatic testing method and device for intelligent equipment
CN109710509A (en) Data checking, device, equipment and computer readable storage medium
EP3188417A1 (en) Information display method, terminal and server

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