16.20 - getAttributes(Map) - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

Purpose

Produces the ordered values of the attributes of the SQL structured type that this Struct object represents.
Teradata does not support custom mapping, so only standard mapping is used.

Syntax

public Object[] getAttributes(Map  map)
                       throws SQLException

Parameters

map
A mapping of SQL type names to Java classes.

Return Value

An array containing the ordered attribute values.

Exceptions

Throws SQLException if a database access error occurs. A database specific code “9742 (ERRUDFJAVGETATTRFAIL) <Failed to retrieve attributes of the Struct type >” is returned.