Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
42
Добавлен:
16.04.2013
Размер:
700.11 Кб
Скачать

Sybase®

PowerDesigner®

Conceptual Data Model

Getting Started

Version 9.5.1 38085-01-0951-01 Last modified: December 2002

Copyright © 2002 Sybase, Inc. All rights reserved.

Information in this manual may change without notice and does not represent a commitment on the part of Sybase, Inc. and its subsidiaries.

Sybase, Inc. provides the software described in this manual under a Sybase License Agreement. The software may be used only in accordance with the terms of the agreement.

No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc.

Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies.

Sybase, SYBASE (logo), AccelaTrade, ADA Workbench, Adaptable Windowing Environment, Adaptive Component Architecture, Adaptive Server, Adaptive Server Anywhere, Adaptive Server Enterprise, Adaptive Server Enterprise Monitor, Adaptive Server Enterprise Replication, Adaptive Server Everywhere, Adaptive Server IQ, Adaptive Warehouse, AnswerBase, Anywhere Studio, Application Manager, AppModeler, APT Workbench, APT-Build, APTEdit, APT-Execute, APT-Translator, APT-Library, ASEP, Backup Server, BayCam, Bit-Wise, BizTracker, Certified PowerBuilder Developer, Certified SYBASE Professional, Certified SYBASE Professional Logo, ClearConnect, Client-Library, Client Services, CodeBank, Column Design, ComponentPack, Connection Manager, Convoy/DM, Copernicus, CSP, Data Pipeline, Data Workbench, DataArchitect, Database Analyzer, DataExpress, DataServer, DataWindow, DB-Library, dbQueue, Developers Workbench, Direct Connect Anywhere, DirectConnect, Distribution Director, e-ADK, E-Anywhere, e-Biz Integrator, E-Whatever, EC-GATEWAY, ECMAP, ECRTP, eFulfillment Accelerator, Electronic Case Management, Embedded SQL, EMS, Enterprise Application Studio, Enterprise Client/Server, Enterprise Connect, Enterprise Data Studio, Enterprise Manager, Enterprise SQL Server Manager, Enterprise Work Architecture, Enterprise Work Designer, Enterprise Work Modeler, eProcurement Accelerator, eremote, Everything Works Better When Everything Works Together, EWA, Financial Fusion, Financial Fusion Server, Formula One, Gateway Manager, GeoPoint, iAnywhere, iAnywhere Solutions, ImpactNow, Industry Warehouse Studio, InfoMaker, Information Anywhere, Information Everywhere, InformationConnect, InstaHelp, InternetBuilder, iremote, iScript, Jaguar CTS, jConnect for JDBC, KnowledgeBase, Logical Memory Manager, MainframeConnect, Maintenance Express, Manage Anywhere Studio, MAP, MDI Access Server, MDI Database Gateway, media.splash, MetaWorks, MethodSet, ML Query, MobiCATS, MySupport, Net-Gateway, Net-Library, New Era of Networks, Next Generation Learning, Next Generation Learning Studio, O DEVICE, OASiS, OASiS logo, ObjectConnect, ObjectCycle, OmniConnect, OmniSQL Access Module, OmniSQL Toolkit, Open Biz, Open Business Interchange, Open Client, Open ClientConnect, Open Client/Server, Open Client/Server Interfaces, Open Gateway, Open Server, Open ServerConnect, Open Solutions, Optima++, Partnerships that Work, PB-Gen, PC APT Execute, PC DB-Net, PC Net Library, PhysicalArchitect, Pocket PowerBuilder, PocketBuilder, Power++, Power Through Knowledge, power.stop, PowerAMC, PowerBuilder, PowerBuilder Foundation Class Library, PowerDesigner, PowerDimensions, PowerDynamo, Powering the New Economy, PowerJ, PowerScript, PowerSite, PowerSocket, Powersoft, PowerStage, PowerStudio, PowerTips, Powersoft Portfolio, Powersoft Professional, PowerWare Desktop, PowerWare Enterprise, ProcessAnalyst, Rapport, Relational Beans, Report Workbench, Report-Execute, Replication Agent, Replication Driver, Replication Server, Replication Server Manager, Replication Toolkit, Resource Manager, RW-DisplayLib, RW-Library, SAFE, SAFE/PRO, SDF, Secure SQL Server, Secure SQL Toolset, Security Guardian, SKILS, smart.partners, smart.parts, smart.script, SQL Advantage, SQL Anywhere, SQL Anywhere Studio, SQL Code Checker, SQL Debug, SQL Edit, SQL Edit/TPU, SQL Everywhere, SQL Modeler, SQL Remote, SQL Server, SQL Server Manager, SQL SMART, SQL Toolset, SQL Server/CFT, SQL Server/DBM, SQL Server SNMP SubAgent, SQL Station, SQLJ, Stage III Engineering, Startup.Com, STEP, SupportNow, S.W.I.F.T. Message Format Libraries, Sybase Central, Sybase Client/Server Interfaces, Sybase Development Framework, Sybase Financial Server, Sybase Gateways, Sybase Learning Connection, Sybase MPP, Sybase SQL Desktop, Sybase SQL Lifecycle, Sybase SQL Workgroup, Sybase Synergy Program, Sybase Virtual Server Architecture, Sybase User Workbench, SybaseWare, Syber Financial, SyberAssist, SybMD, SyBooks, System 10, System 11, System XI (logo), SystemTools, Tabular Data Stream, The Enterprise Client/Server Company, The Extensible Software Platform, The Future Is Wide Open, The Learning Connection, The Model For Client/Server Solutions, The Online Information Center, The Power of One, TradeForce, Transact-SQL, Translation Toolkit, Turning Imagination Into Reality, UltraLite, UNIBOM, Unilib, Uninull, Unisep, Unistring, URK Runtime Kit for UniCode, Versacore, Viewer, VisualWriter, VQL, WarehouseArchitect, Warehouse Control Center, Warehouse Studio, Warehouse WORKS, Watcom, Watcom SQL, Watcom SQL Server, Web Deployment Kit, Web.PB, Web.SQL, WebSights, WebViewer, WorkGroup SQL Server, XA-Library, XA-Server and XP Server are trademarks of Sybase, Inc. or its subsidiaries.

All other trademarks are property of their respective owners.

&RQWHQWV

 

$ERXW 7KLV %RRN Y

 

$ERXW WKH &'0 7XWRULDO

 

What you will do........................................................................

2

 

How long it will take ............................................................

2

 

What you will learn .............................................................

3

 

Setting up..................................................................................

4

 

6WDWLQJ WKH %XVLQHVV 3UREOHP

 

+RZ WR %HJLQ WKH &'0 7XWRULDO

 

Start PowerDesigner.................................................................

8

 

Open a new CDM .....................................................................

9

 

Use the tools in the tool palette...............................................

10

 

Open the tutorial CDM ............................................................

16

 

Define CDM preferences and options.....................................

17

 

Define CDM properties ...........................................................

20

 

Save the tutorial CDM.............................................................

21

 

'HILQLQJ %XVLQHVV 5XOHV 'RPDLQV DQG 'DWD ,WHPV

 

Create a new business rule ....................................................

25

 

Create a domain .....................................................................

29

 

Create a data item ..................................................................

34

 

Attach a data item to a domain ...............................................

38

 

'HILQLQJ (QWLWLHV

 

Create an entity.......................................................................

43

 

Create an associative entity....................................................

46

 

Define entity attributes ............................................................

47

 

Add data items to an entity...............................................

47

 

Create an entity attribute ..................................................

50

CDM Getting Started

 

LLL

 

Designate an identifier ............................................................

53

 

Attach a business rule to an entity..........................................

57

 

'HILQLQJ 5HODWLRQVKLSV

 

