Updated on 2024-05-07 GMT+08:00

PGobject

Table 1 Common PGobject Methods

Return value

Method

Description

throws

Object[]

getStruct()

Obtains the subtype names of the composite type and sorts them according to the creation sequence.

-

String

getValue()

Obtains the string value of the composite type.

-

String[]

getArrayValue()

Obtains the array values of the composite type and sorts the values according to the sequence of columns of the composite type.

-

Object[]

getAttributes()

Obtains the array values of the composite type. If the columns are of the table or array type, PgArray is returned. If the columns are of the composite type, PGobject is returned. For other types, a string value is returned.

SQLException