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

ANYDATA TYPE, 4 of 8


SET Member Procedures

Sets the current data value.

This is a list of procedures that should be called depending on the type of the current data value. The type of the data value should be the type of the attribute at the current position during the piece-wise construction process.

Syntax

MEMBER PROCEDURE SetNumber(
   self        IN OUT NOCOPY AnyData, 
   num         IN NUMBER,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetDate(
   self        IN OUT NOCOPY AnyData, 
   dat         IN DATE,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetChar(
   self        IN OUT NOCOPY AnyData, 
   c           IN CHAR,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetVarchar(
   self        IN OUT NOCOPY AnyData, 
   c           IN VARCHAR,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetVarchar2(
   self        IN OUT NOCOPY AnyData,
   c           IN VARCHAR2, 
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetRaw(
   self        IN OUT NOCOPY AnyData, 
   r           IN RAW,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetBlob(
   self        IN OUT NOCOPY AnyData, 
   b           IN BLOB,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetClob(
   self        IN OUT NOCOPY AnyData,
   c           IN CLOB,
   last_elem   IN boolean DEFAULT FALSE)'
MEMBER PROCEDURE SetBfile(
   self        IN OUT NOCOPY AnyData,
   b           IN BFILE,
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetObject(
   self        IN OUT NOCOPY AnyData,
   obj         IN "<object_type>",
   last_elem   IN boolean DEFAULT FALSE);
MEMBER PROCEDURE SetRef(
   self        IN OUT NOCOPY AnyData,
   rf          IN REF "<object_type>",
   last_elem   IN boolean DEFAULT FALSE),
MEMBER PROCEDURE SetCollection(
   self        IN OUT NOCOPY AnyData,
   col         IN "<collectyion_type>",
   last_elem   IN boolean DEFAULT FALSE);

Parameters

Table 85-4 SET*() Procedure Parameters
Parameter  Description 

self 

An AnyData. 

num 

The number, etc., that is to be set. 

last_elem 

Relevant only if AnyData represents a collection.

Set to TRUE if it is the last element of the collection, FALSE otherwise. 

Exceptions

Usage Notes

When BeginCreate() is called, construction has already begun in a piece-wise fashion. Subsequent calls to Set*() will set the successive attribute values.

If the AnyData is a standalone collection, the Set*() call will set the successive collection elements.


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