Specifies the type (or behavior) of this class.
To specify the type of class (if needed), use the following syntax:
Class MyApp.MyClass [ ClassType = classtype ]
the class is a data type class and is used to represent a literal value.
the class represents data to be stored in the database.
the class represents data to be stored (in its serialized state) in another persistent object.
the class represents streaming data.
the class is used to define an SQL view (see the ViewQuery
An empty string, which indicates that this class has no specific type. Abstract
classes typically do not specify a class type.
If this keyword is not specified, the class type is inherited from the primary superclass, if there is one.
This keyword specifies how this class is to be used. The class compiler uses the ClassType keyword to determine how to compile a class. For example, if ClassType is persistent
, the class compiler additionally invokes the storage compiler to generate persistence code for a class. Unless explicitly defined, the value of ClassType is either the default value or it is inherited from the primary superclass.
For persistent classes, an explicit ClassType statement is only required when standard persistence behavior is being overridden. If a class definition includes such a statement, it is either because a developer has specified it or because the class originated in code developed with an older version of Caché.
This keyword is inherited from the primary superclass
. The subclass can override the value of the keyword.
If you omit this keyword, the class type is inherited from the primary superclass, if there is one.