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

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

&UHDWLQJ D UHSOLFD XVLQJ WKH GUDJ DQG GURS IHDWXUH

You can use the drag and drop feature from the Browser to the diagram window and conversely to create replicas while using the ALT+SHIFT keys combination.

When you create a replica using the drag and drop feature, a specific icon (a rounded arrow within a circle) appears under the cursor.

You can also define the default behavior of a drag and drop action to directly create replicas.

For more information on how to define the default behavior of a drag and drop action, see section Defining drag and drop options in chapter Using the PowerDesigner interface.

ϖ7R FUHDWH D UHSOLFD E\ GUDJ DQG GURS

1 Select a target object in the Browser.

2Press ALT+SHIFT while you drag the object to the desired model or package and release the mouse button.

The replica appears in the active model or package and in the Browser under the appropriate node.

For more information on the drag and drop functionality, see section Dragging and dropping objects in chapter Managing Objects.

 

5HSOLFDWH +HUH FRQWH[WXDO PHQX

 

You can also create a replica by clicking the right mouse button while

 

dragging the target object and select the Replicate Here menu item from

 

the contextual menu.

Sub-object

 

You can also directly replicate a sub-object by dragging and dropping it in

replication

the Browser while pressing the ALT + SHIFT keys combination. A table

 

column, a class attribute or a class operation are sub-objects that you can

 

replicate using the drag and drop feature.

 

It can be very useful to replicate a sub-object independently of its parent

 

object (for example a column without the table that owns it) to create a

 

reference library, in which you can store columns, attributes or operations for

 

example that you regularly use. The replicated sub-objects can be modified

 

according to your needs, while preserving the link to their target object.

General Features Guide

 

'HILQLQJ REMHFW UHSOLFDWLRQV

The following example illustrates a column (Column_1) in Table_1 that is replicated in Table_2:

6DYLQJ WKH UHIHUHQFLQJ PRGHO RI WKH UHSOLFD

When you save the referencing model you save the replicas and the replication objects it contains with the path of the target model in order to allow data synchronization between original objects and replicas.

PowerDesigner asks you to save the model containing the original object before you save the referencing model of the replica.

'HV\QFKURQL]LQJ UHSOLFDWHG DWWULEXWHV UHSOLFDWHG FROOHFWLRQV DQG VXE UHSOLFDWLRQV

 

By default, when you replicate an object, all its attributes, collections and

 

sub-objects are also replicated, as you want a local copy of the original object

 

while preserving the link to it. Thus, all replica attributes, collections and

 

sub-objects are synchronized with those of the original object, except when

 

their name and code have been renamed to preserve uniqueness. All attributes

 

appear grayed-out in the replica property sheet, as they cannot be modified.

 

However, you may wish to desynchronize some of the attributes from those

 

of the original object to meet specific needs. Thus, every time you modify the

 

original object, the desynchronized attributes, collections or sub-objects will

 

not be modified. The desynchronized items are no longer grayed-out in the

 

property sheet and can be modified.

Sub-replication

You perform a sub-replication when you replicate an object that owns sub-

desynchronization

objects (a table that contains columns for example), as its sub-objects are also

 

replicated. These sub-objects also contain attributes, collections and sub-

 

objects that you can desynchronize.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

Unlike replicas, for which you desynchronize attributes and collections directly in their respective page in the replication property sheet, the desynchronization of sub-replications occurs in its own property sheet named Sub-Replication property sheet that you open from the replication property sheet.

ϖ7R GHV\QFKURQL]H UHSOLFDWHG DWWULEXWHV UHSOLFDWHG FROOHFWLRQV DQG VXE UHSOLFDWLRQV

1 Double-click a replica to open its property sheet.

2 Select the Version Info tab to display the corresponding page.

3Click the Replication Properties button in the Replicated From groupbox.

The replication property sheet appears.

4 Click the tab in which you want to desynchronize items.

General Features Guide

 

'HILQLQJ REMHFW UHSOLFDWLRQV

5Clear the check boxes that correspond to items you do not want to synchronize.

6(For sub-replications only). Double-click the sub-replication for which you want to desynchronize items to open the sub-replication property sheet, clear the check boxes that correspond to items you do not want to synchronize from the different tabs in the sub-replication property sheet and click OK.

7Click OK.

Next time you modify the original object, the desynchronized items will not be synchronized in the replica.

5HSOLFD V\QFKURQL]DWLRQ

When you perform changes on the original object, whatever the status of the original object model (opened or closed), the replica owns information from the original object and can fully display them.

However, replica synchronization can happen at different times depending on the referencing model status ; the general rule being that synchronization occurs as soon as possible when both the original object model and the referencing model are opened.

:KHQ WKH UHIHUHQFLQJ PRGHO LV RSHQHG

Replica synchronization occurs

instantly.

 

 

