Oracle® interMedia Reference 10g Release 1 (10.1) Part Number B10829-01 |
|
|
View PDF |
Format
getSourceType( ) RETURN VARCHAR2;
Description
Returns a string containing the type of the external data source (the value of the source.srcType attribute of the embedded ORDSource object).
Parameters
None.
Usage Notes
Returns a VARCHAR2 string containing the type of the external data source, for example "file".
Pragmas
PRAGMA RESTRICT_REFERENCES(getSourceType, WNDS, WNPS, RNDS, RNPS)
Exceptions
None.
Examples
Get the source type information about a media data source:
DECLARE obj ORDSYS.ORDDoc; BEGIN SELECT p.product_testimonials INTO obj FROM pm.online_media p WHERE p.product_id= 3060; DBMS_OUTPUT.PUT_LINE('setting and getting source'); DBMS_OUTPUT.PUT_LINE('--------------------------'); -- set source to a file obj.setSource('file','FILE_DIR','speaker.wav'); -- get source information DBMS_OUTPUT.PUT_LINE('Source is ' || obj.getSource); DBMS_OUTPUT.PUT_LINE('Source type is ' || obj.getSourceType); DBMS_OUTPUT.PUT_LINE('Source location is ' || obj.getSourceLocation); DBMS_OUTPUT.PUT_LINE('Source name is ' || obj.getSourceName); COMMIT; END; /