613-518-1166 info@zimdatabases.com

Zim Object Manager (ZOM)

Advanced ZOM Object Selection Criteria

< All Topics

Two advanced selection criteria are described for selecting objects when using the ZOM services.

Selection

Syntax

Description

Difference Status

p n | ch | r | m

Selects objects based on the results of using ZOMDiff or ZOMImport to compute the difference between two different sets of objects, one in the Object Dictionary and one in the Shadow Dictionary.
If “n” is specified, all “new” objects are selected. A “new” object is an object that is defined in the Object Dictionary but not in the Shadow Dictionary.
If “ch” is specified, all “changed” objects are selected. A “changed” object is an object that is in defined in both dictionaries but the two definitions are different.
If “r” is specified, all “renamed” objects are selected. A “renamed” object is an object that is in defined in both dictionaries but the two definitions have different names.
If “m” is specified, all “moved” objects are selected. A “moved” object is an object that is in defined in both dictionaries but the two definitions are in different Zim directories.

Query

q

Selects objects bases on the given query program. The query program is a custom program created by the user using the DPSMakeQuery command.

SELECTING BY QUERY PROGRAM

The Query Management Services (e.g., DPSMakeQuery) can be used by advanced ZOM users to write programs that select objects for use by ZOM services. These queries must be written such that they produce a set of ObjectList entities named “InputCLObjSet”.

An example of such a query, called “Find_ZZZ” is shown below. It finds all objects starting with the string “ZZZ.” It is created using the command DPSMakeQuery.

%% Query: Find_ZZZ

all ObjectList where ObjectList.ObjectName like “ZZZ%” -> InputCLObjSet

This is then used to list the objects found as shown below:

ZOMList +q Find_ZZZ

The query option can also be used in conjunction with other criteria. The following command finds all EntitySets, except those found by the query Find_ZZZ:

ZOMList +t Ent -q Find_ZZZ

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents