Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

OQLScopes

Developers.OQLScopes History

Hide minor edits - Show changes to markup

November 28, 2005, at 11:58 PM by Tassos Koutsovassilis -
Added lines 1-19:

SCOPE_LIST ::=

SCOPE ("," SCOPE)*

SCOPE ::=

STRING |
"shallow" "(" STRING ")" |
"deep" "(" STRING ")" |
"this" ":" STRING

Scopes usually define the statement's execution field. There are three types of scopes, shallow, deep and inner scopes. Shallow scopes include only the direct descentants of a container, unlike deep scopes which include all the descentants of a container, traversing the folder recursively. When the scope type identifier is ommited, then the scope becomes shallow. The STRING literal must be the container ID or the full path to the container.

Inner scopes are valid only for subqueries. Using an inner scope to a top level query, raises an OQLError? exception. The STRING literal must be the name of a ReferenceN?, RelatorN? or Composition attribute.

Valid scopes are:

  • '/', which is equivalent to shallow('/')
  • deep('/') or deep('') includes all the objects in the database
  • '/Administrative Tools/Users and Groups' is equivalent to 'users' which is the ID of the 'Users and Groups' container.
  • this:members
Page last modified on November 28, 2005, at 11:58 PM