org.apache.cayenne.modeler.dialog.db.MergerOptions.class Maven / Gradle / Ivy
The newest version!
???? 1
? ? ? ? ?
? ? ? ?
?
? ? ? ? ?
?
? ?
?
?
? ?
?
?
?
!
?
&
* ?!
"
*#
$%&
?'(
3
)*+
&,-
8 .
8/0
81232456
A7*+8
39
31:;
<
=
>
??
?@
A
?B
?C*D
? ?E
FG
?H
IJ
KLM
INO
YPQ
[RST
UV*W @X @Y Z[
Z\
]
J
K^
_
`H
Ia
Ubcd
l ?ef
lghij
s
skl
sm
Knopq
rs
yt
su
sv
swx
?yz
?{
?|
?}
?~?
??? InnerClasses view 8Lorg/apache/cayenne/modeler/dialog/db/MergerOptionsView;
sqlBinding (Lorg/apache/cayenne/swing/ObjectBinding; connectionInfo 2Lorg/apache/cayenne/modeler/pref/DBConnectionInfo; dataMap Lorg/apache/cayenne/map/DataMap; adapter $Lorg/apache/cayenne/dba/JdbcAdapter;
textForSQL Ljava/lang/String; merger #Lorg/apache/cayenne/merge/DbMerger; tokens DLorg/apache/cayenne/modeler/dialog/db/MergerTokenSelectorController; ?(Lorg/apache/cayenne/modeler/ProjectController;Ljava/lang/String;Lorg/apache/cayenne/modeler/pref/DBConnectionInfo;Lorg/apache/cayenne/map/DataMap;)V Code LineNumberTable LocalVariableTable this 4Lorg/apache/cayenne/modeler/dialog/db/MergerOptions; parent .Lorg/apache/cayenne/modeler/ProjectController; title getView ()Ljava/awt/Component;
getTextForSQL ()Ljava/lang/String; initController ()V builder )Lorg/apache/cayenne/swing/BindingBuilder; prepareMigrator mergerTokens Ljava/util/List; ex Ljava/lang/Exception; LocalVariableTypeTable 8Ljava/util/List; createSQL sql i$ Ljava/util/Iterator; tdb ,Lorg/apache/cayenne/merge/AbstractToDbToken; token &Lorg/apache/cayenne/merge/MergerToken; buf Ljava/lang/StringBuffer; it batchTerminator lineEnd ; refreshView
startupAction refreshGeneratorAction refreshSQLAction generateSchemaAction numOfFailuresBefore I tok project $Lorg/apache/cayenne/project/Project; projectController
dataSource Ljavax/sql/DataSource;
mergerContext (Lorg/apache/cayenne/merge/MergerContext; modelChanged Z failures 0Lorg/apache/cayenne/validation/ValidationResult; th Ljava/lang/Throwable; tokensToMigrate c src Ljava/lang/Object; domain 8Lorg/apache/cayenne/configuration/DataChannelDescriptor; node 5Lorg/apache/cayenne/configuration/DataNodeDescriptor; delegate -Lorg/apache/cayenne/merge/ModelMergeDelegate; storeSQLAction file Ljava/io/File; fw Ljava/io/FileWriter; pw Ljava/io/PrintWriter; Ljava/io/IOException; fc Ljavax/swing/JFileChooser;
projectDir &Lorg/apache/cayenne/resource/Resource; getProjectController 0()Lorg/apache/cayenne/modeler/ProjectController; closeAction
SourceFile MergerOptions.java ?? ? ? Borg/apache/cayenne/modeler/dialog/db/MergerTokenSelectorController ? ? 6org/apache/cayenne/modeler/dialog/db/MergerOptionsView ? ? ?? ? ? ? ??? ? ? ? ? ? ? ? ? ? ? 'org/apache/cayenne/swing/BindingBuilder????? ?????? ? ??? generateSchemaAction()???? storeSQLAction()??
closeAction()?? 4org/apache/cayenne/modeler/dialog/db/MergerOptions$1 ?????????? "org/apache/cayenne/dba/JdbcAdapter ? ????? !org/apache/cayenne/merge/DbMerger ? ? ? ??????? java/lang/Exception Error loading adapter?? java/lang/StringBuffer?????? ? java/lang/StringBuilder
??
? ?????? $org/apache/cayenne/merge/MergerToken *org/apache/cayenne/merge/AbstractToDbToken?? java/lang/String???? ?? ?????? ?? ??? ? ? ? ??? Nothing to migrate.??? ? ??????? 6org/apache/cayenne/configuration/DataChannelDescriptor?? 4org/apache/cayenne/modeler/dialog/db/MergerOptions$2 ?? /org/apache/cayenne/merge/ExecutingMergerContext ?????????????????????????????? Migration Complete. 9org/apache/cayenne/modeler/dialog/ValidationResultBrowser Migration Complete :Migration finished. The following problem(s) were ignored. ?? java/lang/Throwable Migration Error javax/swing/JFileChooser?? Save SQL Script???? java/io/File????? ? ???????? java/io/FileWriter ?? java/io/PrintWriter ? ? ? ? java/io/IOException Error Saving SQL ? 2org/apache/cayenne/modeler/dialog/db/MergerOptions 1org/apache/cayenne/modeler/util/CayenneController 6(Lorg/apache/cayenne/modeler/util/CayenneController;)V (Ljava/awt/Component;)V setTitle (Ljava/lang/String;)V getApplication *()Lorg/apache/cayenne/modeler/Application; &org/apache/cayenne/modeler/Application getBindingFactory +()Lorg/apache/cayenne/swing/BindingFactory; >(Lorg/apache/cayenne/swing/BindingFactory;Ljava/lang/Object;)V getSql ()Ljavax/swing/JTextArea; bindToTextArea S(Ljavax/swing/JTextArea;Ljava/lang/String;)Lorg/apache/cayenne/swing/ObjectBinding; getGenerateButton ()Ljavax/swing/JButton; bindToAction X(Ljavax/swing/AbstractButton;Ljava/lang/String;)Lorg/apache/cayenne/swing/ObjectBinding; getSaveSqlButton getCancelButton getTabs ()Ljavax/swing/JTabbedPane; 7(Lorg/apache/cayenne/modeler/dialog/db/MergerOptions;)V javax/swing/JTabbedPane addChangeListener %(Ljavax/swing/event/ChangeListener;)V getClassLoadingService 2()Lorg/apache/cayenne/modeler/ClassLoadingService; 0org/apache/cayenne/modeler/pref/DBConnectionInfo makeAdapter T(Lorg/apache/cayenne/modeler/ClassLoadingService;)Lorg/apache/cayenne/dba/DbAdapter;
mergerFactory *()Lorg/apache/cayenne/merge/MergerFactory; setMergerFactory +(Lorg/apache/cayenne/merge/MergerFactory;)V makeDataSource H(Lorg/apache/cayenne/modeler/ClassLoadingService;)Ljavax/sql/DataSource; createMergeTokens j(Lorg/apache/cayenne/dba/DbAdapter;Ljavax/sql/DataSource;Lorg/apache/cayenne/map/DataMap;)Ljava/util/List; setTokens (Ljava/util/List;)V reportError *(Ljava/lang/String;Ljava/lang/Throwable;)V getSelectedTokens ()Ljava/util/List; java/util/List iterator ()Ljava/util/Iterator; getBatchTerminator append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString java/util/Iterator hasNext ()Z next ()Ljava/lang/Object; createSql 4(Lorg/apache/cayenne/dba/DbAdapter;)Ljava/util/List; ,(Ljava/lang/String;)Ljava/lang/StringBuffer; &org/apache/cayenne/swing/ObjectBinding
updateView pack setDefaultCloseOperation (I)V setModal (Z)V makeCloseableOnEscape
centerView
setVisible isEmpty javax/swing/JOptionPane showMessageDialog )(Ljava/awt/Component;Ljava/lang/Object;)V ,org/apache/cayenne/modeler/ProjectController
getProject &()Lorg/apache/cayenne/project/Project; "org/apache/cayenne/project/Project getRootNode 6()Lorg/apache/cayenne/configuration/ConfigurationNode; getCurrentDataNode 7()Lorg/apache/cayenne/configuration/DataNodeDescriptor; ?(Lorg/apache/cayenne/modeler/dialog/db/MergerOptions;Lorg/apache/cayenne/modeler/ProjectController;Ljava/lang/Object;Lorg/apache/cayenne/configuration/DataChannelDescriptor;Lorg/apache/cayenne/configuration/DataNodeDescriptor;)V ?(Lorg/apache/cayenne/map/DataMap;Ljavax/sql/DataSource;Lorg/apache/cayenne/dba/JdbcAdapter;Lorg/apache/cayenne/merge/ModelMergeDelegate;)V &org/apache/cayenne/merge/MergerContext getValidationResult 2()Lorg/apache/cayenne/validation/ValidationResult; .org/apache/cayenne/validation/ValidationResult getFailures size ()I execute +(Lorg/apache/cayenne/merge/MergerContext;)V getDirection +()Lorg/apache/cayenne/merge/MergeDirection; 'org/apache/cayenne/merge/MergeDirection TO_MODEL )Lorg/apache/cayenne/merge/MergeDirection; equals (Ljava/lang/Object;)Z removeToken )(Lorg/apache/cayenne/merge/MergerToken;)V setModified getFrameController 7()Lorg/apache/cayenne/modeler/CayenneModelerController; 3org/apache/cayenne/modeler/CayenneModelerController setDirty hasFailures W(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cayenne/validation/ValidationResult;)V
setDialogType setDialogTitle getConfigurationResource (()Lorg/apache/cayenne/resource/Resource; $org/apache/cayenne/resource/Resource getURL ()Ljava/net/URL; java/net/URL getPath setCurrentDirectory (Ljava/io/File;)V showSaveDialog (Ljava/awt/Component;)I getSelectedFile ()Ljava/io/File; (Ljava/io/Writer;)V print flush close dispose ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? G*+? *? *? Y+? ? *? Y*? ? ? ? *-?
*? ,? *? *?
*? *? ? ? . U W X Y ) Z . ` 6 a : d > f B g F h ? 4 G ? ? G ? ? G ? ? G ? ? G ? ? ? ? ? / *? ? ? k ? ? ? ? ? ? / *? ? ? s ? ? ? ? ? ? ? ^? Y*? ? *? L*+*? ? ? ? +*? ? ? W+*? ? ? W+*? ? ? W*? ? ? !Y*? "? #? ? x | ! ? / ? = ? K ? ] ? ? ^ ? ? N ? ? ? ? ? ? `**?
*? ? $? %? &? '*? *? '? (? )*? *Y? +? ,*? ,*? '*?
*? ? $? -*? ? .L*? +? /? L*1+? 2? T W 0 ? &