%Compiler.LG.QueryHelper
Class %Compiler.LG.QueryHelper Extends (%Library.RegisteredObject, %Collection.AbstractListOfObj) [ ClientName = com.intersystems.classes.ListOfObjects, Inheritance = right, System = 4 ]
Properties
RS
Property RS As %Library.ScrollableResultSet [ Private ];
Count
Property Count As %Integer [ Private ];
Cursor
Property Cursor As %Integer [ Private ];
Class
Property Class As %String [ Private ];
Methods
Query
ClassMethod Query(class As %String, sql As %String, args) As QueryHelper [ ServerOnly = 1 ]
Init
Method Init(class As %String, sql As %String, args) As %Status [ ServerOnly = 1 ]
Count
Method Count() As %Integer
Returns the number of elements contained in the list.
GetNext
Method GetNext(ByRef key As %Integer) As %RegisteredObject
Finds and returns the value of the element at the position after key in the list. If key is a null string (""), it returns the value of the first element in the list.
The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the end of the list.
GetAt
Method GetAt(key As %Integer = 0) As %RegisteredObject
Finds and returns the value of the element at position key in the list.
GetAt returns the value of the element at location key or null string ("") if no element is found.