CN105224696A - Web page Text Entry completes implementation method and device automatically - Google Patents

Web page Text Entry completes implementation method and device automatically Download PDF

Info

Publication number
CN105224696A
CN105224696A CN201510779435.5A CN201510779435A CN105224696A CN 105224696 A CN105224696 A CN 105224696A CN 201510779435 A CN201510779435 A CN 201510779435A CN 105224696 A CN105224696 A CN 105224696A
Authority
CN
China
Prior art keywords
entry
display
service parameter
key
query result
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
CN201510779435.5A
Other languages
Chinese (zh)
Other versions
CN105224696B (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.)
Beijing Forever Technology Co Ltd
Original Assignee
Beijing Forever Technology 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 Beijing Forever Technology Co Ltd filed Critical Beijing Forever Technology Co Ltd
Priority to CN201510779435.5A priority Critical patent/CN105224696B/en
Publication of CN105224696A publication Critical patent/CN105224696A/en
Application granted granted Critical
Publication of CN105224696B publication Critical patent/CN105224696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

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)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The claimed web page Text Entry of the embodiment of the present invention completes implementation method and device automatically.In embodiments of the present invention, the Text Entry of described web page is loaded with and automatically completes script.Automatically complete in script and pre-set service parameter, after transmission service parameter and entry, server end performs general polling method, to obtain meeting service parameter requirement and the Query Result mated with entry.In embodiments of the present invention, general polling method is equivalent to machine, and service parameter is equivalent to raw material.The raw material added is different, and the product that manufacture goes out is also by difference.Like this, different business can use same general polling method, thus the auto-complete function need not used for different business writes independent implementation method.

Description

