PowerDesigner procedure templates allow you to write table procedures in a modular reusable fashion. We provide basic templates for insert, select, update, and delete procedures. You can modify the code specified in these templates or create your own templates in the DBMS definition file.
To apply a procedure template to your procedure definition, select the template from the list on the procedure property sheet Definition tab (see Procedure Properties).
To create a new template, click the Add a Row tool.
The General tab contains the following properties:
Property |
Description |
---|---|
Name/Code/Comment |
Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. You can optionally add a comment to provide more detailed information about the object. By default the code is generated from the name by applying the naming conventions specified in the model options. To decouple name-code synchronization, click to release the = button to the right of the Code field. |
DBMS |
Specifies the parent DBMS. |
Function |
Specifies whether the template defines procedures or functions. |
Procedure Name |
Specifies the conventions for naming procedures based on the template. |
Linked to table |
Specifies whether the resulting procedure will be linked to a table. |
Keywords |
Provide a way of loosely grouping objects through tagging. To enter multiple keywords, separate them with commas. |