Oracle® interMedia Reference 10g Release 1 (10.1) Part Number B10829-01 |
|
|
View PDF |
Format
getSourceLocation( ) RETURN VARCHAR2;
Description
Returns a string containing the value of the external data source location (the value of the source.srcLocation attribute of the embedded ORDSource object).
Parameters
None.
Usage Notes
This method returns a VARCHAR2 string containing the value of the external data location, for example BFILEDIR.
Pragmas
PRAGMA RESTRICT_REFERENCES(getSourceLocation, WNDS,
WNPS, RNDS, RNPS)
Exceptions
ORDSourceExceptions.INCOMPLETE_SOURCE_LOCATION
This exception is raised if you call the getSourceLocation( ) method and the value of the source.srcLocation attribute is NULL.
Examples
Get the source location 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 location. DBMS_OUTPUT.PUT_LINE('Source location is ' || image.getSourceLocation); COMMIT; END; /