Creates a new external Java table UDF function in the database.
CREATE [ OR REPLACE | TEMPORARY ] FUNCTION [ owner.]function-name ( [ parameter, … ] ) RETURNS data-type routine-characteristics [ SQL SECURITY { INVOKER | DEFINER } ] { compound-statement | AS tsql-compound-statement | EXTERNAL NAME 'java-call' LANGUAGE JAVA }
CREATE FUNCTION dba.encrypt( IN name char(254) ) RETURNS VARCHAR EXTERNAL NAME 'Scramble.encrypt (Ljava/lang/String;)Ljava/lang/String;' LANGUAGE JAVA
LONG BINARY and LONG VARCHAR are not permitted as return-value data types.
EXTERNAL NAME LANGUAGE JAVA—A function that uses EXTERNAL NAME with a LANGUAGE JAVA clause is a wrapper around a Java method.
iq-environment-name: JAVA [ ALLOW | DISALLOW SERVER SIDE REQUESTS ]:
DISALLOW is the default.
ALLOW indicates that server-side connections are allowed.
Do not use UDFs with both ALLOW SERVER SIDE REQUESTS and DISALLOW SERVER SIDE REQUESTS in the same query.
SQL—ISO/ANSI SQL compliant.
Sybase—Not supported by Adaptive Server Enterprise.
Must have RESOURCE authority.
External Java functions must have DBA authority.