General method for automatic object adapting in database access
A data object and database technology, applied in database management systems, electronic digital data processing, structured data retrieval, etc., can solve problems such as large dependence on database structure, low software scalability and versatility, and huge maintenance projects , to achieve the effect of high reusability, easy development and high scalability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0054] Example 1
[0055] The application of the present invention will be described in detail below in conjunction with the drawings.
[0056] figure 1 , figure 2 with image 3 Shows the objectification process of database tables and programming language data structures, figure 1 Describes the relationship between user data dictionary, table or view data dictionary and field data dictionary, according to figure 1 It can be seen that the data dictionary and field data dictionary of the specified table or view under the user can be obtained by the user name, table name or view name, and can be obtained according to these data dictionaries figure 2 with image 3 ; figure 2 Describes the object mapping relationship between the fields in the database table structure and the data members of the programming language data structure (the object mapping relationship between the fields of the view and the data members of the programming language data structure is similar to this, and will n...
Example Embodiment
[0065] Example 2
[0066] Figure 4 Shows the process of automatically adapting objects for database access requests. Assuming that the accessed database table is table T (the operation of the view is the same as that of the table, so I won’t repeat it here), and the programming language data structure corresponding to table T is S. The specific instructions are as follows :
[0067] Step 2-1, construct a database access request according to the programming language data object;
[0068] Step description: According to figure 2 Create a programming language data object of the programming language data structure S corresponding to the table T, assign values to the object members of S corresponding to the database table field to be operated, and provide access instructions to the table T, such as the database user name where the table T is located , Table name (ie table T), operation type (insert, query, delete and modify), field operation type of table T (such as input field, outpu...
Example Embodiment
[0082] Example 3
[0083] Figure 5 Shows the flow chart of automatically adapting the database query result to the object. When the database access request is a query operation, the database query result automatically adapts the object to the subsequent process of the database access request automatically adapts the object, namely Figure 5 for Figure 4 Continuation of, suppose that the accessed database table is table T (the operation of the view is the same as that of the table, which will not be repeated here), and the programming language data structure corresponding to table T is S. The specific instructions are as follows:
[0084] Step 3-1, query the data dictionary;
[0085] Step description: Query the data dictionary loaded by the system according to the currently queried database user name and table name (the data dictionary is generated by "Example 1").
[0086] Step 3-2, get the data dictionary;
[0087] Step description: Obtain the table data dictionary of table T and ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap