16.20 - Example: Creating a Java External Stored Procedure Using a Data Type of ST_Geometry - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24
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