org.apache.cayenne.tools.DbImporterTask.class Maven / Gradle / Ivy
The newest version!
???? 7?
org/apache/tools/ant/Task ()V @org/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration
'org/apache/cayenne/tools/DbImporterTask config BLorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration;
setUseJava7Types (Z)V ;org/apache/cayenne/dbsync/naming/DefaultObjectNameGenerator
java/lang/Class getName ()Ljava/lang/String;
setNamingStrategy (Ljava/lang/String;)V ! =org/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering
$ % & reverseEngineering ?Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering;
( ) * addIncludeColumn =(Lorg/apache/cayenne/dbsync/reverse/dbimport/IncludeColumn;)V
, - . addExcludeColumn =(Lorg/apache/cayenne/dbsync/reverse/dbimport/ExcludeColumn;)V
0 1 2 addIncludeTable <(Lorg/apache/cayenne/dbsync/reverse/dbimport/IncludeTable;)V
4 5 6 addExcludeTable <(Lorg/apache/cayenne/dbsync/reverse/dbimport/ExcludeTable;)V
8 9 : addExcludeRelationship C(Lorg/apache/cayenne/dbsync/reverse/dbimport/ExcludeRelationship;)V
< = > addIncludeProcedure @(Lorg/apache/cayenne/dbsync/reverse/dbimport/IncludeProcedure;)V
@ A B addExcludeProcedure @(Lorg/apache/cayenne/dbsync/reverse/dbimport/ExcludeProcedure;)V
D E F G H java/lang/Boolean valueOf (Z)Ljava/lang/Boolean;
J K L setSkipRelationshipsLoading (Ljava/lang/Boolean;)V
N O L setSkipPrimaryKeyLoading
Q R %org/apache/cayenne/tools/AntTableType
T U addTableType
W X Y addSchema 6(Lorg/apache/cayenne/dbsync/reverse/dbimport/Schema;)V
[ \ ]
addCatalog 7(Lorg/apache/cayenne/dbsync/reverse/dbimport/Catalog;)V _ "org/apache/cayenne/tools/AntLogger
^ a b (Lorg/apache/tools/ant/Task;)V d org/apache/cayenne/di/Module f &org/apache/cayenne/dbsync/DbSyncModule
e i ;org/apache/cayenne/dbsync/reverse/configuration/ToolsModule
h k l (Lorg/slf4j/Logger;)V n 9org/apache/cayenne/dbsync/reverse/dbimport/DbImportModule
m
q r s t u !org/apache/cayenne/di/DIBootstrap createInjector A([Lorg/apache/cayenne/di/Module;)Lorg/apache/cayenne/di/Injector;
w x y getCatalogs ()Ljava/util/List; { | } ~ java/util/List size ()I
? ? ? isEmptyContainer ()Z
? ? setUseDataMapReverseEngineering ? :org/apache/cayenne/configuration/runtime/DataSourceFactory ? ? ? ? ? org/apache/cayenne/di/Injector getInstance %(Ljava/lang/Class;)Ljava/lang/Object; ? 9org/apache/cayenne/configuration/runtime/DbAdapterFactory
? ? ? createDataNodeDescriptor 7()Lorg/apache/cayenne/configuration/DataNodeDescriptor; ? ? ? ?
getDataSource M(Lorg/apache/cayenne/configuration/DataNodeDescriptor;)Ljavax/sql/DataSource; ? ? ? ?
createAdapter o(Lorg/apache/cayenne/configuration/DataNodeDescriptor;Ljavax/sql/DataSource;)Lorg/apache/cayenne/dba/DbAdapter; ? >org/apache/cayenne/dbsync/reverse/filters/FiltersConfigBuilder
? ? ? B(Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering;)V
? ? ? ?
dataSource X(Ljavax/sql/DataSource;)Lorg/apache/cayenne/dbsync/reverse/filters/FiltersConfigBuilder;
? ? ? ? dbAdapter 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 ? java/lang/Exception ? #org/apache/tools/ant/BuildException ? Error getting dataSource
? ? ? *(Ljava/lang/String;Ljava/lang/Throwable;)V
? ? validateAttributes
? ? l setLogger
? ? ? getSkipRelationshipsLoading ()Ljava/lang/Boolean;
J
? ? ? getSkipPrimaryKeyLoading
N
? ? ?
getTableTypes ()[Ljava/lang/String;
? ? ?
setTableTypes ([Ljava/lang/String;)V ? Iorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfigurationValidator
? ? ? ?(Lorg/apache/cayenne/dbsync/reverse/dbimport/ReverseEngineering;Lorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration;Lorg/apache/cayenne/di/Injector;)V
? ? ? validate
? ? ?
getMessage ? 9org/apache/cayenne/dbsync/reverse/dbimport/DbImportAction ? ? ? ? execute E(Lorg/apache/cayenne/dbsync/reverse/dbimport/DbImportConfiguration;)V ? ? ? shutdown
? ? ? ? ? org/apache/cayenne/util/Util unwindException ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; ? Error importing database schema
? ? ? ? java/lang/Throwable getLocalizedMessage ? ? ? makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? org/apache/tools/ant/Project
? ? ? log (Ljava/lang/String;I)V ? java/lang/StringBuilder
?
getTargetDataMap ()Ljava/io/File; !The 'map' attribute must be set.
?
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
getDataSourceInfo 9()Lorg/apache/cayenne/configuration/DataSourceDescriptor;
5org/apache/cayenne/configuration/DataSourceDescriptor
getJdbcDriver $The 'driver' attribute must be set.
getDataSourceUrl !The 'url' attribute must be set.
? length
?!" toString
?
%&