SQLJ.UPDATEJARINFO

The SQLJ.UPDATEJARINFO updates the CLASS_SOURCE column of the SYSJARCONTENTS catalog table. This procedure is not part of the SQLJ standard but is used by the DB2® UDB for iSeries™ stored procedure builder.

Authorization

The privilege held by the authorization ID of the CALL statement must include at least one of the following for the SYSJARCONTENTS catalog table:

The user running the CALL statement must also have the following authorities:

Adopted authority cannot be used for these authorities.

Syntax

     >>-CALL--SQLJ.UPDATEJARINFO--(--'jar-id'--,--'class-id'--,--'jar-url'--)-->
 
     >--------------------------------------------------------------><

Description

jar-id
The JAR identifier in the database that is to be updated.
class-id
The package qualified class name of the class to be updated.
jar-url
The URL containing the classfile to update the JAR file with. The only URL scheme supported is 'file:'.

Example

The following command is issued from an SQL interactive session:

     CALL SQLJ.UPDATEJARINFO('myproc_jar', 'mypackage.myclass',
                             'file:/home/user/mypackage/myclass.class')

The JAR file associated with the jar-id myproc_jar, is updated with a new version of the mypackage.myclass class. The new version of the class is obtained from the file /home/user/mypackage/myclass.class.

Related reference
SQLJ.INSTALL_JAR
SQLJ.REMOVE_JAR
SQLJ.REPLACE_JAR
SQLJ.RECOVERJAR
SQLJ.REFRESH_CLASSES