Oracle XML DB versioning interfaces are found in the DBMS_XBD_VERSION
package. Functions and procedures of DBMS_XDB_VERSION
help to create a VCR and manage the versions in the version history.
This chapter contains the following topic:
Security Model
See Also:
Oracle XML DB Developer's GuideTable 166-1 DBMS_XDB_VERSION Package Subprograms
Method | Description |
---|---|
Checks in a checked-out VCR and returns the resource id of the newly-created version |
|
Checks out a VCR before updating or deleting it |
|
Obtain contents as a |
|
Obtain contents as a |
|
Obtain contents as an |
|
Retrieves the list of predecessors by path name |
|
Retrieves the list of predecessors by resource id |
|
Obtains the resource as an |
|
Retrieves the list of successors by path name |
|
Retrieves the list of successors by resource id |
|
Turns a regular resource whose path name is given into a version-controlled resource |
|
Checks in a checked-out resource, returns the resource id of the version before the resource is checked out |
This function checks in a checked-out VCR and returns the resource id of the newly-created version.
This is not an auto-commit SQL operation. CHECKIN Function doesn't have to take the same path name that was passed to CHECKOUT Procedure operation. However, the CHECKIN Function path name and the CHECKOUT Procedure path name must be of the same resource for the operations to function correctly. If the resource has been renamed, the new name must be used to CHECKIN Function because the old name is either invalid or is currently bound with a different resource. Exception is raised if the path name does not exist. If the path name has been changed, the new path name must be used to CHECKIN Function the resource.
This procedure checks out a VCR before updating or deleting it.
This is not an auto-commit SQL operation. Two users of the same workspace cannot CHECKOUT Procedure the same VCR at the same time. If this happens, one user must rollback. As a result, it is good practice to commit the CHECKOUT Procedure operation before updating a resource and avoid loss of the update if the transaction is rolled back. An exception is raised if the given resource is not a VCR, if the VCR is already checked out, if the resource doesn't exist.
This function obtains the resource as an XMLType
, given the resource object ID. Because the system does not create a path name for versions, this function is useful for retrieving the resource using its resource id.
Given a version resource or a VCR, this function retrieves the list of the successors of the resource by the path name.
This function retrieves the list of the successors of the resource by resource id using version resource or VCR.
This function turns a regular resource whose path name is given into a version-controlled resource. This new resource is then put under version control. All other path names continue to refer to the original resource.
If two or more path names are bound with the same resource, a copy of the resource is created, and the given path name is bound with the newly-created copy.
This is not an auto-commit SQL operation. An exception is raised if the resource doesn't exist.
This call is legal for VCR, and neither exception nor warning is raised.
This call is illegal for folder, version history, version resource, and ACL.
No support for Schema-based resources is provided.
This function checks-in a checked-out resource and returns the resource id of the version before the resource is checked out.
This is not an auto-commit SQL operation. The UNCHECKOUT Function does not have to take the same path name that was passed to the operation by the CHECKOUT Procedure. However, the UNCHECKOUT Function path name and the CHECKOUT Procedure path name must be of the same resource for the operations to function correctly. If the resource has been renamed, the new name must be used to UNCHECKOUT Function, because the old name is either invalid or is currently bound with a different resource. If the path name has been changed, the new path name must be used to UNCHECKOUT Function the resource.