Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

16.5.2 Method name

Organization of this subsection
(1) Registering a JAR file in HiRDB
(2) Deleting a JAR file from HiRDB
(3) Re-registering a JAR file in HiRDB

(1) Registering a JAR file in HiRDB

(a) Format
public void Jdbh_JARInstall(java.sql.Connection    con,
                            String                JarName)
(b) Arguments

con
Specifies a Java.sql.Connection object to register the JAR file.

JarName
Specifies the name of the JAR file.
Specify either the absolute path name or relative path name. You cannot specify a file located in another server machine, nor a wildcard.
(c) Return value

None.

(d) Exception

SQLException
A database access error occurred.
(e) Function

This method registers the specified JAR file in HiRDB using the Java.sql.Connection object. If HiRDB already contains a file with the same name, an error occurs.

(2) Deleting a JAR file from HiRDB

(a) Format
public void Jdbh_JARUnInstall(java.sql.Connection   con,
                              String                JarName)
(b) Arguments

con
Specifies a Java.sql.Connection object to delete the JAR file.

JarName
Specifies the name of the JAR file.
You cannot specify an absolute path name, nor a relative path name, nor a wildcard.
(c) Return value

None.

(d) Exception

SQLException
A database access error occurred.
(e) Function

This method deletes the specified JAR file from HiRDB using the Java.sql.Connection object.

(3) Re-registering a JAR file in HiRDB

(a) Format
public void Jdbh_JARReInstall(java.sql.Connection   con,
                              String                JarName)
(b) Arguments

con
Specifies a Java.sql.Connection object to re-register the JAR file.

JarName
Specifies the name of the JAR file.
You cannot specify an absolute path name, nor a relative path name, nor a wildcard.
(c) Return value

None.

(d) Exception

SQLException
A database access error occurred.
(e) Function

This method re-registers the specified JAR file in HiRDB using the Java.sql.Connection object. If HiRDB already contains a file with the same name, it is overwritten (an error does not occur).