getAttributes(Map) - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

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.