Read an ARRAY from a STRUCT returned by a stored procedure

后端 未结 4 1855
臣服心动
臣服心动 2021-02-09 13:35

In the database are three Oracle custom types (simplified) as follows:

create or replace TYPE T_ENCLOSURE AS OBJECT(
  ENCLOSURE_ID      NUMBER(32,0),
  ENCLOSUR         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-09 14:27

    You could probably cast to java.sql.Array as such:

    Object array = ( (Array) resultOracleStruct.getAttributes()[2]) ).getArray();
    

提交回复
热议问题