17.05 - Example: Creating a Java External Stored Procedure Using a Data Type of ST_Geometry - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)
This statement creates a Java external stored procedure using the ST_Geometry data type for the input parameter G1:
CREATE PROCEDURE get_Geom(IN G1 ST_Geometry, OUT A1 INTEGER)
        LANGUAGE JAVA
        NO SQL
        PARAMETER STYLE JAVA 
        EXTERNAL NAME 
        'UDF_JAR:UserDefinedFunctions.get_Geom';

public static void get_Geom(java.sql.Clob G1, int[] A1) throws SQLException