REMOVE statement

Description

Removes a class, a package or a jar file from a database. Removed classes are no longer available for use as a variable type.

A class, package or jar must be installed in order to be removed.

Syntax

REMOVE JAVA classes_to_remove

Parameters

classes_to_remove:

{ CLASS java_class_name [, java_class_name ]... | PACKAGE java_package_name [, java_package_name ]... | JAR jar_name [, jar_name ]... [ RETAIN CLASSES ] }

jar_name:

character_string_expression

Examples

Example 1

The following statement removes a Java class named Demo from the current database.

REMOVE JAVA CLASS Demo

Usage

java_class_name The name of one or more Java class to be removed. Those classes must be installed classes in the current database.

java_package_name The name of one or more Java packages to be removed. Those packages must be the name of packages in the current database.

jar_name A character string value of maximum length 255.

Each jar_name must be equal to the jar_name of a retained jar in the current database. Equality of jar_name is determined by the character string comparison rules of the SQL system.

If JAR...RETAIN CLASSES is specified, then the specified jars are no longer retained in the database, and the retained classes have no associated jar. If RETAIN CLASSES is specified, then this is the only action of the REMOVE statement.

Standards

Permissions

Must have DBA authority or must own the object.