在java中创建包级关联数组 [英] Creating package-level associative array in java

查看:215
本文介绍了在java中创建包级关联数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建包级别oracle关联数组的java表示。例如,给定以下内容:

Is it possible to create a java representation of a package-level oracle associative array. For example, given the following:

CREATE OR REPLACE PACKAGE MyPackage AS
    TYPE t_numbers IS TABLE OF NUMBER INDEX BY PLS_INTEGER;

我发现我无法编写以下java:

I find I cannot write the following java:

ArrayDescriptor descriptor =
    ArrayDescriptor.createDescriptor("MyPackage.t_numbers", connection);

(抛出SQLException无效的名称模式)。

(throws a SQLException "Invalid name pattern").

引用包级关联数组的ArrayDescriptor的正确语法是什么?这样的事情是否存在?

What is the correct syntax for an ArrayDescriptor referencing a package-level associative array? Does such a thing even exist?

推荐答案

参见 http://asktom.oracle.com/pls/asktom/f?p=100:11:0: ::: P11_QUESTION_ID:3696816290928 ,尤其是 http://download.oracle.com/docs/cd/B10501_01/java.920/a96654/oci_func.htm#1017512

这篇关于在java中创建包级关联数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