Caché Class Definition Reference
Identity
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Specifies whether this property corresponds to the identity column in the corresponding SQL table. Applies to persistent classes.
Usage
To specify that this property corresponds to the identity column in the corresponding SQL table, use the following syntax:
Property name As %Integer [ Identity ];
Note:
Make sure that the type of the property is %Integer, as shown here.
Otherwise, omit this keyword or place the word Not immediately before the keyword.
Details
For a persistent object, this keyword specifies that a property corresponds to an identity column in the corresponding SQL table (that is, a column that is marked with the SQL IDENTITY keyword). This keyword is useful particularly for tables that are created through DDL statements; see Using Caché SQL.
Default
If you omit this keyword, this property is not used as the identity column.
See Also