Oracle9i XML API Reference - XDK and Oracle XML DB Release 2 (9.2) Part Number A96616-01 |
|
This chapter contains the following sections:
The resource view and path view both provide a mechanism for SQL access for data that is stored in the Oracle XML DB repository. Data which is stored in the Oracle XML DB repository ia protocols like FTP, WebDAV or programming API such as JNDI can be accessed in SQL through these views and vice versa. Resource view and path view together (along with some PL/SQL packages) provide all the query and DML functionality that is available through the programming API. The PATH VIEW has one row for each unique path in the repository, whereas the resource view has one row for each resource in the repository.
The UNDER_PATH
operator uses the Oracle XML DB hierarchical index to return the paths under a particular path. The hierarchical index is designed to speed access walking down a path name (the normal usage). If the other parts of the query predicate are very selective, however, a functional implementation of UNDER_PATH m
ay be chosen that will walk back up the repository. This can be more efficient, since a much smaller number of links may need to be traversed. The options are described in the following table.
Finds the resource with the specified path name. The EQUALS_PATH
operator is functionally equivalent to UNDER_PATH
with a depth restriction of 0
.
EQUALS_PATH INTEGER EQUALS_PATH( resource_column, pathname);
Parameter | Description |
---|---|
resource_column |
The column name or column alias of the 'resource' column in the |
pathname |
The path name to resolve. |
An ancillary operator that returns the relative path name of the resource under the specified pathname
argument. Note that the path column in the resource view always contains the absolute path of the resource.
PATH VARCHAR2 PATH( correlation);
Parameter | Description |
---|---|
correlation |
An integer that can be used to correlate the UNDER_ |
An ancillary operator that returns the folder depth of the resource under the specified starting path.
DEPTH INTEGER DEPTH( correlation);
Parameter | Description |
---|---|
correlation |
An integer that can be used to correlate the UNDER_ |
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|