docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Method Keywords

Class Definition Reference
SqlProc
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Specifies whether the method can be invoked as an SQL stored procedure. Only class methods (not instance methods) can be called as SQL stored procedures.
Usage
To specify that the method can be invoked as an SQL stored procedure, use the following syntax:
ClassMethod name(formal_spec) As returnclass [ SqlProc ] 
{    //implementation }
Otherwise, omit this keyword or place the word Not immediately before the keyword.
Details
This keyword specifies that the method can be invoked as an SQL stored procedure. Only class methods (not instance methods) can be called as SQL stored procedures.
Stored procedures are inherited by subclasses.
Default
If you omit this keyword, the method is not available as an SQL stored procedure.
See Also


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-09-19 06:56:35