Using a private attribute (UTL_TCP.CONNECTION ) in a user-defined type (Oracle)

烈酒焚心 提交于 2020-07-16 10:25:12

问题


There is any way, in a user-defined type, to define a private attribute ? In my scenario, I need to define some attribute like utl_tcp.connection. I need something like this :

CREATE TYPE TYPE_TCP AS OBJECT (
      CONNECTION   UTL_TCP.CONNECTION,
      IS_CONNECTED    BOOLEAN   );

It has been used previously inside a package , but now I should delete the package and use it as an object type.

TYPE TYPE_TCP IS RECORD (
      CONNECTION   UTL_TCP.CONNECTION,
      IS_CONNECTED    BOOLEAN   );

All ideas/suggestions are Welcome

Thank you

来源:https://stackoverflow.com/questions/62722013/using-a-private-attribute-utl-tcp-connection-in-a-user-defined-type-oracle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!