PowerDesigner

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

:KHQ WKH UHIHUHQFLQJ PRGHO LV FORVHG Replica synchronization occurs when you will open the referencing model.

In any case, both the referencing model and the original object model must be opened in the workspace of the same machine for the changes of the original object to be propagated to the replica.

General Features Guide

 

'LVSOD\LQJ UHSOLFDWLRQV

'LVSOD\LQJ UHSOLFDWLRQV

Replications have no symbol in the diagram. You can consult:

All the replications of an original object

All the replicas of an object type

You can also display all the replications existing within a model using the List of Replications.

For more information on the list of replication, see section Using the list of replications.

&RQVXOWLQJ DOO WKH UHSOLFDWLRQV RI DQ RULJLQDO REMHFW

You can use the property sheet of an original object to display all its replications.

ϖ7R FRQVXOW DOO WKH UHSOLFDWLRQV RI DQ RULJLQDO REMHFW

1 Double-click the original object to display its property sheet. 2 Click the Dependencies tab to display the Dependencies page.

3 Click the Replications tab in the lower part of the Dependencies page.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

&RQVXOWLQJ DOO WKH UHSOLFDV RI DQ REMHFW W\SH

You can display all the replicas existing for a selected type of object in the current model or package using object lists.

ϖ7R FRQVXOW DOO WKH UHSOLFDV RI DQ REMHFW W\SH

1 Select Model,WHP to open the corresponding list.

2Click the Customize Columns and Filter tool in the list toolbar, select the Replica check box from the list of filter options that appears, and click OK.

The Replica check box is selected in the Replica column for all existing replicas of the selected object type. Replica attributes that are synchronized with their original object appear grayed out in the list as they cannot be modified in the current model or package. However you can double-click a replica in the list to display the replica property sheet.

'LVSOD\LQJ UHSOLFDV RI DOO SDFNDJHV LQ DQ REMHFW W\SH OLVW

If the Include Sub-packages tools is enabled in the selected list, all the replicas of the current package and those of the sub-packages appear.

General Features Guide

 

:RUNLQJ ZLWK REMHFW UHSOLFDWLRQV

:RUNLQJ ZLWK REMHFW UHSOLFDWLRQV

You can access replications using the List of Replications that gathers all replications existing in the model or package whatever the type of the original object.

You can also compare and merge replications or generate them in another model.

8VLQJ WKH OLVW RI UHSOLFDWLRQV

You can use the list of replications to display the replications existing in the current model or package.

This list allows you to:

Locate the replica and display its original object and its type

Check the type and status of the original object (closed or opened)

Display the property sheet of a replica and consult its properties

Display the property sheet of an original object and consult its properties

Choose whether or not you want to generate replications during intermodel generation

Delete a replication

&UHDWLQJ QHZ UHSOLFDWLRQV

You cannot create new replications from the list of replications.

 

PowerDesigner

&KDSWHU 0DQDJLQJ 2EMHFW 5HSOLFDWLRQV

'LVSOD\LQJ WKH OLVW RI UHSOLFDWLRQV

You can display the list of original objects from the list of replications.

ϖ7R GLVSOD\ WKH OLVW RI UHSOLFDWLRQV

Select ModelReplications to open the list of replications.

'LVSOD\LQJ UHSOLFDWLRQV RI DOO SDFNDJHV LQ WKH /LVW RI 5HSOLFDWLRQV

You can display the replications of all packages by clicking the Include Sub-Packages tool.

'LVSOD\LQJ WKH SURSHUW\ VKHHW RI D UHSOLFDWLRQ

You can display the property sheet of a replication from the list of replications. You can use this property sheet to open the property sheets of the original object or the replica.

ϖ7R GLVSOD\ WKH SURSHUW\ VKHHW RI D UHSOLFDWLRQ

1 Select ModelReplications to open the list of replications. 2 Select a replication in the list.

3 Click the Properties tool.

General Features Guide

 

:RUNLQJ ZLWK REMHFW UHSOLFDWLRQV

The replication property sheet appears.

6HOHFWLQJ D W\SH RI JHQHUDWLRQ IRU D UHSOLFDWLRQ

You can choose to generate a replication in another type of model and preserve the link with its original object through generation. The list of replications allows you to perform a multiple selection.

For more information on the generation of replications, see section Generating replications.

ϖ7R VHOHFW D W\SH RI JHQHUDWLRQ IRU D UHSOLFDWLRQ

1 Select ModelReplications to open the list of replications. 2 Select a replication in the list.

3Click the Customize Columns and Filter tool in the list toolbar, select the Generate check box from the list of filter options that appears, and click OK.

You return to the list of replications.

4Click the Generate column for the replication you want to generate during intermodel generation.

5Click OK.

The replication will be automatically included among the objects generated from the model when you will launch the generation process.

 

PowerDesigner

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