Updated on 2024-06-03 GMT+08:00

PGobject

Table 1 Common PGobject Methods

Return Value

Method

Description

throws

JDBC4 Is Supported or Not

Object[]

getStruct()

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

-

Yes

String

getValue()

Obtains the string value of the composite type.

-

Yes

String[]

getArrayValue()

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

-

Yes

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

Yes