Jar Name
Use the Jar Name segment to specify the name of a jar ID. Use this segment whenever you see a reference to Jar Name in a syntax diagram.
Syntax
Element | Description | Restrictions | Syntax |
---|---|---|---|
database | Database in which to install or access jar_id. Default is the current database. | Fully qualified database.package.jar_id identifier must not exceed 255 bytes | Database Name |
jar_id | The .jar file that contains the Java™ class to be accessed | File must exist in database.package | Identifier |
package | Name of the package | Package must exist in database | Identifier |
If a jar name is specified as a character string argument to the sqlj.install_jar, sqlj.replace_jar, or sqlj.remove_jar procedures, then any identifiers in the jar name that are delimited identifiers will include the surrounding double quotation mark characters. For descriptions of the these procedures, see related concept SQLJ Driver Built-In Procedures.
Before you can access a jar_id in any way (including its use in a CREATE FUNCTION or CREATE PROCEDURE statement), it must be defined in the current database with the install_jar( ) procedure. For more information, see EXECUTE PROCEDURE statement.