com.jeeplus.database.datasource.provider.AbstractJdbcDataSourceProvider.class Maven / Gradle / Ivy
???? 4 ? Gcom/jeeplus/database/datasource/provider/AbstractJdbcDataSourceProvider java/lang/Object Bcom/jeeplus/database/datasource/provider/DynamicDataSourceProvider cb java/util/Map$Entry
java/util/Map
Entry E :Lcom/jeeplus/database/datasource/DynamicDataSourceCreator; 8Lorg/springframework/beans/factory/annotation/Autowired; dynamicDataSourceProperties WLcom/jeeplus/database/datasource/spring/boot/autoconfigure/DynamicDataSourceProperties; required g Ljava/lang/String; H F Lorg/slf4j/Logger; L
ALLATORIxDEMO K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ()V
" $ & a ILcom/jeeplus/database/datasource/provider/AbstractJdbcDataSourceProvider; executeStmt %(Ljava/sql/Statement;)Ljava/util/Map; ?(Ljava/sql/Statement;)Ljava/util/Map; java/sql/SQLException - org/slf4j/LoggerFactory 0 getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; 2 3
1 4 6 loadDataSources ()Ljava/util/Map; ;()Ljava/util/Map; java/lang/Exception ; java/lang/Class = forName %(Ljava/lang/String;)Ljava/lang/Class; ? @
> A !扥劖動轴攅捧廦驸勝稂建 C Lcom/jeeplus/database/datasource/spring/boot/autoconfigure/DataSourceProperty E &(Ljava/lang/String;)Ljava/lang/String; G
F H org/slf4j/Logger J info (Ljava/lang/String;)V L M K N java/sql/DriverManager P
getConnection M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; R S
Q T 戕勈莲厁敵挹庖辉掠 V -com/jeeplus/database/persistence/DsExceptions X
Y H java/sql/Connection [ createStatement ()Ljava/sql/Statement; ] ^ \ _ * +
a java/util/HashMap c size ()I e f g (I)V i
d j entrySet ()Ljava/util/Set; l m n
java/util/Set p iterator ()Ljava/util/Iterator; r s q t java/util/Iterator v hasNext ()Z x y w z next ()Ljava/lang/Object; | } w ~ getKey ? } ? java/lang/String ? getValue ? } ? setPollName b(Ljava/lang/String;)Lcom/jeeplus/database/datasource/spring/boot/autoconfigure/DataSourceProperty; ? ?
F ?
? 8com/jeeplus/database/datasource/DynamicDataSourceCreator ? createDataSource f(Lcom/jeeplus/database/datasource/spring/boot/autoconfigure/DataSourceProperty;)Ljavax/sql/DataSource; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? *org/springframework/jdbc/support/JdbcUtils ? closeConnection (Ljava/sql/Connection;)V ? ?
? ? closeStatement (Ljava/sql/Statement;)V ? ?
? ? printStackTrace ?
<