org.apache.cayenne.tools.DbImporterMojo.class Maven / Gradle / Ivy
???? 4?
j ? ?
? i ? ?
? i ? ?
? i ? ? ?
?
? ? ?
? ?
? ?
? ?
? ?
i ? ? ? ? ?
9 ? ? ? ?
?
?
?
?
9 ? ? ?
? ?
( ?
( ?
% ? ? , ?
? ? ?
? ? ?
1 ?
1 ? ?
1 ?
i ? ? ?
? ?
9 ?
? ?
9 i
9
9
9
9
9
9
9
9
9
9
9
9
9 i
9 i
9
9!
"
9#
$
9%
&
9'()*+
f,-./0 adapter Ljava/lang/String; RuntimeInvisibleAnnotations 0Lorg/apache/maven/plugins/annotations/Parameter; defaultValue "org.apache.cayenne.dba.AutoAdapter
dataSource 3Lorg/apache/cayenne/tools/DbImportDataSourceConfig; map Ljava/io/File; required cayenneProject dbImportConfig ?Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering; name dbimport property alias dbImport project 'Lorg/apache/maven/project/MavenProject;
${project} ()V Code LineNumberTable LocalVariableTable this )Lorg/apache/cayenne/tools/DbImporterMojo; execute Ljavax/sql/DataSource; dbAdapter "Lorg/apache/cayenne/dba/DbAdapter; e Ljava/lang/Exception; ex th Ljava/lang/Throwable; message logger Lorg/slf4j/Logger; injector Lorg/apache/cayenne/di/Injector; config BLorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration; dataSourceFactory ;Lorg/apache/cayenne/configuration/server/DataSourceFactory; dbAdapterFactory :Lorg/apache/cayenne/configuration/server/DbAdapterFactory; dataNodeDescriptor 5Lorg/apache/cayenne/configuration/DataNodeDescriptor; validator KLorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfigurationValidator;
StackMapTable12345
Exceptions6 createConfig V(Lorg/slf4j/Logger;)Lorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration; getMap ()Ljava/io/File; setMap (Ljava/io/File;)V setDbimport B(Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering;)V setDbImport getReverseEngineering A()Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering;
getDataSource 5()Lorg/apache/cayenne/tools/DbImportDataSourceConfig; lambda$execute$0 !(Lorg/apache/cayenne/di/Binder;)V binder Lorg/apache/cayenne/di/Binder;
SourceFile DbImporterMojo.java +Lorg/apache/maven/plugins/annotations/Mojo; cdbimport defaultPhase 5Lorg/apache/maven/plugins/annotations/LifecyclePhase; GENERATE_SOURCES requiresDependencyResolution 6Lorg/apache/maven/plugins/annotations/ResolutionScope; COMPILE ? ? 1org/apache/cayenne/tools/DbImportDataSourceConfig q r =org/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering x y $org/apache/cayenne/tools/MavenLogger ?7 ? .org/apache/maven/plugin/MojoExecutionException Can't load MavenProject. ?89 ? org/apache/cayenne/di/Module &org/apache/cayenne/dbsync/DbSyncModule ;org/apache/cayenne/dbsync/reverse/configuration/ToolsModule ?: 9org/apache/cayenne/dbsync/reverse/dbimport/DbImportModule BootstrapMethods; ?<=>?@A ? ? 9org/apache/cayenne/configuration/server/DataSourceFactoryBC 8org/apache/cayenne/configuration/server/DbAdapterFactoryDE ?FGH >org/apache/cayenne/dbsync/reverse/filters/FiltersConfigBuilder ? ? qI ?JKLMN java/lang/Exception Error getting dataSource ?O Iorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfigurationValidator ?PQR 9org/apache/cayenne/dbsync/reverse/dbimport/DbImportAction ?STUV Error importing database schemaWR java/lang/StringBuilderXY : ZR[\]^_ ?` @org/apache/cayenne/dbsync/reverse/dbimport/DbImportConfigurationabcdefghi k lj8kRl8mRn8ogpiqgris:tRu8vRw8xRy8z{|}~{}?R?8???? s t? ? w t? ??R?8?R?8?g?i?g?i (org/apache/cayenne/di/ClassLoaderManager??? 6org/apache/cayenne/tools/MavenPluginClassLoaderManager ????? 'org/apache/cayenne/tools/DbImporterMojo $org/apache/maven/plugin/AbstractMojo org/slf4j/Logger org/apache/cayenne/di/Injector 3org/apache/cayenne/configuration/DataNodeDescriptor java/lang/Throwable java/lang/String ,org/apache/maven/plugin/MojoFailureException )(Lorg/apache/maven/plugin/AbstractMojo;)V (Ljava/lang/String;)V validate (Lorg/slf4j/Logger;)V
??
i? configure I(Lorg/apache/cayenne/tools/DbImporterMojo;)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; createDataNodeDescriptor 7()Lorg/apache/cayenne/configuration/DataNodeDescriptor; M(Lorg/apache/cayenne/configuration/DataNodeDescriptor;)Ljavax/sql/DataSource;
createAdapter o(Lorg/apache/cayenne/configuration/DataNodeDescriptor;Ljavax/sql/DataSource;)Lorg/apache/cayenne/dba/DbAdapter; X(Ljavax/sql/DataSource;)Lorg/apache/cayenne/dbsync/reverse/filters/FiltersConfigBuilder; d(Lorg/apache/cayenne/dba/DbAdapter;)Lorg/apache/cayenne/dbsync/reverse/filters/FiltersConfigBuilder; build ;()Lorg/apache/cayenne/dbsync/reverse/filters/FiltersConfig; setFiltersConfig <(Lorg/apache/cayenne/dbsync/reverse/filters/FiltersConfig;)V *(Ljava/lang/String;Ljava/lang/Exception;)V ?(Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering;Lorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration;Lorg/apache/cayenne/di/Injector;)V
getMessage ()Ljava/lang/String; E(Lorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration;)V org/apache/cayenne/util/Util unwindException ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; getLocalizedMessage append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString getLog '()Lorg/apache/maven/plugin/logging/Log; #org/apache/maven/plugin/logging/Log error (Ljava/lang/CharSequence;)V *(Ljava/lang/String;Ljava/lang/Throwable;)V getCatalogs ()Ljava/util/List; java/util/List size ()I isEmptyContainer ()Z setUseDataMapReverseEngineering (Z)V
setAdapter getDefaultPackage setDefaultPackage getDriver setDriver isForceDataMapCatalog setForceDataMapCatalog isForceDataMapSchema setForceDataMapSchema setLogger getMeaningfulPkTables setMeaningfulPkTables getNamingStrategy setNamingStrategy getPassword setPassword getSkipRelationshipsLoading ()Ljava/lang/Boolean; setSkipRelationshipsLoading (Ljava/lang/Boolean;)V getSkipPrimaryKeyLoading setSkipPrimaryKeyLoading getStripFromTableNames setStripFromTableNames
getTableTypes ()[Ljava/lang/String;
setTableTypes ([Ljava/lang/String;)V setTargetDataMap setCayenneProject getUrl setUrl getUsername setUsername isUsePrimitives setUsePrimitives isUseJava7Types setUseJava7Types 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;??? ? ? "java/lang/invoke/LambdaMetafactory metafactory? 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;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! i j k l m n os p q r m n s t m n uZ v w t m n x y m n zs { |s { }s ~ ? m n os ?
? ? ? M *? *? Y? ? *? Y? ? ? ? 8 H \ ? ? ? ? ? ? ? C? Y*? L*?
?
? Y?
?*? ? ? Y? Y? SY? Y+? SY? Y? SY*? S? M*+? N,? ? :,? ? :-? :? :? :-? Y*? ? ? !? "? #? $? :? Y&? '?? (Y*? -,? ):? *? :? Y? +? '?,,? ? ,-? - ? M:? .: /:
? 0? !? 1Y? 2
? 34? 3 ? 0? 3? 5:
*? 6
? 7 ? Y
? 8?? w ? ? % ? ? ? % ? ? ? % ? ? " d f g k ! l Q p W r d s q t w v ? w ? x ? y ? z ? { ? x ? ~ ? | ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?+ ?6 ?B ? ? ? ? ) q ? ? ? ? ? ? ? ? ? ? A ? ? = ? l
? H ? ? C ? ? : ? ? Q ? ? ? W ? ? ? d ? ? ? q ? ? ? w ? ? ? ? x ? ? ? ^ ? ?? ? i ? ? 9 ? %
? i ? ? 9 ? ( %S %? 2 % ? ?? ? ? ? ? ? ? ? 9Y? :M*? ? ;? < ? *? ? =? ,? >,*? ?? @,*? ? A? B,*? ? C? D,*? ? E? F,*? ? G? H,+? I,*? ? J? K,*? ? L? M,*? ? N? O,*? ? P? Q,*? ? R? S,*? ? T? U,*? ? V? W,*? X? Y,*? Z? [,*? ? \? ],*? ? ^? _,*? ? `? a,*? ? b? c,? ? ^ ? ? ! ? &