Files > QUERY OBJECT

name
QUERY OBJECT
number
409.64
location
^SD(409.64,
description
This table contains the query object definition for a specific database file supported by a custodial package. This definition specifies any specific mehtods and properties that are needed beyond the generic methods and properties available. Using this query object interface, custodial packages can allow access to internal data entries to other packages without direct global access and integration agreements.
Fields
#NameLocationTypeDetailsIndexDescription
.01name(+)0;1FREE TEXTB This property contains the name of the query object being defined. The name should be namespaced.
.02file0;2POINTER1 This property contains the name of the file associated with this query object definition. (Note: It is possible to have a file associated with more than one query object definition.)
.03subscripts in global root0;3NUMERIC This property contains the number of subscripts in the global root for the file associated with this query object definition. Examples: Global Root Level ----------- ----- ^SCE 0 ^SCPT(404.42) 1 This property is needed by some methods when the intrinic $QSUBCRIPT function is executed.
.04$storage limit0;4NUMERIC This property indicates the trigger value of $STORAGE that causes the query object data to be stored in ^TMP global instead of a local array. (The local variable is the default.) If the $STORAGE is less than the Property value then store in global. Examples: $Storage Value Property Value Query Stored in... ============== ============== ================== 30000 10000 local 5000 10000 global
.07ok to transport?0;7SET OF CODES0:NOT OK
1:OK
This field indicates to the transport utility if this query template should be distributed.
101open methodOPEN;E1,245FREE TEXT This property contains any query specific open logic that the custodial pacakge needs performed. This logic is executed after the generic open logic is performed.
102close methodCLOSE;E1,245FREE TEXT This property contains any query specific close logic that the custodial pacakge needs performed. This logic is executed before the generic close logic is performed.
103scan method(+)SCAN;E1,245FREE TEXT This property contains query object specific logic that the custodial package must specify that allows the use of the Scan method by developers. This scan logic typically hard codes references to supported indexes. There is a significant performance reasons for the custidial packages to develop this logic. The Next/Eof scanning approach is much slower then using Scan/Scan Callback approach. For more information, see API definitions for the following: Scan Scan Callback Next EOF Prior BOF
104zero node methodZERO;E1,245FREE TEXT This property contains any query specific logic that the custodial pacakge needs performed to screen out unsupported fields on the zero node. Various methods of the query object need to make available to developers the zero node of an entry. For example, during the execution of the filters and scan callbacks, the zero node is made available to developers in the variable Y0. If the custodial package does not support all fields on the zero node, then logic similar to the following needs to be specified in this property: S Y0=$$Y0^XXUTL(Y) ...where Y is the internal entry number
200supported indexesINDEX;0MULTIPLE409.641 This multiple contains index definitions that are supported by the custodial package when the developer uses this query object definition.

Not Referenced