Skip to main content
Version: v11.9.2

Invoking Queries/Procedures from Java Services


As mentioned in previous documents, there will be a service method generated for each query and procedure. See here for query service methods and procedure service methods. We can use these methods to invoke those in java services.

Autowiring of Services

You can inject query and procedure services using spring dependency injection.

Example:

@Autowired
private HrdbQueryExecutorService queryExecutor;

Invocation of Services

As specified each query and procedure have a method in the service layer. You can call these methods to execute the query or procedure.

Securing Query/Procedure APIs

There are two ways to configure API visibility:

Security

You can configure API permissions from Security dialog. Here you can configure which user can access a particular API depending on User Roles.

API Designer

From API Designer you can configure API visibility by changing Visibility options.