org.apache.cayenne.modeler.dialog.objentity.ObjRelationshipInfo.class Maven / Gradle / Ivy
???? 7? ?org/apache/cayenne/modeler/dialog/objentity/ObjRelationshipInfo view ELorg/apache/cayenne/modeler/dialog/objentity/ObjRelationshipInfoView;
Corg/apache/cayenne/modeler/dialog/objentity/ObjRelationshipInfoView pack ()V javax/swing/WindowConstants
setDefaultCloseOperation (I)V
setModal (Z)V
makeCloseableOnEscape
centerView
setVisible
! " # $ % 1org/apache/cayenne/modeler/util/CayenneController 6(Lorg/apache/cayenne/modeler/util/CayenneController;)V ' ( ) isCreate Z
+ $ - . / mediator .Lorg/apache/cayenne/modeler/ProjectController;
1 2 3 getPathBrowser 6()Lorg/apache/cayenne/modeler/util/MultiColumnBrowser;
5 6 7 8 9 2org/apache/cayenne/modeler/util/MultiColumnBrowser addTreeSelectionListener ,(Ljavax/swing/event/TreeSelectionListener;)V ; java/util/ArrayList
: = $ ? @ A targetCollections Ljava/util/List; C java.util.Collection E F G H I java/util/List add (Ljava/lang/Object;)Z K &org/apache/cayenne/map/ObjRelationship M java.util.List O
java.util.Map Q
java.util.Set E S T U iterator ()Ljava/util/Iterator; W X Y Z [ java/util/Iterator hasNext ()Z W ] ^ _ next ()Ljava/lang/Object; a java/lang/String
c d e getCollectionTypeCombo ()Ljavax/swing/JComboBox;
g h i j k javax/swing/JComboBox addItem (Ljava/lang/Object;)V
: + n o A mapKeys
J +
r s t u v ,org/apache/cayenne/dbsync/naming/NameBuilder builder ?(Lorg/apache/cayenne/configuration/ConfigurationNode;Lorg/apache/cayenne/configuration/ConfigurationNode;)Lorg/apache/cayenne/dbsync/naming/NameBuilder;
r x y z name ()Ljava/lang/String;
J | } ~ setName (Ljava/lang/String;)V
J ? ? ? setSourceEntity "(Lorg/apache/cayenne/map/Entity;)V
? ? ? ? ? )org/apache/cayenne/util/DeleteRuleUpdater updateObjRelationship +(Lorg/apache/cayenne/map/ObjRelationship;)V
? ? ? modifyRelationship k(Lorg/apache/cayenne/map/ObjRelationship;)Lorg/apache/cayenne/modeler/dialog/objentity/ObjRelationshipInfo; ? ? ? relationship (Lorg/apache/cayenne/map/ObjRelationship; ? 8org/apache/cayenne/modeler/undo/RelationshipUndoableEdit
? ? $ ? ((Lorg/apache/cayenne/map/Relationship;)V ? ? ? undo :Lorg/apache/cayenne/modeler/undo/RelationshipUndoableEdit;
? ? validateCanMap
? ?
initFromModel
? ? initController
? ? ? getCancelButton ()Ljavax/swing/JButton; ? ? ? actionPerformed b(Lorg/apache/cayenne/modeler/dialog/objentity/ObjRelationshipInfo;)Ljava/awt/event/ActionListener;
? ? ? ? ? javax/swing/JButton addActionListener "(Ljava/awt/event/ActionListener;)V
? ? ?
getSaveButton ?
? ? ? getNewRelButton ? ?
g ?
? ? e getMapKeysCombo ?
? ? e getTargetCombo ? ? ? itemStateChanged `(Lorg/apache/cayenne/modeler/dialog/objentity/ObjRelationshipInfo;)Ljava/awt/event/ItemListener;
g ? ? ? addItemListener (Ljava/awt/event/ItemListener;)V
? ? e
getDeleteRule ?
? ? ? getUsedForLocking ()Ljavax/swing/JCheckBox; ?
? ? ? javax/swing/JCheckBox
? ? ?
getComment ()Ljavax/swing/JTextField; ?
? ? ? javax/swing/JTextField
? ? ? getSourceEntityLabel ()Ljavax/swing/JLabel;
J ? ? ? getSourceEntity $()Lorg/apache/cayenne/map/ObjEntity;
? ? ? ? z org/apache/cayenne/map/ObjEntity getName
? ? ? ? ~ javax/swing/JLabel setText
? ? ? getRelationshipName
J ?
? ?
J ? ? z getMapKey ? ? ? mapKey Ljava/lang/String;
J ? ? z getCollectionType ? targetCollection
J ? getTargetEntity objectTarget "Lorg/apache/cayenne/map/ObjEntity;
?
getDbEntity #()Lorg/apache/cayenne/map/DbEntity;
updateTargetCombo $(Lorg/apache/cayenne/map/DbEntity;)V
g k setSelectedItem
J [ isUsedForLocking
? setSelected
J ? ()I
!" !org/apache/cayenne/map/DeleteRule deleteRuleName (I)Ljava/lang/String;
$%&'( ,org/apache/cayenne/modeler/ProjectController getApplication *()Lorg/apache/cayenne/modeler/Application;
*+,-. &org/apache/cayenne/modeler/Application getMetaData <()Lorg/apache/cayenne/configuration/xml/DataChannelMetaData;0 4org/apache/cayenne/project/extension/info/ObjectInfo2 comment
/456 getFromMetaData ?(Lorg/apache/cayenne/configuration/xml/DataChannelMetaData;Lorg/apache/cayenne/configuration/ConfigurationNode;Ljava/lang/String;)Ljava/lang/String;
89 setSemantics
J;<= getDbRelationships ()Ljava/util/List;
:? $@ (Ljava/util/Collection;)V BC A dbRelationships EF A savedDbRelationships
HI initMapKeys
KL updateCollectionChoosers
NO connectEnds
1
5RST getModel ()Ljavax/swing/tree/TreeModel;V /org/apache/cayenne/modeler/util/EntityTreeModel
XY getStartEntity
U[ $ ?]