org.apache.cayenne.modeler.action.DBConnectionAwareAction.class Maven / Gradle / Ivy
???? 7 ? 0org/apache/cayenne/modeler/pref/DBConnectionInfo
-org/apache/cayenne/modeler/util/CayenneAction =(Ljava/lang/String;Lorg/apache/cayenne/modeler/Application;)V
9org/apache/cayenne/modeler/action/DBConnectionAwareAction datamapPrefNotExist ()Z
getDataSourceWizard K(Ljava/lang/String;)Lorg/apache/cayenne/modeler/dialog/db/DataSourceWizard;
5org/apache/cayenne/modeler/dialog/db/DataSourceWizard getConnectionInfo 4()Lorg/apache/cayenne/modeler/pref/DBConnectionInfo;
saveConnectionInfo :(Lorg/apache/cayenne/modeler/dialog/db/DataSourceWizard;)V
getConnectionInfoFromPreferences
! " # getProjectController 0()Lorg/apache/cayenne/modeler/ProjectController;
% & V(Lorg/apache/cayenne/modeler/ProjectController;Ljava/lang/String;[Ljava/lang/String;)V
( )
startupAction
+ , C(Lorg/apache/cayenne/modeler/ProjectController;Ljava/lang/String;)V
. / 0 1 2 ,org/apache/cayenne/modeler/ProjectController getCurrentDataMap "()Lorg/apache/cayenne/map/DataMap;
. 4 5 6 getDataMapPreferences S(Lorg/apache/cayenne/map/DataMap;)Lorg/apache/cayenne/modeler/pref/DataMapDefaults;
8 9 : ; < /org/apache/cayenne/modeler/pref/DataMapDefaults getCurrentPreference ()Ljava/util/prefs/Preferences; > url
@ A B C D java/util/prefs/Preferences get 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
F G ()V I dbAdapter
K L M setDbAdapter (Ljava/lang/String;)V
O P M setUrl R userName
T U M setUserName W password
Y Z M setPassword \
jdbcDriver
^ _ M
setJdbcDriver
a b c getDbAdapter ()Ljava/lang/String;
@ e f g put '(Ljava/lang/String;Ljava/lang/String;)V
@ i j M remove
l m c getUrl
o p c getUserName
r s c getPassword
u v c
getJdbcDriver Code LineNumberTable LocalVariableTable this ;Lorg/apache/cayenne/modeler/action/DBConnectionAwareAction; name Ljava/lang/String; application (Lorg/apache/cayenne/modeler/Application; F(Ljava/lang/String;)Lorg/apache/cayenne/modeler/pref/DBConnectionInfo;
connectWizard 7Lorg/apache/cayenne/modeler/dialog/db/DataSourceWizard; connectionInfo 2Lorg/apache/cayenne/modeler/pref/DBConnectionInfo; title
StackMapTable ^(Ljava/lang/String;[Ljava/lang/String;)Lorg/apache/cayenne/modeler/dialog/db/DataSourceWizard; buttons [Ljava/lang/String; dataMapPreference Ljava/util/prefs/Preferences; dataMapDefaults 1Lorg/apache/cayenne/modeler/pref/DataMapDefaults; ? java/lang/String
SourceFile DBConnectionAwareAction.java!
w I *+,? ? x
) * y z { | } ~ ? w ? '*? ? *+? N-? ?-? M*-? ? *? M,? x &