Skip to main content
Previous sectionNext section

Language

Specifies the default language used to implement methods for this class.

Usage

To specify the default language used to implement methods in this class, use the following syntax:

Class MyApp.MyClass [ Language = language ] { //class members }

Where language is one of the following:

  • cache — ObjectScript (the default)

  • basic — 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

Or omit this keyword. In this case, Caché uses the default language (ObjectScript).

Details

This keyword specifies the default language used to implement methods for this class. Individual methods can override this value using the method’s Language keyword.

Effect on Subclasses

This keyword is not inherited.

Default

If you omit this keyword, the language is ObjectScript.

See Also