Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

9.1 Overview

Java stored procedures and Java stored functions are the stored procedures and stored functions coded in Java.

In this chapter, Java stored procedures and Java stored functions are collectively referred to as Java stored routines.

Java stored routines cannot be used in all HiRDB operation platforms. For details, see the section that describes environments in which Java stored procedures and Java stored functions can be used in the HiRDB Version 8 System Operation Guide.

Procedures for an SQL stored procedure or an SQL stored function are coded during definition. Procedures for a Java stored routine are not coded during definition; instead, the Java program registered at the server is specified. The specified Java program then functions as a stored procedure or stored function.

Figure 9-1 shows the procedure from Java stored routine creation to execution.

Figure 9-1 Procedure from Java stored routine creation to execution

[Figure]

Explanation
  1. Code a Java stored routine. For details, see 9.2.1 Coding a Java stored routine.
  2. Test and debug the Java stored routine as a client AP. For details, see 9.2.1 Coding a Java stored routine.
  3. Register the JAR file in HiRDB. For details, see 9.2.2 Registering the JAR file in HiRDB.
  4. Define the Java stored routine. For details, see 9.2.3 Defining the Java stored routine.
  5. Execute the Java stored routine. For details, see 9.2.4 Executing the Java stored routine.