Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

ANYTYPE TYPE, 3 of 8


SETINFO Member Procedure

This procedure sets any additional information required for constructing a COLLECTION or builtin type.

Syntax

MEMBER PROCEDURE SetInfo(
   self          IN OUT NOCOPY AnyType,
   prec          IN PLS_INTEGER,
   scale         IN PLS_INTEGER,
   len           IN PLS_INTEGER,
   csid          IN PLS_INTEGER,
   csfrm         IN PLS_INTEGER,
   atype         IN ANYTYPE DEFAULT NULL,
   elem_tc       IN PLS_INTEGER DEFAULT NULL,
   elem_count    IN PLS_INTEGER DEFAULT 0);

Parameters

Table 87-3 SETINFO Procedure Parameters
Parameter  Description 

self 

The transient ANYTYPE that is being constructed. 

prec, scale (OPTIONAL) 

Required if typecode represents a NUMBER.

Give precision and scale. Ignored otherwise. 

len (OPTIONAL) 

Required if typecode represents a RAW, CHAR, VARCHAR, or VARCHAR2 type. Gives length. 

csid, csfrm (OPTIONAL) 

Required if typecode represents types requiring character information such as CHAR, VARCHAR, VARCHAR2, or CFILE. 

atype (OPTIONAL) 

Required if collection element typecode is a user-defined type such as TYPECODE_OBJECT, etc. It is also required for a built-in type that needs user-defined type information such as TYPECODE_REF. This parameter is not needed otherwise. 

The Following Parameters Are Required For Collection Types: 

elem_tc 

Must be of the collection element's typecode (from DBMS_TYPES package). 

elem_count 

Pass 0 for elem_count if the self represents a nested table (TYPECODE_TABLE). Otherwise pass the collection count if self represents a VARRAY. 

Exceptions

Usage Notes

It is an error to call this function on an AnyType that represents a persistent user defined type.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback