ORM Code Assessment for Problematic Cast Functions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Relational database management systems face issues with non-negligible lag times and run-time exceptions due to problematic casting operations between different data types, particularly when source code specifies improper data type conversions or misaligned object-oriented strings and database tables, leading to inefficient CPU resource utilization and errors.

Innovation Solution

A customized software system that parses source code without execution to identify and flag problematic casting operations, generating reports to correct issues such as incorrect table sources and data type conversions, thereby improving performance by preventing unnecessary data type conversions and aligning object-relational mapping strings with SQL source code.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If data type casting operations are performed between different data types in source code, then data type compatibility is achieved, but lag time increases and run-time exceptions occur

Engineering Contradiction:
Improvedata type compatibilityVSAvoidlag time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The system performs preliminary analysis of source code to identify problematic casting operations before execution. By parsing the code and detecting potential data type conversion issues in advance, the system can flag or correct these operations prior to runtime, preventing lag time and exceptions while maintaining data type compatibility where needed

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If data type casting operations are performed between different data types, then data type compatibility is achieved, but run-time exceptions occur

Engineering Contradiction:
Improvedata type compatibilityVSAvoidrun-time stability
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary analysis of source code to identify problematic casting operations before execution. By parsing the code and detecting potential data type conversion issues in advance, the system can flag or correct these operations prior to runtime, preventing run-time exceptions while maintaining data type compatibility where needed

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system provides feedback by generating reports that identify problematic casting operations, including the source code location and the specific issue. This feedback mechanism allows developers to review and correct the identified problems, improving reliability while preserving necessary data type conversions

Inventive Principle:
Principle #23Feedback

3Reliability

If source code is parsed and analyzed to identify problematic casting operations, then code quality control is improved, but system complexity increases

Engineering Contradiction:
Improvecode qualityVSAvoidanalysis system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The analysis system processes source code by segmenting it into individual statements and analyzing each statement separately for casting operations. This segmentation approach makes the complex analysis task more manageable and systematic, improving code quality control without overwhelming system complexity

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces an intermediary analysis layer that sits between the source code and execution. This intermediary parser and reporter act as a mediator that simplifies the complexity by providing a structured approach to identifying and reporting problematic casting operations, rather than attempting to solve all issues simultaneously

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11650815B1Code assessment for quality control of an object relational mapper and correction of problematic cast functions
Publication Date: 2023.05.16 CERNER INNOVATION INC
  • US11650815B1 patent drawing
  • US11650815B1 patent drawing
  • US11650815B1 patent drawing

AI summary

Embodiments herein disclose systems, methods, and computer-readable media for quality control of an object relational mapping (ORM) application and correction of problematic cast functions in the context of a relational database management systems. In embodiments, source code is parsed and portions of source code are identified when those portions of source code include a problematic casting between data types or a mapping between a field and a source table. In embodiments, the source code portions are marked or flagged and a report is generated. The report identifies the marked or flagged source code and further specifies the location of the marked or flagged source code, in embodiments.