Skip to main content
Previous sectionNext section

DdlAllowed

Specifies whether DDL statements can be used to alter or delete the class definition. Applies only to persistent classes.

Usage

To make it possible to modify a class via DDL, use the following syntax:

Class MyApp.Person Extends %Persistent [ DdlAllowed ]  
{ //class members }
Copy code to clipboard

Otherwise, omit this keyword or use the following syntax:

Class MyApp.Person Extends %Persistent [ Not DdlAllowed ]  
{ //class members }
Copy code to clipboard

Details

This keyword specifies whether DDL statements (such as DROP TABLE, ALTER TABLE, DROP INDEX, and so on) can be used to alter or delete the class definition.

Typically it is undesirable to enable SQL users to modify classes using DDL statements.

Effect on Subclasses

This keyword is not inherited.

Default

If you omit this keyword, DDL statements cannot be used to affect the class definition.

Note

If you create a class by executing a DDL CREATE TABLE statement, the DdlAllowed keyword will initially be set to true for that class.

See Also