advertisement
PL/SQL Developer 7.1 User’s Guide 69
9. Diagrams
The Diagram Window allows you to create a graphical representation of a selection of objects. This way you can easily visualize (a part of) the database objects of your application or project and their relations:
You can add all relevant object types to a diagram, and include the relations between them. Foreign key relations between tables are automatically included. For large diagrams you can add additional structure by including object groups.
A diagram can be used for documentation purposes, but can also serve as a workspace. Right-clicking on an object provides access to all object functions, and double-clicking on an object will invoke the default action for the object type.
9.1 Creating a diagram
To create a new diagram, select the Diagram Window from the New submenu in the File menu. An empty Diagram Window will appear. To add a database object to the diagram, drag it from the Object
Browser into the Diagram Window. You can drag & drop multiple objects at once.
To move a diagram object, click on the title bar and drag it to the new location. To resize a diagram object you can drag an edge or a corner. To delete an object from the diagram, press on the X at the upper-right of the object. This will only affect the diagram, and the database object will not be dropped.
Showing and hiding items
To show or hide a specific item of a diagram object, right-click on it and go to the Items submenu. Here you will see a submenu with all items that are applicable for the selected object. For a table you can select which items of a column, key or index you want to show. You can also hide the complete key or index section.
By default all items will be displayed, but if you right-click on an object and select Set as default, the visible items will apply to all objects added to a diagram in the future. You can do this for all object types.
70 PL/SQL Developer 7.1 User’s Guide
Adding relations
To add a relation between 2 objects, click on the icon of an element of the source object, and drag it to the element of the target object. A line will be drawn between the 2 elements of the objects. You can move the line to another element by selecting the line and moving the selection point up or down. To remove a line, select it and press the Delete key.
If you add a table to a diagram, foreign key relations with other tables on the diagram will automatically be included. These relations can be deleted if necessary.
By default relations will be drawn as straight lines. You can add additional bends by right-clicking on a line and selecting Insert bend from the popup menu. You can also hold down the Ctrl key while clicking on a line to insert a bend. A new selection point is added to the line as a result.
To create a one-to-many relation, right-click on the end of the line and select Change line end from the popup menu.
Adding groups
To add additional structure to a large diagram, you can create object groups. Groups can have distinctive colors, and can have a title at the upper or lower left or right:
To add a group, right click at an empty position on the diagram and select Add group from the popup menu. A new group will appear at this location, which you can resize to appropriate dimensions. All objects that are completely covered by the group will implicitly be part of that group, and moving the group will also move these enclosed objects. If you hold down the Ctrl key while moving a group, the enclosed objects will not be moved.
PL/SQL Developer 7.1 User’s Guide
To change the appearance of a group, right-click on it and select the Properties item from the popup menu. You can also double-click on the group. The following screen will appear:
71
You can change the font, fill color, line color and line size of the group, and make the group transparent.
You can optionally enter the title of the group, and specify the location of the title.
To create a default group appearance, right-click on it and select Set as default. This will apply to all groups added to a diagram in the future.
To delete a group from the diagram, select it and press the Delete key. This will only delete the group, and not the enclosed objects.
9.2 Saving and opening a diagram file
To save a diagram to a file, select the Save item from the File menu. A diagram will be saved in a file with a .pdd extension, which can be reopened later. To define a standard location for diagram files, go to the Directories preference page and set the corresponding option.
9.3 Updating a diagram
A diagram is a static representation of the database. If database objects change over time, you will need to update the diagram to reflect these changes. To do so, right-click on a diagram object and select
Update from DB from the popup menu. To update all objects on the diagram, right-click on it and select
Update All from DB.
If an object is dropped from the database, you will also need to delete it from the diagram. If an object is renamed in the database, you will need to delete the diagram object and add it with the new name.
advertisement
Related manuals
advertisement
Table of contents
- 3 Contents
- 9 Introduction
- 13 Installation
- 13 System requirements
- 13 Workstation installation
- 13 Server based installation
- 14 Scripted installation
- 14 Uninstalling PL/SQL Developer
- 15 Writing programs
- 15 Creating a program
- 16 Saving a program
- 17 Modifying a program
- 17 Compiling a program
- 18 Substitution variables
- 19 Testing programs
- 19 Creating a Test Script
- 20 Executing a Test Script
- 21 Variable types
- 22 Saving Test Scripts
- 23 Tracking run-time errors
- 23 Package states & Java session states
- 23 Viewing result sets
- 23 Viewing dbms_output
- 24 Viewing HTP output
- 24 Debugging
- 27 Tracing execution
- 28 Regression testing
- 29 Optimizing
- 29 Using the Explain Plan Window
- 30 Automatic statistics
- 31 The PL/SQL Profiler
- 32 SQL Trace
- 34 Ad hoc SQL
- 34 Using the SQL Window
- 35 Result grid manipulation
- 39 Query By Example mode
- 40 Linked Queries
- 40 Substitution variables
- 41 Updating the database
- 42 Viewing and editing XMLTYPE columns
- 42 Direct Query Export
- 42 Saving SQL Scripts
- 43 Creating Standard Queries
- 44 The Command Window
- 44 Entering SQL statements and commands
- 45 Developing command files
- 46 Supported commands
- 49 Creating and modifying non-PL/SQL objects
- 49 The table definition editor
- 60 The sequence definition editor
- 60 The synonym definition editor
- 61 The library definition editor
- 61 The directory definition editor
- 62 The job definition editor
- 62 The queue definition editor
- 63 The queue table definition editor
- 64 The user definition editor
- 67 The role definition editor
- 68 The profile definition editor
- 68 The database link definition editor
- 69 Diagrams
- 69 Creating a diagram
- 71 Saving and opening a diagram file
- 71 Updating a diagram
- 72 Reports
- 72 Standard reports
- 73 Custom reports
- 74 Variables
- 77 Refining the layout
- 84 The Style Library
- 84 Options
- 86 The Reports menu
- 87 Graphics
- 89 Projects
- 89 Creating a new project
- 89 Saving a project
- 90 Adding files to a project
- 90 Adding database objects to a project
- 90 Working with project items
- 91 Compiling a project
- 92 To-Do Items
- 93 Creating a To-Do Item
- 93 Editing a To-Do Item
- 94 Closing a To-Do Item
- 94 Deleting a To-Do Item
- 95 Windows, database sessions and transactions
- 95 Session mode
- 95 Execution in Multi session or Dual session mode
- 96 Browsing objects
- 96 Using the Browser
- 101 Browser Filters
- 102 Browser Folders
- 104 Preferences
- 105 Oracle – Connection
- 106 Oracle – Options
- 107 Oracle – Debugger
- 108 Oracle – Output
- 109 Oracle – Trace
- 109 Oracle – Profiler
- 110 Oracle – Logon History
- 111 Oracle – Hints
- 113 User Interface – Options
- 115 User Interface – Toolbar
- 115 User Interface – Browser
- 117 User Interface – Editor
- 120 User Interface – Fonts
- 121 User Interface – Code Assistant
- 122 User Interface – Key Configuration
- 123 User Interface – Appearance
- 124 User Interface – Date/Time
- 125 Window Types – Program Window
- 127 Window Types – SQL Window
- 129 Window Types – Test Window
- 129 Window Types – Plan Window
- 129 Tools – Differences
- 130 Tools – Data Generator
- 131 Tools – To-Do List
- 131 Tools – Recall Statement
- 132 Files – Directories
- 133 Files – Extensions
- 134 Files – Format
- 134 Files – Backup
- 135 Files – HTML/XML
- 136 Other – Printing
- 137 Other – Updates & News
- 138 Preference sets
- 140 Tools
- 140 Browser
- 140 Find Database Objects
- 141 Compile Invalid Objects
- 142 Export Tables
- 145 Import Tables
- 147 Export User Objects
- 148 Text Importer
- 151 ODBC Importer
- 153 Data Generator
- 156 Compare User Objects
- 158 Compare Table Data
- 160 Event Monitor
- 161 Sessions
- 163 User Defined Tools
- 167 Test Manager
- 170 The Editor
- 170 Selection functions
- 170 Column selection
- 171 Code Assistant
- 172 Recalling statements
- 172 Special Copy
- 173 Context sensitive help
- 174 Database object popup menu
- 174 Explain Plan
- 174 Macros
- 175 Bookmarks
- 176 Color marks
- 177 Code Contents
- 178 Code Hierarchy
- 179 Code Folding
- 179 Split Editing
- 180 Hyperlink navigation
- 180 Navigation buttons
- 181 Refactoring
- 181 Search Bar
- 183 The Large Data Editor
- 184 Editing plain text
- 184 Editing RTF
- 185 Editing XML
- 186 Editing images
- 186 Editing Hex data
- 187 Invoking an external viewer or editor
- 189 The Query Builder
- 189 Creating a new select statement
- 192 Modifying an existing select statement
- 192 Manipulating the query definition
- 193 Query Builder Preferences
- 194 Query Builder Plug-Ins
- 195 The PL/SQL Beautifier
- 195 Defining the options
- 196 Defining the rules
- 197 Using the beautifier
- 198 Templates
- 198 The Template Window
- 199 Using a template
- 200 Creating and modifying templates
- 205 Window List
- 206 Dockable and Floating Tools
- 207 Authorization
- 207 Enabling authorization
- 208 Defining authorization
- 209 Disabling authorization
- 210 Oracle File System (OFS)
- 210 OFS Manager
- 212 OFS Usage
- 214 Help systems
- 214 MS Help files
- 214 HTML Manuals
- 218 Customization
- 218 Preferences
- 218 Window layout
- 218 On-line documentation
- 220 Command-line parameters
- 222 SQL, PL/SQL, Command, Java and XML keywords
- 222 Plug-Ins