Data Modeling Tips, Tricks, and Customizations
Data Modeling Tips, Tricks, and Customizations
Data Modeling Tips, Tricks, and Customizations
and Customizations
Anthony Hill
Senior Product Support Engineer
[email protected]
August 15-19, 2004
Sybase Workspace
Loaded = Loads models that were open when workspace last saved
By default expands workspace tree if a model is opened
Expanded = Expands workspace tree
OpenedReadOnly= Opens files in read-only mode that previously had this setting
Why
Alter PowerDesigner behavior to best suit your needs
Changes can either be model specific or set as defaults for new models created
How
General Features Guide Chapter 3 -Using the PowerDesigner Interface Defining
Global Options
General Features Guide Chapter 7 Managing Models sections dealing with
Naming Conventions and Conversion
General Features Guide Chapter 14 Model Graphics Model Display Preferences
Problem:
All objects are currently in packages and the user would like tocreate a global
diagram of all objects.
Solution:
In main model diagram, select menu Model/List of object
Select all objects in list and drag as shortcuts to the diagram
DBCreateAfterStereotype
Used with stored procedures and views to control generation order
sub RemoveModelSynonyms(M)
dim Dg
for each Dg in M.AllDiagrams
output " **** Searching in " + Dg.Name + " (" + Dg.Code + ")"
RemoveDiagramSynonymsDg
next
' manage sub packaegs
dim p
for each p in M.Packages
RemoveModelSynonymsp
next
end sub
Script (cont)
DataType lists of valid data types including conversions to PowerDesigner
internal data types
AmcdDataType list of PowerDesigner internal data types mapped to
DBMS data types
OdbcPhysDataType-translation table from ODBC data types to target
DBMS data types
PhysDataType contains the translation table from target database data
types to internal data types
PhysDttpSize-table of storage sizes of target DBMS data type
PhysOdbcDataType contains data type translations from target DBMS
to ODBC
HostDataType translation from database data type to procedure data
type
Abstract translation files several files for abstraction data type
translation
Customize retrieved information from PowerDesigner 6 DEF files
What
Mechanism for extending PowerDesigner object definitions
Contains graphical, functional and generation parameters
Why
Used by PowerDesigner engineering to support various functions
Can be used to complement object language generation Application servers
support
Can be used to generate totally new text files
Users can customize included behavior to better suit your requirements
Users can add totally new functionality
How
General Features Guide Chapter 8 Working with Extended Model
Definitions
Advanced User Documentation Chapter 2 Using Profiles
Advanced User Documentation Chapter 4 Extended Model Definitions
Reference Guide
Review included XEM files for understanding and ideas
What is supported
Object manipulation Full Create, Update or Delete control on all
PowerDesigner objects including graphical objects
Repository access connect, extract, consolidate and manage versions
Invoke reports
Generation
Generate new model
Regenerate into existing model
Generate files
QUESTIONS ???