Scalable Database Server, HiRDB Version 8 UAP Development Guide
To code a Java stored routine, use the following procedure:
Code the program that is to be registered as a Java stored routine.
For notes about Java program coding, see 9.4 Notes about Java program creation.
Figure 9-2 shows an example of Java program coding.
Figure 9-2 Example of Java program coding
Create a Class file from the Java file using the javac command.
Figure 9-3 shows an example of compilation.
Figure 9-3 Example of compilation
Execute the compiled file on the client's Java virtual machine to test and debug it.
For notes about testing and debugging, see 9.5 Notes about testing and debugging.
Figure 9-4 shows an overview of testing and debugging.
Figure 9-4 Overview of testing and debugging
Use the jar command to create a JAR file from multiple Class files.
For notes about JAR file creation, see 9.6 Notes about JAR file creation.
Figure 9-5 shows an example of archiving in the JAR format.
Figure 9-5 Example of archiving in the JAR format
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.