Example: ARRAY Parameter in a Java External Stored Procedure - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantageā„¢ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K
CREATE TYPE phonenumbers_ary AS CHAR(10) ARRAY[5];

REPLACE PROCEDURE getPhoneNums(IN A1 phonenumbers_ary, 
                               IN EMPID INTEGER, OUT myphonenum INTEGER)
LANGUAGE JAVA
NO SQL
PARAMETER STYLE JAVA 
EXTERNAL NAME 'UDF_JAR:UserDefinedFunctions.getPhoneNums';

public static void getPhoneNums(java.sql.Array A1, int empid, int[] myphonenum)