我在 Oracle 数据库中有一个存储过程。此存储过程返回一个 CLOB 类型。此 CLOB 类型包含嵌入的 xml。我使用 DBlookup 调解器来调用这个存储过程,如下所示:
<dblookup>
<connection>
<pool>
<dsName>XeDS</dsName>
</pool>
</connection>
<statement>
<sql>select pkg_ws_sol_cursos.fu_listado_cursos(?,?) as resultado from dual</sql>
<parameter xmlns:xs="http://www.example.es" expression="//xs:HASH" type="VARCHAR" />
<parameter xmlns:xs="http://www.example.es" expression="//xs:PV2_I_LANGISO" type="VARCHAR" />
<result name="resultado_p" column="resultado" />
</statement>
</dblookup>
当我使用存储过程返回的值获取属性“resultado_p”的值时,我意识到这个值是不正确的。返回值应该是包含嵌入 xml 的字符串,但不是这样。返回值是这样的字符串: oracle.sql.CLOB@423435435435 我认为这是执行 oracle.sql.CLOB java 类型的 toString 方法的结果,但我需要获取 CLOB 的内容而不是toString 结果。
是否有人调用了返回 CLOB 类型的存储过程?
谢谢你。