You can modify an object's properties from its property sheet. To open a view property sheet, double-click its diagram symbol or its Browser entry in the Views folder. The following sections detail the property sheet tabs that contain the properties most commonly entered for views.
Property |
Description |
---|---|
Name |
Specifies the name of the item, which should be clear and meaningful, and should convey the item's purpose to non-technical users |
Code |
Specifies the technical name of the object, which is used for generating code or scripts, which may be abbreviated, and should not generally include spaces |
Comment |
Specifies a descriptive label for the view |
Stereotype |
Sub-classification used to extend the semantics of an object without changing its structure; it can be predefined or user-defined |
Owner |
Specifies the name of view owner. You choose an owner from a list of users. A view can only have one owner at a time. This is normally the view creator |
Usage |
Specifies the use of the view: Query only defines a view for consultation only, view cannot update tables; Updatable defines a view for consultation and update, view can update tables; and With Check options implements controls on view insertions |
Dimensional type |
Specifies the multidimensional type of the view, that is Dimension or Fact |
Type |
For those DBMS that support it, allows you to define the type of a view. You can select materialized query table, materialized view, summary table, or XML |
Generate |
Includes view generation as part of database generation script |
User-defined |
When selected, makes sure the view query is not parsed by PowerDesigner internal parser. This protects the view query from any update using model objects and keeps its syntax as defined by user. Otherwise, the view query is parsed and modified according to model values |
Columns - lists the columns in the view based on the SELECT orders from the queries. To add or remove columns from this list, you must modify the appropriate query.
If the view was created from one or more tables or views, the name, code, description and data type of the view column are those of the corresponding column in the linked table or view.
select Name, Comment from Property union select Signature, Body from MethodIn this case, if you modify the view column code (for example, renaming Name to ClientName, the view creation script will reflect the change:
create view MYVIEW (ClientName, "Comment") as select Name, Comment from Property
For more information on materialized views, materialized query tables, and summary tables, see Creating a query table.
For more information on XML views, see Creating an XML table or view.