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
-
ispl — Informix Stored Procedure Language
-
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.
The values ispl and tsql are only supported for class methods.
If you specify a value of ispl, the body of the method is limited to a single CREATE PROCEDURE statement.
Default
If you omit this keyword, the language specified by the class-level Language keyword is used.
You cannot specify Language = ispl at the class level; you can only use this value for methods.
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