Structured Types Wizard (DB2 LUW)
Go Up to IBM DB2 for Linux, Unix, and Windows Object Wizards
The Structured Type wizard lets you create the object type specification and define attributes for a structured type. You then use the Structured Type editor to define the methods and body for the type.
To Open the Type wizard
- On the Navigator/Explorer, find the datasource where you want to add the new Structured Type.
- Expand the Schema branch, right-click Structured Type, and select Create.
- Use the following topics as a guide to setting properties and performing tasks as you pass through the wizard panels:
- Properties panel. For details, see Structured Types (DB2 LUW) - Properties.
- Attributes panel. For details, see Structured Types (DB2 LUW) - Attributes.
- DDL View panel. For details, see Previewing the DDL Generated to Create the New Object.
- Finally, use the Execute button to create the object.
On completion, the Structured Type editor opens, letting you provide method and body specifications for the structured type. For details, see Structured Types Editor (IBM DB2 LUW).
Structured Types (DB2 LUW) - Properties
When creating or editing a structured type, this tab/panel lets you work with the following settings:
Setting | Description |
---|---|
Attributes |
|
Supertype |
Supertype Schema and Supertype Name. Let you designate this structured type as a subtype by providing details of the owning supertype. |
Reference |
|
Structured Types (DB2 LUW) - Attributes
For each attribute to be added to the structured type, click New , and then provide a name for the attribute.
With an attribute selected, you can modify the Datatype. Depending on the datatype you choose you can provide the following datatype qualifiers:
- Width (decimal only)
- Scale (decimal only)
- Size (blob, character, clob, dbclob, graphic, varchar, vargraphic only)
- Allow log (blob, clob, dbclob only)
- Allow compact (blob, clob, dbclob only)
- For bit data (character, long varchar, varchar, only)