CN108399188B - Universal establishing and processing method for strong service object based on type metadata - Google Patents

Universal establishing and processing method for strong service object based on type metadata Download PDF

Info

Publication number
CN108399188B
CN108399188B CN201810054972.7A CN201810054972A CN108399188B CN 108399188 B CN108399188 B CN 108399188B CN 201810054972 A CN201810054972 A CN 201810054972A CN 108399188 B CN108399188 B CN 108399188B
Authority
CN
China
Prior art keywords
type
action
attribute
universal
strong
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
Application number
CN201810054972.7A
Other languages
Chinese (zh)
Other versions
CN108399188A (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 Greatmap Technology Co ltd
Original Assignee
Beijing Greatmap 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 Greatmap Technology Co ltd filed Critical Beijing Greatmap Technology Co ltd
Priority to CN201810054972.7A priority Critical patent/CN108399188B/en
Publication of CN108399188A publication Critical patent/CN108399188A/en
Application granted granted Critical
Publication of CN108399188B publication Critical patent/CN108399188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/2457Query processing with adaptation to user needs
    • G06F16/24573Query processing with adaptation to user needs using data annotations, e.g. user-defined metadata
    • 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/21Design, administration or maintenance of databases

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)
  • Library & Information Science (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a general establishing and processing method of a strong service object based on type metadata, which is characterized in that the strong service object is rapidly established by configuring the type metadata for the strong service object, integrating entity attribute, relationship attribute, data source connection, a data access layer, ACTIONS and UI configuration, combining a signal slot technology, a plug-in technology and a transverse logic processing technology, unifying general service logic by taking the type as a target and reserving an inlet for customizing the service logic, and can rapidly and efficiently process the strong service object according to the service logic and reduce the workload of research and development and maintenance.

Description

Universal establishing and processing method for strong service object based on type metadata
Technical Field
The invention relates to the field of information system construction, in particular to a general establishing and processing method of a strong business object based on type metadata.
Background
Information systems often have a large number of strong business objects and business processes to support their applications in specific fields, and in the process of research and development of information systems, the work of creating and processing strong business objects, etc., is full of a large amount of repetitive labor, and can occupy most of research and development costs. The strong service object is a strong type dataset, the establishment of the strong service object is to add a mark to an existing or newly-established entity, define an attribute set of the entity and generate a strong service object. The entity is a collection of some kind of things, which can be concrete things or abstract concepts. And after the strong business object is established, processing the strong business object according to business logic.
In order to solve the above problems, the industry has originally adopted a policy of self-defining objects, a user can extend an attribute set of an entity, a database structure can be automatically updated along with the change of the attribute set, and differences between different database types can be shielded through the management of a data source. The method essentially takes the attribute set of an entity as an extended custom attribute, the custom attribute is only taken as a unit for reading and writing data, cannot be added with specific business meanings and basically does not participate in business logic, so that the extended attribute set has no great practical effect on processing strong business objects.
Then, in order to avoid representing the extended attribute set as only one field composed of character strings, a new architecture has emerged, which develops DAL (Data Access Layer) for different types of entities. The fields defined by user participation may also have their special meaning, rather than simply having the attributes defined by user participation as abstract fields to store field values, and therefore some business logic may be added to this basis to handle strong business objects. However, this method needs a plurality of DAOs (Data access objects) and service logic classes that are continuously extended, so that the development cost is high, the maintenance difficulty is high, and it is not possible to uniformly and efficiently process strong service objects.
Disclosure of Invention
In view of this, the present invention provides a general establishment and processing method for a strong service object based on type metadata, which realizes unified and efficient establishment and processing of the strong service object, and significantly reduces workload of information system research and development and maintenance.
Based on the above object, the present invention provides a general building and processing method for strong service object based on type metadata, which comprises the following steps:
defining a configuration attribute set and a relationship configuration item of the newly-built entity, wherein the attribute configuration item comprises an attribute name, a representation name, a description, a database column name, a data type, a display mode, a sorting method, a classification characteristic and an editing characteristic; the relationship configuration item includes: left entity type, left entity identification, right entity type, relationship mode and sequence number;
adding Attribute to the extended Attribute by the information system;
defining DALs of various types and corresponding connection data sources and type association data sources;
configuring various types of available operations for the ACTION configuration item; the ACTION configuration item creates custom logic outside of general processing by extending new command providers and slot functions;
determining the type of the ACTION, and designing a general response corresponding to the ACTION by the information system according to the type of the ACTION; the category of the ACTION is determined by an enumeratable operation;
configuring various types of link pages for UI configuration items, wherein the pages comprise: a management page, a query page, a detailed information page and an associated object attribute page;
obtaining database-driven information from a data source, obtaining information of a data model from a metadata model, and generating DALs for different database drives; providing service for the outside by taking the type as Key;
establishing a new entity by using the DAL and the configuration Attribute set, the relationship configuration item, the Attribute, the DAL, the UI configuration item and the configuration item and category of the ACTION; generating the strong business object according to the new entity;
enumerating a type of universal ACTION set and providing a default universal responder for each universal ACTION; if the general response of an ACTION does not meet the service requirement of a specific object, responding by a newly expanded command provider, otherwise, directly using the general response to generate the CRUD service logic; generating an interface operation inlet according to the UI configuration; and according to the CRUD business logic, using the interface operation entry to realize the quick processing of the strong business object.
As one embodiment, the enumerable operations include, but are not limited to: general creation, editing, deleting, adding, removing, expanding detailed information, marking positions and tracking tracks.
As an embodiment, the main functions realized by the business logic and interface operation entry comprise query, insertion, update and deletion operations.
As one embodiment, the DAL layer functions include, but are not limited to, query, insert, update, delete operations on a data table.
As an embodiment, the database includes not only a database within the information system but also a database outside the information system.
As an embodiment, the providing the service to the outside by using the type as Key includes: creating a data table, updating a data table structure, performing data editing operations, and performing various queries.
As one embodiment, the page includes: an attribute presenter, an editor, a data list, an attachment manager, and a number of associated object pages.
As one embodiment, the editor has several different editing input modes, including: editing the input directly, selecting the input from a number of alternatives, filling the input by the user, or selecting the input from the results of a sub-query.
As one embodiment, the editor implements new input modes by expanding modes.
It can be seen from the above that, the general establishment and processing method of a strong service object based on type metadata provided by the present invention configures the type metadata for the strong service object, integrates entity attributes, relationship attributes, data source connection, data access layer, ACTION, UI configuration, combines signal slot technology, plug-in technology and cross-cut logic processing technology, quickly establishes the strong service object, unifies general service logic with the type as a target, and reserves an entry for customizing service logic, according to the service logic, can realize quick and efficient processing of the strong service object, and reduce workload of research and development and maintenance.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a new entity implementing new logic according to an embodiment of the present invention;
FIG. 2 is a block diagram of a typed metadata system in accordance with an embodiment of the invention;
fig. 3 is a flowchart of a general building and processing method of a strong business object based on type metadata according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
As shown in fig. 1, a flow chart for implementing new logic for a newly created entity. It can be seen that when a strong business object is created, many attributes need to be defined repeatedly, including: new traffic type, attribute set, connection data source, association data source, ACTION, command provider, and Link page. Thus resulting in a large amount of repetitive and burdensome work.
As shown in fig. 2, is a diagram of a typed metadata system architecture.
The general idea of the strong service object general establishing and processing method based on the type metadata is based on the configuration of the type metadata, the entity attribute, the relation attribute, the data source connection, the data access layer, the ACTION and the UI configuration are integrated, the signal slot technology, the plug-in technology and the transverse cutting logic processing technology are combined, the strong service object is quickly established, the type is taken as the target to unify the general service logic, an entrance for customizing the service logic is reserved, and the strong service object can be quickly processed according to the service logic.
As shown in fig. 3, a flowchart of a method for generic creation and processing of a strong service object based on type metadata according to an embodiment of the present invention includes the steps of:
step 301, defining configuration attribute set and relationship configuration item of the new entity, including attribute set, representation name, display mode, sorting method and editing characteristic of each type.
At step 302, the information system adds an Attribute (flag) to the extended Attribute, and the information system finally programs the Attribute, regardless of the extended field of the extended Attribute itself.
Step 303, defining DALs of each type and corresponding connection data sources and type-associated data sources, where the data sources are configured with information such as corresponding database drive types and connection parameters. The DAL only corresponds to a data source that stores connection information for the database. The DAL layer mainly has the function of being responsible for accessing the database, namely, realizing operations such as query, insertion, update, deletion and the like on the data table. The database may be either a database within the information system or a database outside the information system.
And step 304, configuring various types of available operations for the ACTION configuration item, wherein the available operations comprise general command providers and corresponding slot functions, and the ACTION configuration item can realize customized logic beyond general processing by expanding new command providers and slot functions.
Step 305: and determining the category of the ACTION, wherein the information system can design a general response corresponding to the ACTION according to the category of the ACTION. And if the general response of the ACTION does not meet the service requirement of the specific object, responding by a newly expanded command provider. The category of the ACTION is determined by an enumeratable operation. The enumerable operations include: general creation, editing, deletion, addition, removal, expansion of detailed information, location marking, and track tracing.
Step 306, configuring various types of link pages for the UI configuration items, wherein the pages comprise: management page, inquiry page, detailed information page and associated object attribute page. Generally, a certain type of page has a property indicator, an editor integrating several editing parts, a data list, an attachment manager, and several associated object pages. The editor has a plurality of different editing input modes, including: editing the input directly, selecting the input from a number of alternatives, filling the input by the user, or selecting the input from the results of a sub-query. The editor may be extensible and its input modes may be enumerated. Even if a new input mode exists, the input mode can still be realized by expanding the editor. The editor framework can be applied whenever a new entity, an editing entity or a querying entity needs to fill in filter terms.
Step 307, automatically generating DALs (data access layers) for different database drivers according to the attribute configuration and the data source configuration, acquiring database driver information from the data source, and acquiring data model information from a DataModel (metadata model); by this point, sufficient information has been obtained to generate the DAL layer. And then, providing services for the outside by taking the type as a Key (Key value), such as creating a data table, updating a data table structure, executing data editing operation, executing various queries and the like. And establishing a new entity by using the DAL and the configuration Attribute set, the relationship configuration item, the Attribute, the DAL, the UI configuration item, the ACTION configuration item and the category. The strong business object can be quickly established according to the new entity.
Step 308, generating CRUD (Create Retrieve Update Delete, add, read query, update and Delete) service logic and interface operation entry of different types of strong service objects according to the ACTION configuration and the UI configuration. Although the information system cannot determine the types of the ACTIONs before the ACTION configuration is completed, and neither the usage scenarios (e.g., operation management, query, and link page) of the ACTIONs nor the objects of the specific ACTIONs can be determined, the types of the general ACTIONs can be enumerated and a default responder can be provided for each general ACTION, and each ACTION type can also expand its own special responder to process the ACTION with special requirements. In addition, the ACTION set at the time of management, the ACTION set at the time of query, and the ACTION set under the link page are separately defined for types, so that a toolbar above the management list, a toolbar above the query list, or a toolbar after a certain entity is selected or a context toolbar can be obtained by general logic. And if the general response of a certain ACTION does not meet the service requirement of a specific object, responding by a newly expanded command provider, otherwise, directly using the general response to generate the CRUD service logic. And according to the CRUD business logic, using the interface operation entry to realize the quick processing of the strong business object.
In summary, the general establishment and processing method for strong service objects based on type metadata provided by the present invention configures type metadata for strong service objects, integrates entity attributes, relationship attributes, data source connection, data access layer, ACTION, UI configuration, combines signal slot technology, plug-in technology and cross-cut logic processing technology, establishes strong service objects rapidly, unifies general service logic with types as targets and leaves an entry for customizing service logic, can realize rapid and efficient processing of strong service objects according to the service logic, and reduces workload of research and development and maintenance.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (9)

1. A general method for establishing and processing strong business objects based on type metadata is characterized by comprising the following steps:
defining a configuration attribute set and a relationship configuration item of the newly-built entity, wherein the attribute configuration item of the configuration attribute set comprises an attribute name, a representation name, a description, a database column name, a data type, a display mode, a sorting method, a classification characteristic and an editing characteristic; the relationship configuration item includes: left entity type, left entity identification, right entity type, relationship mode and sequence number;
adding Attribute to the extended Attribute by the information system;
defining DALs of various types and corresponding connection data sources and type association data sources;
configuring various types of available operations for the ACTION configuration item; the ACTION configuration item creates custom logic outside the generic process by extending new command providers and slot functions;
determining the category of the ACTION, and designing a general response corresponding to the ACTION by the information system according to the category of the ACTION; the category of the ACTION is determined by an enumeratable operation;
configuring various types of link pages for UI configuration items, wherein the pages comprise: a management page, a query page, a detailed information page and an associated object attribute page;
obtaining database-driven information from a data source, obtaining data model information from a metadata model, and generating DALs for different database drives; providing services for the exterior by taking the type as Key;
establishing a new entity by using the DAL, the configuration Attribute set, the relationship configuration item, the Attribute, the DAL, the UI configuration item and the configuration item and category of the ACTION; generating the strong business object according to the new entity;
enumerating a type of universal ACTION set and providing a default universal responder for each universal ACTION; if the general response of a certain ACTION does not meet the service requirement of a specific object, responding by a newly expanded command provider, otherwise, directly using the general response to generate CRUD service logic; generating an interface operation inlet according to the UI configuration; and according to the CRUD business logic and by using the interface operation entry, the strong business object is quickly processed.
2. The generic build and process method of type metadata based strong business objects according to claim 1, wherein said enumerable operations include, but are not limited to: general creation, editing, deletion, addition, removal, expansion of detailed information, location marking, and track tracing.
3. The universal establishing and processing method for strong business objects based on type metadata as claimed in claim 1, characterized in that the functions mainly implemented by the business logic and interface operation entry include query, insert, update, delete operations.
4. The method for universal creation and handling of strong business objects based on type metadata according to claim 1, wherein the DAL layer functions include but are not limited to query, insert, update, delete operations on data tables.
5. The method for universal creation and handling of strong business objects based on type metadata according to claim 1, wherein said database comprises not only a database within said information system but also a database outside said information system.
6. The method for universal establishment and processing of strong business objects based on type metadata according to claim 1, wherein the externally providing services using type as Key comprises: creating a data table, updating a data table structure, performing data editing operations, and performing various queries.
7. The method for universal creation and processing of strong business objects based on type metadata according to claim 1, wherein said page comprises: an attribute presenter, an editor, a data list, an attachment manager, and a number of associated object pages.
8. The universal building and processing method of strong business object based on type metadata according to claim 7, wherein said editor has several different editing input modes, including: editing the input directly, selecting the input from a number of alternatives, filling the input by the user, or selecting the input from the results of a sub-query.
9. The universal set-up and processing method for type metadata based strong business objects according to claim 7, wherein said editor implements new input means by means of extension means.
CN201810054972.7A 2018-01-19 2018-01-19 Universal establishing and processing method for strong service object based on type metadata Active CN108399188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810054972.7A CN108399188B (en) 2018-01-19 2018-01-19 Universal establishing and processing method for strong service object based on type metadata

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810054972.7A CN108399188B (en) 2018-01-19 2018-01-19 Universal establishing and processing method for strong service object based on type metadata

Publications (2)

Publication Number Publication Date
CN108399188A CN108399188A (en) 2018-08-14
CN108399188B true CN108399188B (en) 2023-04-07

Family

ID=63095065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810054972.7A Active CN108399188B (en) 2018-01-19 2018-01-19 Universal establishing and processing method for strong service object based on type metadata

Country Status (1)

Country Link
CN (1) CN108399188B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491998B (en) * 2018-10-08 2021-06-29 杭州数梦工场科技有限公司 Method and device for analyzing business data and electronic equipment
CN113918576B (en) * 2021-12-13 2022-03-22 北京宇信科技集团股份有限公司 Metadata management platform and management method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7809752B1 (en) * 2005-04-14 2010-10-05 AudienceScience Inc. Representing user behavior information
CN102663103A (en) * 2012-04-13 2012-09-12 北京工业大学 Configurable method for automatically generating database and accessing data
CN103631596A (en) * 2013-12-05 2014-03-12 用友软件股份有限公司 Configuration device and configuration method of business object data entry and updating rule
CN106527873A (en) * 2016-10-10 2017-03-22 国网新疆电力公司经济技术研究院 xml-based man-machine interactive interface customization method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070100785A1 (en) * 2005-11-01 2007-05-03 Herbert Hackmann Managing attributes in a digital information system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7809752B1 (en) * 2005-04-14 2010-10-05 AudienceScience Inc. Representing user behavior information
CN102663103A (en) * 2012-04-13 2012-09-12 北京工业大学 Configurable method for automatically generating database and accessing data
CN103631596A (en) * 2013-12-05 2014-03-12 用友软件股份有限公司 Configuration device and configuration method of business object data entry and updating rule
CN106527873A (en) * 2016-10-10 2017-03-22 国网新疆电力公司经济技术研究院 xml-based man-machine interactive interface customization method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Enforcing Obligations within RelationalDatabase Management Systems;Pietro Colombo et al;《IEEE Transactions on Dependable and Secure Computing》;20131104;第11卷(第4期);第318-331页 *
Qt框架中信号和槽机制的研究;龚凌璞;《计算机光盘软件与应用》;20130823;第2013年卷(第11期);第281-283页 *

Also Published As

Publication number Publication date
CN108399188A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
US11232139B2 (en) Custom interactions with visualizations
AU2019291940B2 (en) Visualization customization
US10289286B2 (en) Thing modeler for internet of things
US10860602B2 (en) Autolayout of visualizations based on contract maps
AU2020298056B2 (en) Autolayout of visualizations based on graph data
US11593324B2 (en) Reversible data transforms
KR101213798B1 (en) Complex data access
CN104035772A (en) Static analysis based source code multi-versionfunction call relation difference identification method
CN103617047A (en) Method, device and processor for developing business processes
JP2003223363A (en) Document processor
CN108170752B (en) Template-based metadata management method and system
US11693873B2 (en) Systems and methods for using entity/relationship model data to enhance user interface engine
US20100162159A1 (en) Technique to improve data entry efficiency in a user interface
US20210073655A1 (en) Rule mining for rule and logic statement development
CN108399188B (en) Universal establishing and processing method for strong service object based on type metadata
CN111427865A (en) Method and device for managing objects of database
CN106407172A (en) XML (Extensible Markup Language)-based report generating method
CN111797125A (en) Report creating method and device, electronic equipment and computer readable storage medium
GB2528697A (en) Generating a database structure from a scanned drawing
CN114895875A (en) Zero-code visual information system metadata production application method and system
CN112861060A (en) Page creating method and device, computer equipment and storage medium
US20120198373A1 (en) Focus-Driven User Interface
CN114282187A (en) Login access control method and device
KR20230143760A (en) Integrated management system for electronic approval and managing work using electronic approval data
JP2001306617A (en) Document managing device

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
TA01 Transfer of patent application right

Effective date of registration: 20191101

Address after: 100193 room 2340, building No. 2, Beijing Zhongguancun Software Park incubator, Beijing Zhongguancun, Haidian District, Northeast China

Applicant after: BEIJING GREATMAP TECHNOLOGY CO.,LTD.

Address before: 100193 room 2340, building No. 2, Beijing Zhongguancun Software Park incubator, Beijing Zhongguancun, Haidian District, Northeast China

Applicant before: Chen Han

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant