Language
Usage
To specify the language used to implement the method, use the following syntax:
Method name(formal_spec) As returnclass [ Language = language ] { //implementation }
Where language is one of the following:
-
cache (the default) — ObjectScript
-
basic — Caché Basic
-
java — Java
This value applies only when you are using the Caché Java Binding. When Caché projects Java classes from the Caché definition, it includes any Java methods. These methods run directly in the Java Virtual Machine.
-
javascript — JavaScript
This value applies only when you are using Zen or technology based on Zen. The JavaScript methods run directly in the browser.
-
mvbasic — MultiValue Basic
-
tsql — Transact-SQL
Details
This keyword specifies the language used to implement this method.
Default
If you omit this keyword, the language specified by the class-level Language keyword is used.
See Also
-
“Method Definitions” in this book
-
“Defining and Calling Methods” in Using Caché Objects
-
“Defining Method and Trigger Generators” in Using Caché Objects
-
“Introduction to Compiler Keywords” in Using Caché Objects