Create a relationship...............................................................

61

 

Define roles in an optional relationship ...................................

63

 

8VLQJ 3DFNDJHV DQG 6KRUWFXWV

 

Create a package ...................................................................

68

 

Open a diagram for the package ............................................

70

 

Add objects to the package ....................................................

72

 

Accessing a target object from a shortcut ..............................

74

 

'HILQLQJ ,QKHULWDQFH

 

Create an inheritance link .......................................................

76

 

Define inheritance properties..................................................

78

 

2UJDQL]LQJ WKH 'LVSOD\

 

Add a title box .........................................................................

84

 

Change the color of the title box .............................................

85

 

Change the color of the window..............................................

86

 

Arrange the symbols ...............................................................

87

 

Center the model on the page ................................................

89

 

Print the model........................................................................

90

 

*HQHUDWLQJ WKH 3'0 IURP WKH &'0

 

Generate the PDM..................................................................

93

 

Save and close the PDM ........................................................

96

 

Exit PowerDesigner ................................................................

97

 

*ORVVDU\

 

,QGH[

LY

PowerDesigner

$ERXW 7KLV %RRN

6XEMHFW

$XGLHQFH

'RFXPHQWDWLRQ SULPHU

This book contains step-by-step tutorials for the PowerDesigner Conceptual Data Model modeling environment. It shows you how to do the following:

Build a Conceptual Data Model (CDM)

Use business rules and other model objects

Generate a Physical Data Model (PDM)

This book is for anyone who will be building data models with PowerDesigner. Some familiarity with relational databases, SQL, and design methodology is helpful, but not required. For more information, see the Bibliography section at the end of this chapter.

The PowerDesigner modeling environment supports several types of models:

&RQFHSWXDO 'DWD 0RGHO &'0 to model the overall logical structure of a database, independent from any software or data storage structure considerations

3K\VLFDO 'DWD 0RGHO 3'0 to model the overall physical structure of a database, taking into account DBMS software or data storage structure considerations

2EMHFW 2ULHQWHG 0RGHO 220 to model a software system using an object-oriented approach for Java or other object languages

%XVLQHVV 3URFHVV 0RGHO %30 to model the means by which one or more processes are accomplished in operating business practices

)UHH 0RGHO )(0 to create any kind of chart diagram, in a contextfree environment

CDM Getting Started

Y

$ERXW 7KLV %RRN

7\SRJUDSKLF FRQYHQWLRQV

This book only contains the basics of the Conceptual Data Model. For information on other models or aspects of PowerDesigner, consult the following books:

*HQHUDO )HDWXUHV *XLGH To get familiar with the PowerDesigner interface before learning how to use any of the models.

&RQFHSWXDO 'DWD 0RGHO 8VHU¶V *XLGH

To work with the CDM.

3K\VLFDO 'DWD 0RGHO *HWWLQJ 6WDUWHG

 

To learn the basics of the PDM.

3K\VLFDO 'DWD 0RGHO 8VHU¶V *XLGH

To work with the PDM.

2EMHFW 2ULHQWHG 0RGHO *HWWLQJ 6WDUWHG

To learn the basics of the

OOM.

 

 

2EMHFW 2ULHQWHG 0RGHO 8VHU V *XLGH

To work with the OOM.

%XVLQHVV 3URFHVV 0RGHO *HWWLQJ 6WDUWHG To learn the basics of the BPM.

%XVLQHVV 3URFHVV 0RGHO 8VHU V *XLGH To work with the BPM.

5HSRUWV 8VHU¶V *XLGH To create reports for any or all models.

5HSRVLWRU\ *HWWLQJ 6WDUWHG To learn the basics of the Repository.

5HSRVLWRU\ 8VHU¶V *XLGH To work in a multi-user environment using a central repository.

PowerDesigner documentation uses specific typefaces to help you readily identify specific items:

monospace text (normal and EROG)

Used for: Code samples, commands, compiled functions and files, references to variables.

