org.apache.cayenne.tools.DbGeneratorMojo.class Maven / Gradle / Ivy
???? 4E
N ? ?
? M ? ?
?
? ? ?
? ?
? ?
? ? ? ? ? ? ?
?
?
?
? ? ? ? ? M ?
? ? M ? M ? M ? M ? M ? ? ?
? ? ?
M ? ?
? ?
% ?
% ?
% ?
% ?
% ?
% ? ?
? ?
? ? ?
?
- ?
% ? ?
? ? ?
? ? ?
8 ?
8 ? ?
8 ? ? ? ?
> ? ? ? M ?
? ?
? ?
A ? @ ? ? ? ? ? M ?
I ? ? ? ? ? map Ljava/io/File; RuntimeInvisibleAnnotations 0Lorg/apache/maven/plugins/annotations/Parameter; required adapter Ljava/lang/String;
dataSource 3Lorg/apache/cayenne/tools/DbImportDataSourceConfig;
dropTables Z defaultValue false dropPK createTables true createPK createFK project 'Lorg/apache/maven/project/MavenProject;
${project} ()V Code LineNumberTable LocalVariableTable this *Lorg/apache/cayenne/tools/DbGeneratorMojo; execute adapterInst "Lorg/apache/cayenne/dba/DbAdapter; dataMap Lorg/apache/cayenne/map/DataMap; generator 'Lorg/apache/cayenne/access/DbGenerator; driverDataSource 0Lorg/apache/cayenne/datasource/DriverDataSource; th Ljava/lang/Throwable; message ex Ljava/lang/Exception; logger Lorg/slf4j/Logger; injector Lorg/apache/cayenne/di/Injector;
objectFactory *Lorg/apache/cayenne/di/AdhocObjectFactory;
StackMapTable ? ? ? ?
Exceptions ? loadDataMap B(Lorg/apache/cayenne/di/Injector;)Lorg/apache/cayenne/map/DataMap; lambda$execute$0 !(Lorg/apache/cayenne/di/Binder;)V binder Lorg/apache/cayenne/di/Binder;
SourceFile DbGeneratorMojo.java +Lorg/apache/maven/plugins/annotations/Mojo; name cdbgen defaultPhase 5Lorg/apache/maven/plugins/annotations/LifecyclePhase; PRE_INTEGRATION_TEST requiresDependencyResolution 6Lorg/apache/maven/plugins/annotations/ResolutionScope; COMPILE e f 1org/apache/cayenne/tools/DbImportDataSourceConfig W X $org/apache/cayenne/tools/MavenLogger e ? ? f org/apache/cayenne/di/Module &org/apache/cayenne/dbsync/DbSyncModule ;org/apache/cayenne/dbsync/reverse/configuration/ToolsModule e ? BootstrapMethods ? ? ? ? ? ? ? ? (org/apache/cayenne/di/AdhocObjectFactory ? 9connection settings - [driver: %s, url: %s, username: %s] java/lang/Object ^generator options - [dropTables: %s, dropPK: %s, createTables: %s, createPK: %s, createFK: %s] Y Z
] Z ^ Z ` Z a Z U V org/apache/cayenne/dba/DbAdapter "org/apache/cayenne/dba/JdbcAdapter
? ? %org/apache/cayenne/access/DbGenerator ? e .org/apache/cayenne/datasource/DriverDataSource java/sql/Driver e java/lang/Exception !" Error generating database# java/lang/StringBuilder$% : &' .org/apache/maven/plugin/MojoExecutionException e( .org/apache/cayenne/configuration/DataMapLoader 'org/apache/cayenne/resource/URLResource O P)*+,-. e/01 (org/apache/cayenne/di/ClassLoaderManager234 6org/apache/cayenne/tools/MavenPluginClassLoaderManager b c e5678 (org/apache/cayenne/tools/DbGeneratorMojo $org/apache/maven/plugin/AbstractMojo org/slf4j/Logger org/apache/cayenne/di/Injector java/lang/Throwable java/lang/String ,org/apache/maven/plugin/MojoFailureException )(Lorg/apache/maven/plugin/AbstractMojo;)V validate (Lorg/slf4j/Logger;)V
9:
M; configure J(Lorg/apache/cayenne/tools/DbGeneratorMojo;)Lorg/apache/cayenne/di/Module; !org/apache/cayenne/di/DIBootstrap createInjector A([Lorg/apache/cayenne/di/Module;)Lorg/apache/cayenne/di/Injector; getInstance %(Ljava/lang/Class;)Ljava/lang/Object; getDriver ()Ljava/lang/String; getUrl getUsername format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; info (Ljava/lang/String;)V java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; java/lang/Class getName newInstance 7(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; *org/apache/cayenne/log/NoopJdbcEventLogger .()Lorg/apache/cayenne/log/NoopJdbcEventLogger; m(Lorg/apache/cayenne/dba/DbAdapter;Lorg/apache/cayenne/map/DataMap;Lorg/apache/cayenne/log/JdbcEventLogger;)V setShouldCreateFKConstraints (Z)V setShouldCreatePKSupport setShouldCreateTables setShouldDropPKSupport setShouldDropTables forName %(Ljava/lang/String;)Ljava/lang/Class; ()Ljava/lang/Object; getPassword J(Ljava/sql/Driver;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V runGenerator (Ljavax/sql/DataSource;)V org/apache/cayenne/util/Util unwindException ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; getLocalizedMessage append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString error *(Ljava/lang/String;Ljava/lang/Throwable;)V java/io/File toURI ()Ljava/net/URI; java/net/URI toURL ()Ljava/net/URL; (Ljava/net/URL;)V load H(Lorg/apache/cayenne/resource/Resource;)Lorg/apache/cayenne/map/DataMap; org/apache/cayenne/di/Binder bind 9(Ljava/lang/Class;)Lorg/apache/cayenne/di/BindingBuilder; *(Lorg/apache/maven/project/MavenProject;)V $org/apache/cayenne/di/BindingBuilder
toInstance :(Ljava/lang/Object;)Lorg/apache/cayenne/di/BindingBuilder;<=A ? ? "java/lang/invoke/LambdaMetafactory metafactoryC Lookup InnerClasses ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;D %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! M N O P Q R SZ T U V Q R W X Q R Y Z Q R [s \ ] Z Q R [s \ ^ Z Q R [s _ ` Z Q R [s _ a Z Q R [s _ b c Q R [s d e f g > *? *? Y? ? ? h
9 O i j k l f g ? ?? Y*? L*? ? ? Y? Y?
SY? Y+? SY*?
S? M,? ? N+? Y*? ? SY*? ? SY*? ? S? ? +? Y*? ? SY*? ? SY*? ? SY*? ? SY*? ? S? ? *? ? - !? "? # ? ? - *? ? # ? :*,? $:? %Y? &? ':*? ? (*? ? )*? ? **? ? +*? ? ,? -Y*? ? ? .? /? 0*? ? *? ? *? ? 1? 2:? 3? J:? 5:6:? 7? !? 8Y? 9? :;? :? 7? :? <:+? = ? >Y? ??? ?TW 4 h ? z } 6 ? B ? O ? g ? o ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ?7 ?M ?T ?W ?Y ?` ?d ?l ?? ?? ?? ? i p ? y m n ? r o p ? b q r M s t ` > u v d : w V Y E x y ? j k ? z { 6i | } B] ~ ? ' ? ? ? ? N ? } 4? 2 4 ? ?? ? > ? ? ? g V "+@? ? @? AY*? B? C? D? E? F ? h ? i " j k " | } ? 4 ? ? g N +G? H ? IY*? J? K? L W? h ? i j k ? ? ? ? Q ? ?s ? ?e ? ? ?e ? ?@
>B? ? ? ? ? ?
© 2015 - 2024 Weber Informatics LLC | Privacy Policy