query service

The query service enables you to search and load persistent objects via logical expressions.

To work with the query service, you need access to the transaction manager of the object services that implement the interface

This access enables the method GET_QUERY_MANAGER of the system service class

Using the query manager, you can create queries in the form of query objects, which can be accessed via the interface

The most important methods of a query are:

With these methods, a filter condition is defined for the search for persistent objects, as well as a sorting order for the result list.

A query is not executed directly, but via the method GET_PERSISTENT_BY_QUERY of the interface IF_OS_CA_PERSISTENCY of a class actor. Therefore, a search is carried out for persistent objects of the associated persistent class that match the filter condition.