Nonstop Database, HiRDB Version 9 System Operation Guide

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

17.1 Overview of Java stored procedures and Java stored functions

This section provides an overview of Java stored procedures and Java stored functions.

Organization of this section
(1) Environments in which Java stored procedures and Java stored functions can be used
(2) Java stored procedures and Java stored functions
(3) Actions of Java stored procedures and Java stored functions

(1) Environments in which Java stored procedures and Java stored functions can be used

The following table shows the environments in which Java stored procedures and Java stored functions can be used.

Table 17-1 Environments in which Java stored procedures and Java stored functions can be used

OS Usable
When a Type2 JDBC driver is used When a Type4 JDBC driver is used
HP-UX 32-bit# Y Y
64-bit N Y
IPF Y Y
Solaris 32-bit# Y Y
64-bit N Y
AIX 32-bit# Y Y
64-bit N Y
Linux 32-bit Y Y
EM64T N Y

Legend:
Y: Can be used.
N: Cannot be used.

#: Only the POSIX library version is supported.

(2) Java stored procedures and Java stored functions

Java stored procedures and Java stored functions are stored procedures and stored functions in which the type of routine control statements that can be described in SQL are instead written in Java. Java stored procedures and Java stored functions use Java methods created externally to HiRDB. Because these methods are registered into HiRDB as routine control statements, it is possible to perform platform-independent processing, development, and debugging.

As with stored procedures and stored functions described in SQL, Java stored procedures and Java stored functions can be called from an SQL statement (CALL statement or function invocation). Thus, there are no restrictions on the control statement description language.

(3) Actions of Java stored procedures and Java stored functions

The following figure shows the actions (invocation procedures) of Java stored procedures and Java stored functions.

Figure 17-1 Actions (invocation procedures) of Java stored procedures and Java stored functions

[Figure]