This is my 14th activity to participate in the August Challenge

Chapter 97 Attribute keyword – Collection

It is not recommended to specify the collection type of the collection attribute. Do not use.

Break down

This keyword has been replaced with “as” syntax.

Chapter 98 Attributes keyword – Deprecated

Specifies that this property is deprecated. This keyword is ignored by the class compiler and only provides human-readable indicators of deprecated attributes.

usage

To specify that this property is not recommended, use the following syntax:

Property name As classname [ Deprecated ]; 
Copy the code

Otherwise, omit the keyword or place it before the keyword.

Chapter 99 Attributes keyword – Final

Specifies whether this property is final (cannot be overridden in a subclass).

usage

To specify an attribute as final, use the following syntax:

Property name As classname [ Final ];
Copy the code

Otherwise, omit the keyword or place it before the keyword.

Break down

A class member marked Final cannot be overridden ina subclass.

The default

If this keyword is omitted, the property is not final.

Chapter 100 Attribute keyword – Identity

Specifies whether this attribute corresponds to the IDENTITY column in the corresponding SQL table. Applies to persistent classes.

usage

To specify that this attribute corresponds to the IDENTITY column in the corresponding SQL table, use the following syntax:

Property name As %Integer [ Identity ];
Copy the code

Note: The property type can be any Integer type, such as %BigInt, %Integer, %SmallInt, or %TinyInt.

Otherwise, omit the keyword or place it before the keyword.

Break down

For persistent objects, this keyword specifies that the attribute corresponds to the identity column in the corresponding SQL table (that is, the column marked with the SQL identity keyword). This keyword is especially useful for tables created through DDL statements. When creating tables using DDL, ensure that any identity fields are defined as MINVAL=1, if possible, to allow bitmap indexes to be created.

The default

If this keyword is omitted, this property will not be used as an identity column. If this keyword is omitted, this property will not be used as an identity column. If this keyword is omitted, this property will not be used as an identity column.