Example: declare user_defined…, the

%HIRUH,QVHUW7ULJJHU template.

UPPER CASE

Object codes, reversed objects, file names + extension.

Example: The AUTHOR table appears in the Browser. Open the file OOMAFTER.OOM.

EROG WH[W

Any new term.

Example: A VKRUWFXW has a target object.

YL

PowerDesigner

$ERXW 7KLV %RRN

 

SMALL CAPS

 

 

Any key name.

 

 

Example: Press the ENTER key.

 

EROG LWDOLF

 

 

Tabs, buttons, commands.

 

 

Example: Click the 6HOHFWLRQ tab. Select )LOH!2SHQ.

%LEOLRJUDSK\

Information engineering

 

James Martin, Prentice Hall, 1990, three volumes of 178, 497, and 625 pages

 

respectively; clothbound, ISBN 0-13-464462-X (vol. 1), 0-13-464885-4 (vol.

 

2), and 0-13-465501-X (vol. 3).

Data Modeling Essentials

Graeme Simsion, Van Nostrand Reinhold, 1994, 310 pages; paperbound;

ISBN 1850328773

Celko95

Joe Celko, Joe Celko’s SQL for Smarties (Morgan Kaufmann Publishers,

Inc., 1995), 467 pages; paperbound; ISBN 1-55860-323-9.

CDM Getting Started

YLL

$ERXW 7KLV %RRN

YLLL

PowerDesigner

C H A P T E R 1

$ERXW WKH &'0 7XWRULDO

This tutorial is a series of lessons in which you learn how to use

PowerDesigner to build a Conceptual Data Model (CDM).

In this tutorial, you complete the CDM delivered in the tutorial file. This model is based on a real-life example of an information system. It provides a context for the exercises. As you build onto this model, you learn how to create all the basic elements of a CDM. You can then apply your knowledge to creating a CDM to suit your needs.

What is a CDM? A CDM represents the overall structure of an information system. It describes the conceptual relationships of different types of information rather than their physical structures. A CDM is independent of a particular database management system (DBMS).

Why build a CDM? In a CDM, you can put design issues first because you do not have to worry about the details of physical implementation. You deal principally with entities and their relationships. These are easy to understand and to manipulate.

Through a simple generation procedure, you can transfer the solid design framework of the CDM to the Physical Data Model (PDM). The PDM adapts your design to the specifics of a DBMS and puts you well on the way to complete physical implementation.

CDM Getting Started

 

:KDW \RX ZLOO GR

:KDW \RX ZLOO GR

Chapter 2

You begin by preparing a business description and stating the business

 

problems to solve. You will refer to this statement in order to decide what

 

business rules, data items, and entities you need to create.

Chapter 3

You will open the tutorial CDM. This CDM presents the conceptual structure

 

of a publishing enterprise.

 

You will specify model preferences and properties, then save the model

 

under a new name.

Chapter 4

You will create business rules, domains, and data items to complete the

 

CDM.

Chapter 5

You will add entities to the tutorial model. You will define entity attributes

 

and designate an identifier. You will also attach a business rule to an entity.

Chapter 6

You will create relationships between entities. You will create relationships

 

with different cardinalities, as well as mandatory and dependent relationships.

Chapter 7

You will create a package in which you will add a shortcut to an entity in the

 

global model

Chapter 8

You will create an inheritance link.

Chapter 9

You will use the display options and tools to organize the model. You will

 

insert a title box and change its color. You will use the alignment tools to

 

align symbols and straighten relationship lines.

Chapter 10

You will generate a Physical Data Model (PDM) from the CDM. You will

 

define the generation parameters, generate the PDM, then save and close the

 

PDM.

+RZ ORQJ LW ZLOO WDNH

You can do the CDM tutorial in one sitting in about 1½ hours. You can stop after any chapter and continue at another time.

 

PowerDesigner

Соседние файлы в папке PowerDesigner 9