The DBMS_XDBRESOURCE
package provides the interface to operate on the resource's metadata and contents.
See Also:
Oracle XML DB Developer's Guide for examples of "UsingDBMS_XDBRESOURCE
"This chapter contains the following topics:
Overview
Security Model
The DBMS_XDBRESOURCE
package provides routines to get and set the resource's metadata and contents. To take advantage of the DOM traversal facility, provided in DBMS_XMLDOM
package, an XDBResource
instance could be converted to a DOMDocument
type by using DBMS_XDBRESOURCE
.MAKEDOCUMENT
routine.
Table 167-1 DBMS_XDBRESOURCE Package Subprograms
Subprogram | Description |
---|---|
Frees any memory associated with an XDBResource |
|
Given an XDBResource, returns its ACL as string |
|
Returns the ACL Document for the given resource as |
|
Given an XDBResource, returns its author |
|
Given an XDBResource, returns its character set |
|
Given an XDBResource, returns its comment |
|
Returns the contents of the resource as a |
|
Returns the contents of the resource as a |
|
Returns the contents of the resource as an |
|
Given an XDBResource, returns its content-type |
|
Returns the contents of the resource as XML |
|
Returns the contents of the resource as a string |
|
Given an XDBResource, returns its creation date |
|
Given an XDBResource, returns its creator |
|
Returns the requested custom metadata given the xpath and namespace to the metadata |
|
Given an XDBResource, returns its display name |
|
Given an XDBResource, returns its language |
|
Given an XDBResource, returns its last modifier |
|
Given an XDBResource, returns its modification date |
|
Given an XDBResource, returns its owner. |
|
Given an XDBResource, returns its reference count |
|
Given an XDBResource, returns its version ID. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Converts the XDBResource to a DOMDocument which can be operated on using the XMLDOM interface |
|
Updates the resource with any modifications |
|
Sets the ACL of the given XDBResource to the path specified |
|
Sets the author of the given XDBResource to the specified string |
|
Sets the character set of the given XDBResource to a specified character set |
|
Sets a comment associated with the given XDBResource |
|
Replaces the contents of the given resource with the given |
|
Sets the content-type of the given XDBResource |
|
Sets the custom metadata specified by the XPath and namespace to new data |
|
Sets the display name of the given XDBResource |
|
Sets the language of the given XDBResource |
|
Sets the owner of the given XDBResource |
This function returns the requested custom metadata given the xpath and namespace to the metadata.
DBMS_XDBRESEROUCE.GETCUSTOMMETADATA ( res IN XDBResource, xpath IN VARCHAR2, namespace IN VARCHAR2) RETURN XMLType;
This function returns TRUE
if the ACL of the given resource has changed, FALSE
otherwise.
This function returns TRUE
if the author of the given resource has changed, FALSE
otherwise.
Given an XPath, this function determines whether the element or attribute represented by the XPath has changed.
DBMS_XDBRESEROUCE.HASCHANGED ( res IN XDBResource, xpath IN VARCHAR2, namespace IN VARCHAR2) RETURN BOOLEAN;
This function returns TRUE
if the character set of the given resource has changed, FALSE
otherwise.
This function returns TRUE
if the comment of the given resource has changed, FALSE
otherwise.
This function returns TRUE
if the contents of the given resource has changed, FALSE
otherwise.
This function returns TRUE
if the content-type of the given resource has changed, FALSE
otherwise
This function returns TRUE
if the creation date of the given resource has changed, FALSE
otherwise
This function returns TRUE
if the creator of the given resource has changed, FALSE
otherwise
This function checks whether the custom-metadata for a given resource has changed.
This function returns TRUE
if the display name of the given resource has changed, FALSE
otherwise
This function returns TRUE
if the language of the given resource has changed, FALSE
otherwise
This function returns TRUE
if the last modifier of the given resource has changed, FALSE
otherwise
This function returns TRUE
if the modification date of the given resource has changed, FALSE
otherwise
This function returns TRUE
if the owner of the given resource has changed, FALSE
otherwise.
This function returns TRUE
if the reference count of the given resource has changed, FALSE
otherwise.
This function returns TRUE
if the version ID of the given resource has changed, FALSE
otherwise.
This function converts the XDBResource to a DOMDocument which can be operated on using the XMLDOM interface.
See Also:
The DBMS_XMLDOM packageThis procedure sets the author of the given XDBResource to the specified string.
This procedure sets the character set of the given XDBResource to a specified character set.
This procedure replaces the contents of the given resource with the given datatype.
DBMS_XDBRESEROUCE.SETCONTENT ( res IN OUT XDBResource, data IN BFILE, csid IN NUMBER); DBMS_XDBRESEROUCE.SETCONTENT ( res IN OUT XDBResource, data IN BLOB, csid IN PLS_INTEGER); DBMS_XDBRESEROUCE.SETCONTENT ( res IN OUT XDBResource, data IN CLOB); DBMS_XDBRESEROUCE.SETCONTENT ( res IN OUT XDBResource, data IN REF SYS.XMLType, sticky IN BOOLEAN := TRUE); DBMS_XDBRESEROUCE.SETCONTENT ( res IN OUT XDBResource, data IN VARCHAR2); DBMS_XDBRESEROUCE.SETCONTENT ( res IN OUT XDBResource, data IN SYS.XMLType);
This procedure sets the custom metadata specified by the xpath and namespace to new data.
DBMS_XDBRESEROUCE.SETCUSTOMMETADATA ( res IN OUT XDBResource, xpath IN VARCHAR2, namespace IN VARCHAR2, newMetadata IN XMLType);