Description

Performs a query and creates a query results child folder in the journal with the resultant nodes.

Return Type

A McDBNode object.   The Journal search results child folder reference that contains the query results.

Syntax

object.MakeQuery ([pQueryDefinition], [eSearchContext], [vSearchContext], [eNodeRecurseMode], [sQueryName], [sSearchContext])

The MakeQuery Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataJournal.
pQueryDefinitionOptional. An Object object.
eSearchContextOptional. A mcDataMakeQueryContext enumeration, as described in settings. Specifies the source context of the query (Where to search).
vSearchContextOptional. A Variant value. A string or for (mcdatmqc_SuppliedCollection or mcdatmqc_Database) a collection of DBNode specified by a McDataNodeRefs or McDBNodes reference or a McDatabase Reference.
eNodeRecurseModeOptional. A mcDBQueryMode enumeration, as described in settings. (mcdatmqc_SuppliedCollection) How the query should recurse the children of pNodeCollectionOrDatabase
sQueryNameOptional. A String value. Name describing the query to be used in the query results folder (overrides McDbQuery.Description).
sSearchContextOptional. A String value. May be used to describe the Search Context of the query. This value will be stored on the query results child folder.

Settings

The settings for eSearchContext are:

ConstantValueDescription
 mcdatmqc_UseQuery0

Databases specified in the McDBQuery are searched.

 mcdatmqc_OpenMcDatabases1

Performs search on the all the open databases in the McDBDatabases collection.

 mcdatmqc_AllMcDatabases2

Same as mcdatmqc_ActiveOpenMcDatabases but first attempts to open all databases in the McDBDatabases collection.

 mcdatmqc_SuppliedCollection4

Use the supplied McDataNodeRefs or McDbNodes collection and mcDBQueryMode option.

 mcdatmqc_Database8

Use the supplied McDBDatabase

The settings for eNodeRecurseMode are:

ConstantValueDescription
 mcdbShallow0

The McDBNode and its immediate Children

 mcdbRecursive1

The McDBNode and all of its descendants

 mcdbNoForeign2

Do not include foreign references [bit flag]

 mcdbShallowNoForeign2

The McDBNode and all of its non-foreign children

 mcdbRecursiveNoForeign3

The McDBNode and all of its non-foreign descendants

 mcdbNoLinks4

Do not follow symbolic links [bit flag]

 mcdbShallowNoLinks4

The McDBNode and its immediate children for which it is the primary parent

 mcdbRecursiveNoLinks5

The McDBNode and all of its descendants that can be reached without following a symbolic link

 mcdbShallowNoForeignNoLinks6

The McDBNode and its immeidate Children that are neither foreign nor symbolically linked

 mcdbRecursiveNoForeignNoLinks7

The McDBNode and all of its descendants that are neither foreign nor symbolically linked

 mcdbLocal8

The McDBNode only