Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
ANYTYPE TYPE, 2 of 2
This procxedure creates a new instance of ANYTYPE which can be used to create a transient type description.
STATIC PROCEDURE BEGINCREATE( typecode IN PLS_INTEGER, atype OUT NOCOPY AnyType);
This procedure sets any additional information required for constructing a COLLECTION or builtin type.
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);
EndCreate()
, etc.)It is an error to call this function on an AnyType that represents a persistent user defined type.
This procedure adds an attribute to an AnyType (of typecode DBMS_TYPES.TYPECODE_OBJECT).
MEMBER PROCEDURE AddAttr( self IN OUT NOCOPY AnyType, aname IN VARCHAR2, typecode IN PLS_INTEGER, prec IN PLS_INTEGER, scale IN PLS_INTEGER, len IN PLS_INTEGER, csid IN PLS_INTEGER, csfrm IN PLS_INTEGER, attr_type IN ANYTYPE DEFAULT NULL);
EndCreate()
, etc.)This procedure ends creation of a transient AnyType. Other creation functions cannot be called after this call.
MEMBER PROCEDURE EndCreate( self IN OUT NOCOPY AnyType);
Parameter | Description |
---|---|
|
The transient AnyType that is being constructed. |
This procedure returns an AnyType corresponding to a persistent type created earlier using the CREATE TYPE SQL statement.
STATIC FUNCTION GetPersistent( schema_name IN VARCHAR2, type_name IN VARCHAR2, version IN VARCHAR2 DEFAULT NULL) RETURN AnyType;
Parameter | Description |
---|---|
|
Schema name of the type. |
|
Type name. |
|
Type version. |
An AnyType corresponding to a persistent type created earlier using the CREATE TYPE SQL statement.
This function gets the type information for the AnyType.
MEMBER FUNCTION GetInfo ( self IN AnyType, prec OUT PLS_INTEGER, scale OUT PLS_INTEGER, len OUT PLS_INTEGER, csid OUT PLS_INTEGER, csfrm OUT PLS_INTEGER, schema_name OUT VARCHAR2, type_name OUT VARCHAR2, version OUT varchar2, count OUT PLS_INTEGER) RETURN PLS_INTEGER;
The typecode of self.
This function gets the type information for an attribute of the type (if it is of TYPECODE_OBJECT). Gets the type information for a collection's element type if the self parameter is of a collection type.
MEMBER FUNCTION GetAttrElemInfo ( self IN AnyType, pos IN PLS_INTEGER, prec OUT PLS_INTEGER, scale OUT PLS_INTEGER, len OUT PLS_INTEGER, csid OUT PLS_INTEGER, csfrm OUT PLS_INTEGER, attr_elt_type OUT ANYTYPE aname OUT VARRCHAR2) RETURN PLS_INTEGER;
The typecode of the attribute or collection element.
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|