24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE PHYSICAL MODEL<br />

• For the current data model, you can choose:<br />

• To display the schema objects or objects relationships, and object definition or object symbol; click View ><br />

Diagram And Object Display Options > Schema Object and then select the desired display options.<br />

• What to display when you mouse over a schema object; click Tools > Options > Diagram > Schema Object<br />

Display and choose to display the object description or its associated DDL.<br />

Creating and Editing Packages<br />

A package is a group of procedures, functions, variables, and SLQ statements, used to store together related objects.<br />

Packages contain all the information needed to process SQL statements from a single source file. You can use<br />

packages to process and call batches of SQL. They are not associated with a particular table; they are stored in the<br />

database.<br />

The following database platforms support packages:<br />

• Oracle 7.x, 8.x, 9i, 10g, and11g<br />

Create a Package<br />

1 In the Data Model Explorer, expand the Logical Main Model, right-click the Packages node, and then click New<br />

Package.<br />

2 Complete the Package Editor and then click OK to create the package.<br />

TIP: Once you have created the auxiliary table, you can edit it by right-clicking the package you want<br />

to change, and then clicking Edit Package.<br />

TIP: The Package Editor includes find and replace functionality for working with SQL text strings.<br />

The following describe options that require additional explanation.<br />

Header tab<br />

Body tab<br />

The header contains the package specification. Here you can declare types, variables, constants, exceptions,<br />

cursors and subprograms. The header does not contain any code. You can specify a package that contains only<br />

global variables that will be used by subprograms or cursors. This type of package declares only types,<br />

constants, variables, exceptions, and call specifications and does not require a package body.<br />

The package body provides the implementation for the subprograms and the queries for the cursors declared in<br />

the header.<br />

Definition tab<br />

Enter or edit a definition for the package. If the target database supports it, <strong>ER</strong>/<strong>Studio</strong> adds this definition as a<br />

comment when generating SQL code.<br />

Attachment Bindings tab<br />

Bind an external piece of information, or attachment to the package. You can also remove an attachment from an<br />

object, override an attachment binding’s default value, or change the position of a bound attachment. To override<br />

the value of the attachment you have moved to the Selected Attachments grid, double-click the Value field of the<br />

target attachment. <strong>ER</strong>/<strong>Studio</strong> opens the Value Override Editor or a list depending on the attachment datatype.<br />

Attachments are created in the Attachments folder of the Data Dictionary. For more information, see Attaching<br />

External Documents to the Data Model.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 193

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!