Web page Text Entry completes implementation method and device automatically
Technical field
The present invention relates to computer realm, particularly relate to web page Text Entry and automatically complete implementation method and device.
Background technology
When using web page search, in the Text Entry of web page, keying in entry, display coupling entry thus save time can be keyed in along with user, Here it is auto-complete function.Automatically completing of Web page Chinese version input frame can help user's complete operation fast with prompt facility, is extraordinary user's experience.
When doing Information-based Item, often using in different business functions and automatically completing.Such as need selection personnel when Added Business, now, if input " money " in Text Entry, automatically can occur combobox, display surname is the name (money virtue, Qian Na, Qian Bin etc.) of the people of " money ".If continue input " literary composition " in Text Entry, automatically can occur combobox, display name comprises the name (Qian Wenzhong, money is gentle and quiet, and money is civil and military) of the people of " money literary composition ".
When implementing the invention, inventor finds: because the service class involved by business difference is also different with tables of data, so the auto-complete function will used for different business writes independent implementation method.
Summary of the invention
The object of the embodiment of the present invention is to provide page text input frame and automatically completes implementation method and device, needs for different business writes the problem of independent implementation method to solve.
For achieving the above object, the invention provides following scheme:
A kind of web page Text Entry completes implementation method automatically, the Text Entry of described web page is loaded with and automatically completes script, describedly automatically complete in script the service parameter comprising and pre-set, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
Described implementation method comprises:
The described entry automatically completing script and inputted by described Text Entry reception user;
The described script that automatically completes sends described entry and described service parameter to server end, and described entry and described service parameter are used for server end and perform general polling method, obtain meeting described service parameter requirement and the Query Result mated with described entry;
The described script that automatically completes receives the described Query Result that described server returns; Described Query Result comprises maximum N number of key-value pair character string, and key-value pair described in each comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
The described script that automatically completes is resolved described key-value pair character string and is obtained analysis result, and shows the occurrence of described analysis result as described entry.
A kind of web page Text Entry completes implementation method automatically, the Text Entry of described web page is loaded with and automatically completes script, describedly automatically complete in script the service parameter comprising and pre-set, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
Described method comprises:
Server receives the described described service parameter and the entry that automatically complete script transmission, and described entry is inputted by user;
Server performs general polling method according to described entry and described service parameter, obtains meeting described service parameter requirement and the Query Result mated with described entry; Described Query Result comprises maximum N number of key-value pair character string;
Server returns described Query Result;
Described general polling method comprises: form OO HQL query statement with the Property Name of described restrictive condition, Business Entity class title, display and described entry, perform described HQL query statement, obtain Query Result data set; Described Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
According to the Property Name of described Business Entity class title and display, the principle of reflection is used to create the discernible object of java language and acquisition methods;
Described acquisition methods is utilized to obtain maximum N number of key-value pair from described Query Result data centralization;
The key-value pair got is combined into key-value pair character string as described Query Result.
A kind of web page Text Entry completes implement device automatically, the Text Entry of described web page is loaded with and describedly automatically completes implement device, the described implement device that automatically completes pre-sets service parameter, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
The described implement device that automatically completes comprises:
First receiving element, for receiving the entry of user's input by described Text Entry;
Transmitting element, for sending described entry and described service parameter to server end, described entry and described service parameter are used for server end and perform general polling method, obtain meeting described service parameter requirement and the Query Result mated with described entry;
Second receiving element, for receiving the described Query Result that described server returns; Described Query Result comprises maximum N number of key-value pair character string, and key-value pair described in each comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
Resolve display unit, obtain analysis result for resolving described key-value pair character string, and show the occurrence of described analysis result as described entry.
A kind of web page Text Entry completes implement device automatically, the Text Entry of described web page is loaded with and automatically completes script, describedly automatically complete in script the service parameter comprising and pre-set, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
The described implement device that automatically completes comprises:
Data receipt unit, for receiving the described described service parameter and the entry that automatically complete script transmission, described entry is inputted by user;
Performance element, for performing general polling method according to described entry and described service parameter, obtains meeting described service parameter requirement and the Query Result mated with described entry; Described Query Result comprises maximum N number of key-value pair character string;
Return unit, for returning described Query Result;
Described general polling method comprises:
Form OO HQL query statement with the Property Name of described restrictive condition, Business Entity class title, display and described entry, perform described HQL query statement, obtain Query Result data set; Described Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
According to the Property Name of described Business Entity class title and display, the principle of reflection is used to create the discernible object of java language and acquisition methods;
Described acquisition methods is utilized to obtain maximum N number of key-value pair from described Query Result data centralization;
The key-value pair got is combined into key-value pair character string as described Query Result.
In embodiments of the present invention, automatically complete in script and pre-set service parameter, after transmission service parameter and entry, server end performs general polling method, to obtain meeting service parameter requirement and the Query Result mated with entry.In general polling method, utilize service parameter to form query statement and acquisition methods, general polling method is equivalent to machine, and service parameter is equivalent to raw material.The raw material added is different, and the product that manufacture goes out is also by difference.Like this, different business can use same general polling method, thus the auto-complete function need not used for different business writes independent implementation method.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment 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 web browser that Fig. 1 a, 1b provide for the embodiment of the present invention and server end interaction realize the schematic flow sheet automatically completed;
What Fig. 2 a, 2c provided for the embodiment of the present invention completes implementation method schematic flow sheet by automatically completing of web page performed by script automatically;
The schematic diagram presenting analysis result with the display mode of combobox that Fig. 2 b provides for the embodiment of the present invention;
What Fig. 3 provided for the embodiment of the present invention automatically completes implementation method schematic flow sheet performed by server;
The Text Entry of the web page that Fig. 4 a, Fig. 4 b and Fig. 5 provide for the embodiment of the present invention is loaded with and above-mentionedly automatically completes implement device.
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.
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
This invention is intended to protection web page Text Entry and automatically complete implementation method and relevant apparatus, to realize auto-complete function.
It is a kind of technology more popular at present that Text Entry completes automatically, the AjaX technology of JS script can be utilized to realize without refreshing prompt facility, or using ripe jQuery library component to realize automatically completing and prompt facility without refreshing, helping us in website, easily add automatically completing and automatic prompting function of input frame.
The Text Entry of indication of the present invention completes different from the memory function of the input frame of browser automatically, the function of input frame memory is after we inputted a thing, the content of input before again pointing out during input, has temporary transient memory in the information of the machine input exactly several times.The function of input frame memory, without the need to coding, only needs the Auto-Complete option in browser to choose.
The scope that the Text Entry of indication of the present invention completes coupling is automatically the entry in specific entry or database, is not limited to the information of mating the machine input.
Specific entry refers to the value of fixed range, and there are how many provinces in the such as whole nation, and its value range is fixing.Specific entry can be stored in program and also can be stored in database.
Fig. 1 a shows the schematic flow sheet that web browser (in automatically complete script) and server end interaction realize automatically completing.The interactive step of web browser and server is as follows:
In S101:web browser (page) automatically complete script by Text Entry receive user input entry.
Above-mentionedly automatically complete in script the service parameter comprising and pre-set.Wherein, service parameter can comprise the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and above-mentioned number is expressed as N.
For example, Business Entity class title can be " personnel ", and the restrictive condition of setting can be " on-job "; The Property Name of display can be " personnel's title ", and the Property Name of preservation can be " person number "; The occurrence number of display can be 6, is also N=6.
It should be noted that above-mentioned service parameter defines the displayable class of business of web page Text Entry.
S102:web browser (automatically completing script) sends above-mentioned entry (assuming that entry is " opening ") and above-mentioned service parameter to server end.
S103: server performs general polling method according to entry and service parameter, obtains meeting above-mentioned service parameter requirement and the Query Result mated with above-mentioned entry.
Above-mentioned general polling method can comprise the steps:
A: form OO HQL query statement with the Property Name of above-mentioned restrictive condition, Business Entity class title, display and above-mentioned entry, perform above-mentioned HQL query statement, obtain Query Result data set.
Wherein, Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of display comprises above-mentioned entry.
Still continue to use precedent, user inputs entry and " opens ", and the key-value pair of Query Result data centralization can comprise:
Zhang Ming-0001, a rich business-0011, Zhang Qin-0111, Zhang Miao-1000, Zhang Wenda-1001, Zhang Xing-1010, Zhang Min-1011, Zhang Xinran-1111 etc.Wherein, Zhang Ming, Zhang Fengshang, Zhang Qin, Zhang Miao etc. are the property value of display, and it comprises entry and " opens "; And the property values for preserving such as 0001,0011,0111,1000.
It should be noted that, in general procedure design, page display be such as name, what preserve in real data is the coding of this name, name and coding composition key-value pair.
B: according to the Property Name of above-mentioned Business Entity class title and display, uses the principle of reflection to create the discernible object of java language and acquisition methods, utilizes above-mentioned acquisition methods to obtain maximum N number of key-value pair from above-mentioned Query Result data centralization;
JAVA reflex mechanism is in running status, for any one class, can both know all properties and the method for this class; For any one object, its any one method can both be called.The function of the information of this Dynamic Acquisition and the method for dynamic call object is called the reflex mechanism of java language.
Java reflex mechanism mainly provides following functions: operationally judge the class belonging to any one object; Operationally construct the object of any one class.
How creating object and create acquisition methods can see prior art, and therefore not to repeat here.
When the key-value pair of Query Result data centralization is more than time N number of, specified quantity (also namely N number of) key-value pair can be obtained in the circulation of Query Result data centralization.And if the key-value pair quantity of data centralization is less than N, then do not perform step B, directly perform step C.
C: the key-value pair got is combined into key-value pair character string as above-mentioned Query Result.
Above-mentioned Query Result comprises maximum N number of key-value pair character string.When combining, for " Zhang Ming-0001 " this key-value pair, separator " | " can be added between, and composition " Zhang Ming | 0001 " character string.
Above-mentioned maximum N number of key-value pair character string can be carried in same message.
S104: server returns above-mentioned Query Result.
S105:web browser (automatically completing script) is resolved above-mentioned key-value pair character string and is obtained analysis result, and shows the occurrence of above-mentioned analysis result as above-mentioned entry.
Web browser (automatically completing script) has preset resolution rules, after server returns Query Result, and the property value utilizing resolution rules can resolve key-value pair character string to obtain showing in key-value pair or key-value pair.
For example, in resolving, for key-value pair character string " Zhang Ming | 0001 ", the property value " Zhang Ming " of display can be extracted according to separator, and " Zhang Ming " is shown as occurrence.
Certainly, if server does not inquire the key-value pair of coupling, then can return null character string as Query Result, web browser does not then show the occurrence with entry.
Visible, in embodiments of the present invention, automatically complete in script and pre-set service parameter, after transmission service parameter and entry, server end performs general polling method, to obtain meeting service parameter requirement and the Query Result mated with entry.Utilize service parameter to form query statement and acquisition methods in general polling method, general polling method is equivalent to machine, and service parameter is equivalent to raw material.The raw material added is different, and the product that manufacture goes out is also by difference.Like this, different business may correspond to same general polling method, thus the auto-complete function need not used for different business writes independent implementation method.
In other embodiments of the present invention, refer to Fig. 1 b, before the entry receiving user's input, above-described embodiment also can comprise the steps: to arrange above-mentioned service parameter.This paper is follow-up to how arranging service parameter will be introduced.
Based on the exchange method shown in Fig. 1 a, Fig. 2 a illustrated embodiment is for automatically completing implementation method by automatically completing of web page performed by script.This automatically completes script and is carried in web page Text Entry place.Wherein, above-mentionedly automatically complete in script the service parameter comprising and pre-set, above-mentioned service parameter comprises the number (N) of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display.
Automatically the implementation method completing script execution can comprise the steps:
S201: automatically complete script receives user's input entry by Text Entry;
More specifically, this automatically completes script and can be jQueryAutocomplete assembly.More specifically, jquery.js, jquery.autocomplete.css and jquery.autocomplete.js file can be comprised.
S202: automatically complete script and send above-mentioned entry and above-mentioned service parameter to server end.
Wherein, entry and service parameter are used for server end and perform general polling method, obtain meeting above-mentioned service parameter requirement and the Query Result mated with above-mentioned entry.
S203: automatically complete script and receive the Query Result that above-mentioned server returns.
Wherein, above-mentioned Query Result comprises maximum N number of key-value pair character string, and each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of above-mentioned display comprises above-mentioned entry.
Such as, user inputs entry and " opens ", and Business Entity class name is called " name ", then the key-value pair of Query Result data centralization can comprise:
Zhang Ming-0001, a rich business-0011, Zhang Qin-0111, Zhang Miao-1000, Zhang Wenda-1001, Zhang Xing-1010, Zhang Min-1011, Zhang Xinran-1111 etc.Wherein, Zhang Ming, Zhang Fengshang, Zhang Qin, Zhang Miao etc. are the property value of display, and it comprises entry and " opens "; And the property values for preserving such as 0001,0011,0111,1000.
S204: automatically complete script and resolve above-mentioned key-value pair character string and obtain analysis result, and show the occurrence of above-mentioned analysis result as above-mentioned entry.
Further, in other embodiments of the present invention, " showing above-mentioned analysis result " in above-mentioned all embodiments can specifically comprise:
The display mode sentencing combobox at Text Entry presents above-mentioned analysis result.
For example, assuming that analysis result comprises Zhang Ming, Zhang Fengshang, Zhang Qin, Zhang Miao, Zhang Wenda, Zhang Xing, then show Zhang Ming, Zhang Fengshang, Zhang Qin, Zhang Miao, Zhang Wenda, Zhang Xing with combobox (referring to Fig. 2 b).
In other embodiments of the present invention, refer to Fig. 2 c, before the entry receiving user's input, above-mentioned all embodiments also can comprise the steps:
S200: above-mentioned service parameter is set.
Comprise service parameter field automatically completing in script, when not carrying out any setting, service parameter field is null field.
Generally, can be arranged service parameter by developer.
Such as, Business Entity class title is set:
ObjNameTemp=" persistent.project.acgpm.TBnsPrjmSetprojectdirect; Wherein, be the title of an entity class class after equal sign, objNameTemp=is fixing, and different business equal signs entity class title is below different.
Restrictive condition is set: conditionTemp=" deleteFlag=' 0 ' " (conditionTemp=is fixing, is different after different restrictive condition equal signs);
The Property Name arranging display is personnel's title (searchNameTemp=" userName ") etc.
Based on the exchange method shown in Fig. 1 a, embodiment illustrated in fig. 3 for automatically completing implementation method performed by server, it can comprise the steps:
S301: server receives the service parameter and entry that automatically complete script transmission.
Above-mentioned entry is inputted by user.
This automatically completes script and is carried in web page Text Entry place.Wherein, above-mentionedly automatically complete in script the service parameter comprising and pre-set, above-mentioned service parameter comprises the number (N) of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display.
S302: server performs general polling method according to above-mentioned entry and above-mentioned service parameter, obtains meeting above-mentioned service parameter requirement and the Query Result mated with above-mentioned entry.
Above-mentioned Query Result comprises maximum N number of key-value pair character string, and each above-mentioned key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of above-mentioned display comprises above-mentioned entry;
S303: server returns above-mentioned Query Result.
Wherein, above-mentioned general polling method comprises the steps:
A: form OO HQL query statement with the Property Name of above-mentioned restrictive condition, Business Entity class title, display and above-mentioned entry, perform above-mentioned HQL query statement, obtain Query Result data set.
Wherein, Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of display comprises above-mentioned entry.
Still continue to use precedent, user inputs entry and " opens ", and the key-value pair of Query Result data centralization can comprise:
Zhang Ming-0001, a rich business-0011, Zhang Qin-0111, Zhang Miao-1000, Zhang Wenda-1001, Zhang Xing-1010, Zhang Min-1011, Zhang Xinran-1111 etc.Wherein, Zhang Ming, Zhang Fengshang, Zhang Qin, Zhang Miao etc. are the property value of display, and it comprises entry and " open ", and the property value that 0001,0011,0111,1000 etc. is preservation.
It should be noted that, in general procedure design, page display be such as name, what preserve in real data is the coding of this name, name and coding composition key-value pair.
B: according to the Property Name of above-mentioned Business Entity class title and display, uses the principle of reflection to create the discernible object of java language and acquisition methods, utilizes above-mentioned acquisition methods to obtain maximum N number of key-value pair from above-mentioned Query Result data centralization.
When the key-value pair of Query Result data centralization is more than time N number of, specified quantity (also namely N number of) key-value pair can be obtained in the circulation of Query Result data centralization.And if the key-value pair quantity of data centralization is less than N, then do not perform step B, directly perform step C.
C: the key-value pair got is combined into key-value pair character string as above-mentioned Query Result.
Above-mentioned Query Result comprises maximum N number of key-value pair character string.When combining, for this key-value pair of Zhang Ming-0001, separator " | " can be added between, and composition " Zhang Ming | 0001 " character string.
More specifically, above-mentioned steps B can comprise the steps:
B1: according to above-mentioned Business Entity class title, uses the principle of reflection to create the discernible object of java language;
Concrete how establishment can with reference to the implementation of prior art, and therefore not to repeat here.
B2: according to the Property Name of above-mentioned display, uses the principle of reflection to create the discernible acquisition methods of java language.
Concrete how establishment can with reference to the implementation of prior art, and therefore not to repeat here.
Presented hereinbefore is all automatically complete implementation method, automatically completes implement device below by introducing web page Text Entry.
Refer to Fig. 4 a, the Text Entry of above-mentioned web page is loaded with and above-mentionedly automatically completes implement device 400.
The above-mentioned implement device 400 that automatically completes can comprise:
First receiving element 401, for receiving the entry of user's input by above-mentioned Text Entry.
Transmitting element 402, for sending above-mentioned entry and above-mentioned service parameter to server end.
Automatically complete implement device and pre-set service parameter.Further, service parameter can comprise the number (N) of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display.
Above-mentioned entry and above-mentioned service parameter can be used for server end and perform general polling method, obtain meeting service parameter requirement and the Query Result mated with entry;
Second receiving element 403, for receiving the above-mentioned Query Result that above-mentioned server returns.
Above-mentioned Query Result comprises maximum N number of key-value pair character string, and each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of above-mentioned display comprises above-mentioned entry.
Resolve display unit 404, obtain analysis result for resolving above-mentioned key-value pair character string, and show the occurrence of above-mentioned analysis result as above-mentioned entry.
Particular content refers to foregoing description herein, and therefore not to repeat here.
In other embodiments of the present invention, in " showing above-mentioned analysis result ", the parsing display unit 404 in above-mentioned all embodiments can be specifically for:
The display mode sentencing combobox at Text Entry presents described analysis result.
In other embodiments of the present invention, refer to Fig. 4 b, above-mentioned device 400 also can comprise:
Setting unit 405, for before the entry receiving user's input, arranges above-mentioned service parameter.
Fig. 5 shows another kind of web page Text Entry and automatically completes implement device 500 (server).
The above-mentioned implement device 500 that automatically completes comprises:
Data receipt unit 501, for receiving the service parameter and entry that automatically complete script transmission, above-mentioned entry is inputted by user.
This automatically completes script and is carried in web page Text Entry place.Wherein, above-mentionedly automatically complete in script the service parameter comprising and pre-set, above-mentioned service parameter comprises the number (N) of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display.
Performance element 502, for performing general polling method according to above-mentioned entry and above-mentioned service parameter, obtains meeting above-mentioned service parameter requirement and the Query Result mated with above-mentioned entry.
Above-mentioned Query Result comprises maximum N number of key-value pair character string, and each above-mentioned key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of above-mentioned display comprises above-mentioned entry;
Return unit 503, for returning above-mentioned Query Result.
Wherein, above-mentioned general polling method can comprise the steps:
A: form OO HQL query statement with the Property Name of above-mentioned restrictive condition, Business Entity class title, display and above-mentioned entry, perform above-mentioned HQL query statement, obtain Query Result data set.
Wherein, Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of display comprises above-mentioned entry.
Still continue to use precedent, user inputs entry and " opens ", and the key-value pair of Query Result data centralization can comprise:
Zhang Ming-0001, a rich business-0011, Zhang Qin-0111, Zhang Miao-1000, Zhang Wenda-1001, Zhang Xing-1010, Zhang Min-1011, Zhang Xinran-1111 etc.Wherein, Zhang Ming, Zhang Fengshang, Zhang Qin, Zhang Miao etc. are the property value of display, and it comprises entry and " open ", and the property value that 0001,0011,0111,1000 etc. is preservation.
It should be noted that, in general procedure design, page display be such as name, what preserve in real data is the coding of this name, name and coding composition key-value pair.
B: according to the Property Name of above-mentioned Business Entity class title and display, uses the principle of reflection to create the discernible object of java language and acquisition methods, utilizes above-mentioned acquisition methods to obtain maximum N number of key-value pair from above-mentioned Query Result data centralization.
When the key-value pair of Query Result data centralization is more than time N number of, specified quantity (also namely N number of) key-value pair can be obtained in the circulation of Query Result data centralization.And if the key-value pair quantity of data centralization is less than N, then do not perform step B, directly perform step C.
C: the key-value pair got is combined into key-value pair character string as above-mentioned Query Result.
Above-mentioned Query Result comprises maximum N number of key-value pair character string.When combining, for this key-value pair of Zhang Ming-0001, separator " | " can be added between, composition Zhang Ming | 0001 character string.
In other embodiments of the present invention, at the above-mentioned Property Name according to above-mentioned Business Entity class title and display, use the principle of reflection to create the aspect of the discernible object of java language and acquisition methods, above-mentioned performance element 502 can be specifically for:
According to above-mentioned Business Entity class title, the principle of reflection is used to create the discernible object of java language;
According to the Property Name of above-mentioned display, the principle of reflection is used to create the discernible acquisition methods of java language.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For system disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a web page Text Entry completes implementation method automatically, it is characterized in that, the Text Entry of described web page is loaded with and automatically completes script, describedly automatically complete in script the service parameter comprising and pre-set, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
Described implementation method comprises:
The described entry automatically completing script and inputted by described Text Entry reception user;
The described script that automatically completes sends described entry and described service parameter to server end, and described entry and described service parameter are used for server end and perform general polling method, obtain meeting described service parameter requirement and the Query Result mated with described entry;
The described script that automatically completes receives the described Query Result that described server returns; Described Query Result comprises maximum N number of key-value pair character string, and key-value pair described in each comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
The described script that automatically completes is resolved described key-value pair character string and is obtained analysis result, and shows the occurrence of described analysis result as described entry.
2. the method for claim 1, is characterized in that, before the entry receiving user's input, also comprises: arrange described service parameter.
3. method as claimed in claim 1 or 2, it is characterized in that, the described analysis result of described display comprises:
The display mode sentencing combobox at described Text Entry presents described analysis result.
4. the method for claim 1, is characterized in that, in described key-value pair character string, there is separator between the property value of the property value of display and the preservation of correspondence.
5. a web page Text Entry completes implementation method automatically, it is characterized in that, the Text Entry of described web page is loaded with and automatically completes script, describedly automatically complete in script the service parameter comprising and pre-set, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
Described method comprises:
Server receives the described described service parameter and the entry that automatically complete script transmission, and described entry is inputted by user;
Server performs general polling method according to described entry and described service parameter, obtains meeting described service parameter requirement and the Query Result mated with described entry; Described Query Result comprises maximum N number of key-value pair character string;
Server returns described Query Result;
Described general polling method comprises: form OO HQL query statement with the Property Name of described restrictive condition, Business Entity class title, display and described entry, perform described HQL query statement, obtain Query Result data set; Described Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
According to the Property Name of described Business Entity class title and display, the principle of reflection is used to create the discernible object of java language and acquisition methods;
Described acquisition methods is utilized to obtain maximum N number of key-value pair from described Query Result data centralization;
The key-value pair got is combined into key-value pair character string as described Query Result.
6. method as claimed in claim 5, is characterized in that, the described Property Name according to described Business Entity class title and display, uses the principle of reflection to create the discernible object of java language and acquisition methods comprises:
According to described Business Entity class title, the principle of reflection is used to create the discernible object of java language;
According to the Property Name of described display, the principle of reflection is used to create the discernible acquisition methods of java language.
7. a web page Text Entry completes implement device automatically, it is characterized in that, the Text Entry of described web page is loaded with and describedly automatically completes implement device, the described implement device that automatically completes pre-sets service parameter, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
The described implement device that automatically completes comprises:
First receiving element, for receiving the entry of user's input by described Text Entry;
Transmitting element, for sending described entry and described service parameter to server end, described entry and described service parameter are used for server end and perform general polling method, obtain meeting described service parameter requirement and the Query Result mated with described entry;
Second receiving element, for receiving the described Query Result that described server returns; Described Query Result comprises maximum N number of key-value pair character string, and key-value pair described in each comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
Resolve display unit, obtain analysis result for resolving described key-value pair character string, and show the occurrence of described analysis result as described entry.
8. device as claimed in claim 7, is characterized in that, also comprise:
Setting unit, for before the entry receiving user's input, arranges described service parameter.
9. a web page Text Entry completes implement device automatically, it is characterized in that, the Text Entry of described web page is loaded with and automatically completes script, describedly automatically complete in script the service parameter comprising and pre-set, described service parameter comprises the number of occurrence of restrictive condition, Business Entity class title, the Property Name of display, the Property Name of preservation and display, and described number is expressed as N;
The described implement device that automatically completes comprises:
Data receipt unit, for receiving the described described service parameter and the entry that automatically complete script transmission, described entry is inputted by user;
Performance element, for performing general polling method according to described entry and described service parameter, obtains meeting described service parameter requirement and the Query Result mated with described entry; Described Query Result comprises maximum N number of key-value pair character string;
Return unit, for returning described Query Result;
Described general polling method comprises:
Form OO HQL query statement with the Property Name of described restrictive condition, Business Entity class title, display and described entry, perform described HQL query statement, obtain Query Result data set; Described Query Result data centralization comprises M key-value pair, M>=0; Each key-value pair comprises the property value of display and the property value of corresponding preservation, and the property value of described display comprises described entry;
According to the Property Name of described Business Entity class title and display, the principle of reflection is used to create the discernible object of java language and acquisition methods;
Described acquisition methods is utilized to obtain maximum N number of key-value pair from described Query Result data centralization;
The key-value pair got is combined into key-value pair character string as described Query Result.
10. device as claimed in claim 9, is characterized in that, at the described Property Name according to described Business Entity class title and display, uses the principle of reflection to create the aspect of the discernible object of java language and acquisition methods, described performance element specifically for:
According to described Business Entity class title, the principle of reflection is used to create the discernible object of java language;
According to the Property Name of described display, the principle of reflection is used to create the discernible acquisition methods of java language.
CN201510779435.5A 2015-11-13 2015-11-13 Web page Text Entry is automatically performed implementation method and device Active CN105224696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510779435.5A CN105224696B (en) 2015-11-13 2015-11-13 Web page Text Entry is automatically performed implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510779435.5A CN105224696B (en) 2015-11-13 2015-11-13 Web page Text Entry is automatically performed implementation method and device

