ReturnResultsets (Method Keyword)
Usage
To specify that the method returns at least one result set, use the following syntax:
ClassMethod name(formal_spec) As returnclass [ ReturnResultsets, SqlName = CustomSets, SqlProc ]
{ //implementation }
Otherwise, omit this keyword or place the word Not immediately before the keyword.
Details
This keyword specifies that the method returns at least one result set. Set this keyword to true if the method might return one or more result sets. If you do not, then the result sets cannot be retrieved by database drivers, such as JDBC.
For a stored function, either specify Not ReturnResultsets or do not specify this keyword.
Default
If you omit this keyword, result sets cannot be retrieved by database drivers.
See Also
-
“Method Definitions” in this book
-
“Defining and Calling Methods” in Defining and Using Classes
-
“Defining Stored Procedures” in Using InterSystems SQL
-
“Stored Functions” in Using InterSystems SQL
-
“Defining Method and Trigger Generators” in Defining and Using Classes
-
“Introduction to Compiler Keywords” in Defining and Using Classes