Sybase 7.5 manual Defining OOM model options, Classes

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 19
Image 19

Chapter 1 Object-Oriented Model Basics

Defining OOM model options

You can set model options and naming conventions that apply to all objects in the model. You can also set naming conventions for each type of object in your model.

You define OOM model options from the model options dialog box.

You can set options that apply to the following OOM objects:

Classes

Default data types

Domain/Attribute

Classes

You can set the following option for classes in an OOM:

Option

Show classes as datatypes

Description

Includes classes that exist in the model in the list of data types that you can define for attributes, operations, or parameters

Default data types The default data type is the data type that applies to attributes, operations and parameters if no data type is selected.

You can set the following options for default data type in an OOM:

Option

Attribute Default Data Type

Operation Default Data Type

Parameter Default Data Type

Description

Defines the default data type for all new attributes

Defines the default return type for all new operations

Defines the default data type for all new operation parameters

Domains/Attribute From the Model Options dialog box, you can choose to enforce non- divergence between a domain definition and the attributes using the domain, for the following attribute properties:

Property

Data type

Check

Attributes in the domain cannot have divergent

Data type, length, and precision

Check parameters

9

Page 19
Image 19
Sybase 7.5 manual Defining OOM model options, Classes, You can set the following option for classes in an OOM