Publications (2)

Publication Number Publication Date
CN105224696A true CN105224696A (en) 2016-01-06
CN105224696B CN105224696B (en) 2018-09-18

Family

ID=54993664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510779435.5A Active CN105224696B (en) 2015-11-13 2015-11-13 Web page Text Entry is automatically performed implementation method and device

Country Status (1)

Country Link
CN (1) CN105224696B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108429A (en) * 2017-12-01 2018-06-01 深圳市小牛在线互联网信息咨询有限公司 Date storage method, device, storage medium and the computer equipment of terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030195879A1 (en) * 2002-04-12 2003-10-16 Arsen Pereymer Data collection technology useful for form manipulation
CN1936894A (en) * 2006-10-12 2007-03-28 魏新成 Method for searching key word and inputting in turn search service character symbol on address search column
CN101022619A (en) * 2007-03-15 2007-08-22 魏新成 Immediate online searching operation after cellphone standly state inputting alphabet string
CN101266608A (en) * 2008-05-09 2008-09-17 魏新成 Method for on-line searching for computer screen displayed text character string
CN102207816A (en) * 2010-07-16 2011-10-05 北京搜狗科技发展有限公司 Method for performing adaptive input based on input environment, and input method system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030195879A1 (en) * 2002-04-12 2003-10-16 Arsen Pereymer Data collection technology useful for form manipulation
CN1936894A (en) * 2006-10-12 2007-03-28 魏新成 Method for searching key word and inputting in turn search service character symbol on address search column
CN101022619A (en) * 2007-03-15 2007-08-22 魏新成 Immediate online searching operation after cellphone standly state inputting alphabet string
CN101266608A (en) * 2008-05-09 2008-09-17 魏新成 Method for on-line searching for computer screen displayed text character string
CN102207816A (en) * 2010-07-16 2011-10-05 北京搜狗科技发展有限公司 Method for performing adaptive input based on input environment, and input method system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108429A (en) * 2017-12-01 2018-06-01 深圳市小牛在线互联网信息咨询有限公司 Date storage method, device, storage medium and the computer equipment of terminal device
CN108108429B (en) * 2017-12-01 2020-08-18 深圳市小牛在线互联网信息咨询有限公司 Data storage method and device of terminal equipment, storage medium and computer equipment

