Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

2 results about "Return type" patented technology

In computer programming, the return type (or result type) defines and constrains the data type of the value returned from a subroutine or method. In many programming languages (especially statically-typed programming languages such as C, C++, Java) the return type must be explicitly specified when declaring a function.

A method and apparatus for returning streaming results based on the MyBatis framework

This invention discloses a method and apparatus for returning streaming results based on the MyBatis framework, applied in the field of computer technology. The method includes: if the current SQL operation is a query operation, checking whether the return type of the Mapper interface method in the MyBatis framework is a streaming type from the Java standard library; if so, obtaining a cursor object, converting the cursor object to a stream object using the Java standard library, and registering a close callback function on the stream object. This invention extends the MyBatis framework to enable streaming result return functionality, reducing development workload while ensuring performance consistent with the native MyBatis framework; it does not modify the core MyBatis code implementation, avoiding risks and ensuring existing functionality remains unaffected; and by binding the cursor object's close function to the stream object, users do not need to manually manage resources, preventing resource leaks.
Owner:湖南长银五八消费金融股份有限公司

A dynamic link library reflection method and system based on a C language preprocessor

The application discloses a dynamic link library reflection method based on a C language preprocessor, and comprises the following steps: S1, acquiring the file name of a dynamic link library to be agented and a function list to be agented, wherein the function list comprises the function name, return type and parameter type of each function; S2, constructing a registerer by using the macro definition of the C language, wherein the input of the registerer is the file name of the dynamic link library, the function name to be agented, the return type and the parameter type; S3, generating an agent function by using the registerer in the preprocessing process of the compiler at the compiling stage; S4, registering the function to be agented in the source code by using the registerer in step S3; and S5, calling the function to be agented in S1 in the business, and compiling and running the software together with the registration code in step S4. The application solves the compatibility problem caused by using different version library modules or using the same library module in different versions of the same product.
Owner:SOUTH SURVEYING & MAPPING INSTR