| Oracle® interMedia Reference 10g Release 1 (10.1) Part Number B10829-01 |
|
|
View PDF |
Format
getSourceName( ) RETURN VARCHAR2;
Description
Returns a string containing of the name of the external data source (the value of the source.srcName attribute of the embedded ORDSource object).
Parameters
None.
Usage Notes
This method returns a VARCHAR2 string containing the name of the external data source, for example testimg.dat.
Pragmas
PRAGMA RESTRICT_REFERENCES(getSourceName, WNDS, WNPS, RNDS, RNPS)
Exceptions
ORDSourceExceptions.INCOMPLETE_SOURCE_NAME
This exception is raised if you call the getSourceName( ) method and the value of the source.srcName attribute is NULL.
Examples
Get the source name information about an image data source:
DECLARE
image ORDSYS.ORDImage;
BEGIN
SELECT p.product_photo INTO image FROM pm.online_media p
WHERE p.product_id = 3515;
-- Get the image source name.
DBMS_OUTPUT.PUT_LINE('Source name is ' ||image.getSourceName);
COMMIT;
END;
/