Also Published As

Publication number Publication date
CN105224696B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
US10678516B2 (en) Chatbot builder user interface
CN105260299A (en) Method, device, and system for software test
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
US9563415B2 (en) Generating visually encoded dynamic codes for remote launching of applications
CN104683877A (en) TV remote text input method
CN105354014A (en) Application interface rendering display method and apparatus
CN104580454A (en) Data synchronizing method, device and system
US10205678B2 (en) Systems and methods for client-side dynamic information resource activation and deactivation
CN104615463B (en) A kind of system property setting method and terminal
CN110489087B (en) Method, device, medium and electronic equipment for generating fractal structure
US20180095604A1 (en) Rendering components based on screen size
CN103761327A (en) Resource sharing method and system, terminal and server
CN107506662B (en) Information interaction method and device, computer readable network storage medium and terminal
CN102929971A (en) Multimedia information playing method and system
US20150172240A1 (en) Content sharing scheme
CN103136342A (en) Searching method, system and searching server of application programs (APP)
CN101957756A (en) System and method for rapidly generating intelligent mobile terminal program
CN111104108B (en) Display interface WPF generation method and device
CN104123125A (en) Webpage resource acquisition method and device
CN106844471A (en) A kind of electronic operation and maintenance system form data processing method and server
US20120204161A1 (en) Automated Code Map Generation for an Application Programming Interface of a Programming Language
AU2016101498B4 (en) Data Interchange System
CN109542404A (en) Construction method, device, storage medium and the electronic equipment of page assembly
CN105224696A (en) Web page Text Entry completes implementation method and device automatically
CN104639973A (en) Information pushing method and device

Legal Events

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