Java EJB (Enterprise Java Bean) platform based entity BEAN general query method

A general query and entity technology, applied in special data processing applications, program control design, instruments, etc., can solve the problem of error-prone HQL statements, and achieve the effect of simplifying queries and avoiding errors.
CN106528256AActive Publication Date: 2017-03-22中科瑞通科技股份有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
中科瑞通科技股份有限公司
Publication Date
2017-03-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to the technical field of Java EJB platforms, and in particular relates to an EJB (Enterprise Java Bean) platform based entity BEAN general query method. The method is characterized in that keywords, such as WHERE, AND, OR, ORDER BY, LEFT JOIN, and other related statements, which are generally used in in HQL (Hibernate Query Language) statement, are encapsulated while multi-condition complex query is carried out through EntityManager of the EJB, so that the purposes of simplifying the query, and avoiding mistake of a programmer in writing of the HQL statement. The method is applied to multi-condition complex query using the EntityManager on the basis of the Java EJB platform.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of the Java EJB platform, in particular to an entity BEAN general query method based on the EJB platform. Background technique

[0002] When using the EntityManager class to perform multi-condition complex queries under the Java EJB platform, it is easy to cause code errors. For this reason, a method is needed to effectively solve this problem. Contents of the invention

[0003] The technical problem solved by the invention is to provide a general query method of entity BEAN based on the EJB platform; to solve the problem that programmers are prone to make mistakes when writing HQL statements when data is multi-condition and complex query.

[0004] The technical scheme that the present invention solves the problems of the technologies described above is:

[0005] Contains the following steps:

[0006] Step 1. Create an entity object query result dataset class DataSet, and encapsulate the queried data; ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More