Oracle® interMedia Reference 10g Release 1 (10.1) Part Number B10829-01 |
|
|
View PDF |
This section describes the ORDDoc constructor functions, which are the following:
Format
init( ) RETURN ORDDoc;
Description
Initializes instances of the ORDDoc object type.
Parameters
None.
Pragmas
None.
Exceptions
None.
Usage Notes
This constructor is a static method that initializes all the ORDDoc attributes to NULL with the following exceptions:
source.updateTime is set to SYSDATE
source.local is set to 1 (local)
source.localData is set to empty_blob
You should begin using the init( ) method as soon as possible so you can more easily initialize the ORDDoc object type, especially if the ORDDoc type evolves and attributes are added in a future release. INSERT statements left unchanged using the default constructor (which initializes each object attribute), will fail under these circumstances.
Examples
Initialize the ORDDoc object attributes:
BEGIN INSERT INTO pm.online_media (product_id, product_testimonials) VALUES (2808,ORDSYS.ORDDoc.init()); COMMIT; END; /
Format
init(srcType IN VARCHAR2,
srcLocation IN VARCHAR2,
srcName IN VARCHAR2)
RETURN ORDDoc;
Description
Initializes instances of the ORDDoc object type.
Parameters
The source type of the media data.
The source location of the media data.
The source name of the media data.
Pragmas
None.
Exceptions
None.
Usage Notes
This constructor is a static method that initializes all the ORDDoc attributes to NULL with the following exceptions:
source.updateTime is set to SYSDATE
source.local is set to 0
source.localData is set to empty_blob
source.srcType is set to the input value
source.srcLocation is set to the input value
source.srcName is set to the input value
You should begin using the init( ) method as soon as possible to allow you to more easily initialize the ORDDoc object type, especially if the ORDDoc type evolves and attributes are added in a future release. INSERT statements left unchanged using the default constructor (which initializes each object attribute), will fail under these circumstances.
Examples
Initialize the ORDDoc object attributes:
BEGIN INSERT INTO pm.online_media (product_id, product_testimonials) VALUES (2999, ORDSYS.ORDDoc.init('file', 'FILE_DIR', 'modem.jpg')); END; /