Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

9.6.2 Integrating Java files

The following describes the points to be observed when integrating Java files:

  1. To retrieve a Java program source corresponding to a Class file, the Java file must be integrated at the same time as the Class file.
  2. A Java file to be integrated in a JAR file can be stored in any directory.
  3. If multiple packages have the same Class filename, you can retrieve each Java program source by storing the corresponding Java file in a different directory. The following shows an example:
    Example
    If the Class files consist of the following packages, pack1.aaa.JStrAAA and pack2.ccc.JStrAAA, they will have the same Class filename:
    ./pack1/aaa/JstrAAA.class
    ./pack1/bbb/JstrBBB.class
    ./pack2/ccc/JstrAAA.class
    There is no need to manage the Java files with the same directory structure, but if there are multiple files with the same name, they cannot be stored under the same directory. In this case, individual files can be stored as follows:
    ./src1/JStrAAA.java
    ./src1/JStrBBB.java
    ./src2/JStrAAA.java
    This example cannot identify each Java file corresponding to a specified Class file; therefore, all Java files with the specified name are retrieved. For example, a retrieval of JStrAAA.java results in both pack1.aaa.JStrAAA.java and pack2.ccc.JStrAAA.java. A retrieval of JStrBBB.java results in pack1.bbb.JStrBBB.java.