CN103699649B - Handle interface element and the system and its implementation of data mapping - Google Patents
Handle interface element and the system and its implementation of data mapping Download PDFInfo
- Publication number
- CN103699649B CN103699649B CN201310732978.2A CN201310732978A CN103699649B CN 103699649 B CN103699649 B CN 103699649B CN 201310732978 A CN201310732978 A CN 201310732978A CN 103699649 B CN103699649 B CN 103699649B
- Authority
- CN
- China
- Prior art keywords
- data
- physical model
- data transmission
- application service
- entity
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/211—Schema design and management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The processing interface element of the present invention and the system and its implementation of data mapping, allow to separate the data transfer model of definition interfaces element needs and the physical model of data access, then two kinds of models progress are mutually converted and operated by application service, realized by the way that data transfer model is converted to data access physical model through interface to data addition, modification;By the inquiry that data access physical model is converted to data transfer model realization data.The intermediate application service layer of this introducing can effectively split interface element with background business logic, realize clearer framework and more unified processing.
Description
Technical field
The present invention relates to information technology, analysis and survey control technology fields, and in particular to it is a kind of processing interface element with
The system and its implementation of data mapping.
Background technology
In modern Application service, the application service of either client/server mode or browser server pattern all can
It is related to the access to database, such as the access of SQL Server.When our application service passes through interface needs pair
When data are added, delete, change or inquire about, it will usually which corresponding one table of database or multiple tables are accessed or grasped
Make, traditional mode of operation be directly accessed by interface or operating database in a table or multiple tables, it is this traditional
Mode can bring two problems, first, interface and service logic and data access are mixed and used, framework is unclear, the other is
There is no a kind of method that unified method comes dividing processing interface element and domain model.
The content of the invention
The present invention overcomes the deficiencies in the prior art, provide it is a kind of interface element is effectively split with background business logic,
Realize clearer framework and more unified processing interface element and the system and its implementation of data mapping.
In view of the above problem of the prior art, disclosed one side, the present invention use following technology according to the present invention
Scheme:
It is a kind of to handle interface element and the system of data mapping, including:
Database;
User carries out the data transmission object of operation generation on interface element;
Physical model comprising entity object corresponding with the data transmission object on the physical model, is generating institute
In the case of stating data transmission object, the data transmission object is mapped with the physical model;
Application service layer, the application service layer are unlocked the data transmission object and are reflected with what the physical model generated
It penetrates, with the user information entity needed;
Business Logic is reflected by the user information entity and the Business Logic that are obtained after the application service layer
It penetrates, to obtain or create corresponding entity object information, which passes through
Data access layer is persisted in the database.
In order to which the present invention is better achieved, further technical solution is:
An embodiment according to the present invention, the physical model are located on the application service layer.
An embodiment according to the present invention,
The application service layer is included to the mutual of data connection object and the corresponding entity object on the physical model
Conversion.
The present invention can also be:
It is a kind of to handle interface element and the method for data mapping, including:
User carries out the data transmission object of operation generation on interface element;
It is provided on physical model comprising entity object corresponding with the data transmission object, is generating the data
In the case of connection object, the data transmission object is mapped with the physical model;
The data transmission object and the mapping of physical model generation are unlocked by application service layer, to be needed
User information entity;
The user information entity obtained after the application service layer is made to be mapped with the Business Logic, to obtain or create
Corresponding entity object information is built, which is persisted to by data access layer in the database.
An embodiment according to the present invention, the physical model are located on the application service layer.
An embodiment according to the present invention, the application service layer are included to data connection object and the entity mould
The mutual conversion of corresponding entity object in type.
Compared with prior art, one of beneficial effects of the present invention are:
The processing interface element of the present invention and the system and its implementation of data mapping, allow to separate definition interfaces element
Then the data transfer model and the physical model of data access needed is mutually converted two kinds of models by application service
And operation, it is realized by the way that data transfer model is converted to data access physical model through interface to data addition, modification;It is logical
Cross the inquiry that data access physical model is converted to data transfer model and realizes data.The intermediate application service layer of this introducing
Interface element with background business logic can effectively be split, realize clearer framework and more unified processing.
Description of the drawings
Illustrate present specification embodiment or technical solution of the prior art in order to clearer, it below will be to embodiment
Or attached drawing is briefly described needed in the description of the prior art, it should be apparent that, the accompanying drawings in the following description is only
It is the reference to some embodiments in present specification, for those skilled in the art, what is do not made the creative labor
In the case of, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 shows that the present invention realizes that user information creates example block diagram.
Fig. 2 shows exemplary graphical user when user information according to an embodiment of the invention creates.
Fig. 3 shows graphical representation of exemplary when user information according to an embodiment of the invention creates.
Fig. 4 shows information flow, the exemplary sequence diagram of processing when user information creates between each system.
Specific embodiment
The present invention is described in further detail with reference to embodiment, but the implementation of the present invention is not limited to this.
Fig. 1 shows that realization user information according to an embodiment of the invention creates example block diagram.This hair as shown in Figure 1
Bright example embodiment scheme, it is intended to illustrate the function of each participant or system in the method for the invention, the present invention does not limit to
In a kind of this realization.Be not excluded for some embodiments scheme increases auxiliary additional function in some aspects.
User is accessed by internet 102 using arbitrary browser 101 and creates user information interface, user service platform
After 103 receive user's establishment message, user's connection object and user subject object map can be created, and gives application service platform
104 are handled, and the application service of application service platform 104 can solve open mapping, and obtain user information entity 105, and pass through
Business Logic 106 creates user information entity object, gives object to data access layer system 107 and handles, and data are visited
Ask layer system 107 by Object Persistence into database.
Fig. 2 shows exemplary graphical user when user information according to an embodiment of the invention creates.Such as
Exemplary interfaces shown in Fig. 2, it is intended to the interaction essential metadata of example one user information of OA system creations under normal circumstances, and
The layout and pattern at interface are not limited, other embodiment interface is not limited yet and adds other interaction datas.
The user name of user is inputted at 208;The gender of user is selected at 209;Department at 210 residing for selection user, 211
The birthday of place's selection user.With the combination of top box, there may be different set by its option because of actual conditions.
User name logs in the account name of OA systems as user at 208, and account indicates user to system accordingly.It is selected at 209
The gender of user, gender can select man or female.The department residing for user is selected at 210, department is being created in other functions
's.The date of birth of user is selected at 211.Fill in it is errorless after, user submits at 212.When submitting successfully, user can receive wound
The successful message notifying of user information is built, and shows the user name of the user of establishment.
Fig. 3 shows graphical representation of exemplary when user information according to an embodiment of the invention creates.As shown in figure 3,
It is intended to illustrate that meeting the present invention creates the flow direction of critical data and processing needed for user method, is not limited in this flow direction and processing
This data is only contained in the process.
Various interface elements is definite when at 301 to create user information, and system can automatically be considered as interface element at 302
One data connection object is shown at 303 when being created, and data transmission object is first converted to entity pair by application service
As, the entity object method that can will be obtained at 304, by calling the establishment entity object method of service logic, at 305 by
To establishment object and by being persisted in database purchase.
Fig. 4 shows information flow, the exemplary sequence diagram of processing when user information creates between each system.Such as figure
4 show complete the business for creating user information participate in information flows between each side and each system, processing it is exemplary suitable
Sequence.1)User inputs or selects to create the information of the various aspects of user on interface;2)User service can be given by creating information
Layer processing;3)User service layer can automatically create the mapping of user information data transmission object and user information entity object, and
Call the establishment object method of application service layer;4)Application service layer, which creates object method, can solve the data transmission object of open mapping
With user information entity object, and the establishment object method of Business Logic is called;5)Business Logic calls persistence object
To database method and return user information create successful information.
A kind of processing interface element in summary and the method for data mapping, physical model can be located at application service layer
It is upper or individual;By the mutual conversion of entity object, data transmission object, not only the establishment convenient for data, look into
It askes, transmission, and can individually be carried out when modifying to modules, such as modified to Business Logic
When, it can not modify to other parts.
It is provided on physical model comprising entity object corresponding with the data transmission object, is generating the data
In the case of connection object, the data transmission object is mapped with the physical model, such as creates " name " in user interface, then
Corresponding " name " entity attribute is mapped out on physical model accordingly, the mapping created at this time includes the information of needs,
It may also include extra information;Therefore, it is necessary to unlock the data transmission object and the entity mould by application service layer
The mapping that type generates, with the user information entity needed, the method unlocked at this time can be generally use in the prior art
Method;The user information entity obtained after the application service layer is made to be mapped with the Business Logic, to obtain or create
Build corresponding entity object information, such as above " name " corresponding entity object information on Business Logic, the entity pair
Image information is persisted to by data access layer in the database.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with it is other
The difference of embodiment, identical similar portion cross-reference between each embodiment.
" one embodiment " for being spoken of in the present specification, " another embodiment ", " embodiment ", etc., refer to tying
Specific features, structure or the feature for closing embodiment description are included at least one embodiment of the application generality description
In.It is not centainly to refer to same embodiment that statement of the same race, which occur, in multiple places in the description.Appoint furthermore, it is understood that combining
When one embodiment describes a specific features, structure or feature, what is advocated is this to realize with reference to other embodiment
Feature, structure or feature are also fallen within the scope of the present invention.
Although reference be made herein to invention has been described for multiple explanatory embodiments of the invention, however, it is to be understood that
Those skilled in the art can be designed that a lot of other modifications and embodiment, these modifications and embodiment will fall in this Shen
It please be within disclosed spirit and spirit.It more specifically, can in the range of disclosure, drawings and claims
A variety of variations and modifications are carried out with the building block to theme combination layout and/or layout.Except to building block and/or layout
Outside the variations and modifications of progress, to those skilled in the art, other purposes also will be apparent.
Claims (4)
1. a kind of handle interface element and the system of data mapping, which is characterized in that including:
Database;
User carries out the data transmission object of operation generation on interface element;
Physical model comprising entity object corresponding with the data transmission object on the physical model, is generating the number
In the case of according to connection object, the data transmission object is mapped with the physical model;
Application service layer, the application service layer unlock the mapping that the data transmission object is generated with the physical model, with
The user information entity needed;The application service layer includes corresponding on the physical model to data connection object
The mutual conversion of entity object;For by data transmission object be converted to physical model realize by interface to data add, repair
Change, physical model is converted to the inquiry of data transmission object implementatio8 data;
Business Logic is mapped by the user information entity and the Business Logic that are obtained after the application service layer, with
Corresponding entity object information is obtained or creates, which passes through
Data access layer is persisted in the database.
2. processing interface element according to claim 1 and the system of data mapping, which is characterized in that the physical model
On the application service layer.
3. it is a kind of realize as claimed in claim 1 or 2 the processing interface element of the system of processing interface element and data mapping with
The method of data mapping, which is characterized in that including:
User carries out the data transmission object of operation generation on interface element;
It is provided on physical model comprising entity object corresponding with the data transmission object, is generating the data transmission
In the case of object, the data transmission object is mapped with the physical model;
The data transmission object and the mapping of physical model generation are unlocked by application service layer, with the use needed
Family information entity;The application service layer includes the phase to data connection object and the corresponding entity object on the physical model
Mutually conversion;It is realized for data transmission object to be converted to physical model through interface to data addition, modification, by physical model
Be converted to the inquiry of data transmission object implementatio8 data;
The user information entity obtained after the application service layer is made to be mapped with the Business Logic, to obtain or create phase
The entity object information answered, the entity object information are persisted to by data access layer in the database.
4. processing interface element according to claim 3 and the method for data mapping, which is characterized in that the physical model
On the application service layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310732978.2A CN103699649B (en) | 2013-12-26 | 2013-12-26 | Handle interface element and the system and its implementation of data mapping |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310732978.2A CN103699649B (en) | 2013-12-26 | 2013-12-26 | Handle interface element and the system and its implementation of data mapping |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103699649A CN103699649A (en) | 2014-04-02 |
CN103699649B true CN103699649B (en) | 2018-05-25 |
Family
ID=50361177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310732978.2A Active CN103699649B (en) | 2013-12-26 | 2013-12-26 | Handle interface element and the system and its implementation of data mapping |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103699649B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699834B (en) * | 2015-03-31 | 2018-11-20 | 成都市卓睿科技有限公司 | Optimize the method for database data access |
CN105607906B (en) * | 2015-12-18 | 2019-03-22 | 苏州奖多多科技有限公司 | A kind of service implementation method, device and electronic equipment |
CN106547964B (en) * | 2016-10-21 | 2019-10-22 | 北京宇航系统工程研究所 | One kind being used for isomery lattice interface data mapping method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114226A (en) * | 2007-08-28 | 2008-01-30 | 北京中企开源信息技术有限公司 | Code automatically generating device based on model component, system and method |
CN101996071A (en) * | 2009-08-20 | 2011-03-30 | 上海杉达学院 | Software architecture of information control system and architecting method |
CN102929898A (en) * | 2011-08-12 | 2013-02-13 | 微软公司 | Semantic query engine of structured database |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7783500B2 (en) * | 2000-07-19 | 2010-08-24 | Ijet International, Inc. | Personnel risk management system and methods |
-
2013
- 2013-12-26 CN CN201310732978.2A patent/CN103699649B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114226A (en) * | 2007-08-28 | 2008-01-30 | 北京中企开源信息技术有限公司 | Code automatically generating device based on model component, system and method |
CN101996071A (en) * | 2009-08-20 | 2011-03-30 | 上海杉达学院 | Software architecture of information control system and architecting method |
CN102929898A (en) * | 2011-08-12 | 2013-02-13 | 微软公司 | Semantic query engine of structured database |
Also Published As
Publication number | Publication date |
---|---|
CN103699649A (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107451109B (en) | Report generation method and system | |
CN105843945A (en) | Report generation method and system | |
CN108052635A (en) | A kind of heterogeneous data source unifies conjunctive query method | |
JP6582819B2 (en) | Database linkage system and database linkage program | |
CN103699649B (en) | Handle interface element and the system and its implementation of data mapping | |
CN106777142A (en) | Service layer's system and method based on mobile Internet mass data | |
CN107146074A (en) | Work order task cooperation processing method, device and computer-readable recording medium | |
CN110019314A (en) | Dynamic data packaging method, client and server-side based on data item analysis | |
CN108108986A (en) | A kind of design method of CRM system, device and electronic equipment | |
CN106503217B (en) | Data interaction device and method based on business driving | |
JP6599065B1 (en) | Machine learning model co-creation system, machine learning model co-creation method, and program | |
CN106302368A (en) | Transaction methods and device | |
CN107222542A (en) | A kind of construction method of cloud service management system | |
CN109902182A (en) | Knowledge data processing method, device, equipment and storage medium | |
CN116992092A (en) | Method and device for establishing flow model, storage medium and terminal equipment | |
CN104168330A (en) | Optimal compensation method for solving Web service combination anomaly based on relational graph | |
Ma et al. | Collaborative feature-based design via operations with a fine-grain product database | |
CN110990637A (en) | Method and device for constructing network map | |
CN109033447B (en) | Face recognition data visualization system | |
CN113449354A (en) | IPDE-based ship product three-dimensional model data visualization construction method | |
CN103384239B (en) | Report generating method and system | |
Fang et al. | Using object oriented analysis design workflow engine for manufacturing industry in IoT | |
Liu et al. | A BIM-based collaborative design platform for variegated specialty design | |
Ziani | Configuration in ERP SaaS Multi-Tenancy | |
CN109286657A (en) | Research and development cooperation with service model based on multisystem |
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 |