Home / Class Definition Reference / Method Keywords / ServerOnly

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

Specifies whether this method will be projected to a Java client.
To override how InterSystems IRIS projects the method to a Java client, use the following syntax:
Method name(formal_spec) As returnclass [ ServerOnly=n ] 
{    //implementation }
Where n is one of the following:
This keyword specifies that a method will not be projected to a Java client.
To see which methods of a class are server-only, use the following utility in the Terminal:
do dumpMethods^%occLGUtil("Sample.Person")  
The argument is the fully qualified class name. This utility produces a report that indicates basic information about each method: whether the method is a stub, whether the method is server-only, and (if the method is derived from a property) the property from which it is derived.
If you omit this keyword, this method will not be projected if it is a stub method (but will be projected if it is not a stub method).
See Also

Previous section           Next section
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-04-23 13:43:22