All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.liveSense.service.DataSourceProvider.DataSourceProviderImpl.class Maven / Gradle / Ivy

????2??org/liveSense/service/DataSourceProvider/DataSourceProviderImpljava/lang/Object;org/liveSense/service/DataSourceProvider/DataSourceProviderDataSourceProviderImpl.java,Lorg/apache/felix/scr/annotations/Component;label%dataSourceProvider.namedescription%dataSourceProvider.descriptionmetatypeconfigurationFactorypolicy6Lorg/apache/felix/scr/annotations/ConfigurationPolicy;REQUIRE	createPid*Lorg/apache/felix/scr/annotations/Service;value=Lorg/liveSense/service/DataSourceProvider/DataSourceProvider;serviceFactory-Lorg/apache/felix/scr/annotations/Properties;+Lorg/apache/felix/scr/annotations/Property;namedataSourceNamedefault%dataSourceNamecaptionDefault%captiondriverClassNamecom.mysql.jdbc.Driver%driverClassNameurlejdbc:mysql://localhost:3306/database?characterSetResults=UTF-8&characterEncoding=UTF-8&useUnicode=yes*%dataSource.jdbc.connectString.descriptionusernameuser	%usernamepassword	%passwordconnectionProperties%connectionPropertiesdefaultTransactionIsolationREAD_COMMITTEDoptions1Lorg/apache/felix/scr/annotations/PropertyOption;NONENoneRead-CommittedREAD_UNCOMMITTEDRead-UncommittedREPEATABLE_READRepeatable-ReadSERIALIZABLESerializable%defaultTransactionIsolationdefaultAutoCommit	boolValuedefaultReadOnly%defaultReadOnlyinitialSizeintValue%initialSize	maxActive
%maxActivemaxIdle%maxIdlemaxWait????%maxWaitvalidationQuery%validationQueryNorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl$IsolationLevelOIsolationLevelAorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl$2RAorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl$1TISOLATION_LEVEL_NONELjava/lang/String;2ISOLATION_LEVEL_READ_COMMITTED/ ISOLATION_LEVEL_READ_UNCOMMITTED5ISOLATION_LEVEL_REPEATABLE_READ7ISOLATION_LEVEL_SERIALIZABLE9logLorg/slf4j/Logger;ds)Lorg/apache/commons/dbcp/BasicDataSource;Ljava/lang/Boolean;Ljava/lang/Integer;dynamicClassLoaderManager3Lorg/liveSense/core/service/OSGIClassLoaderManager;,Lorg/apache/felix/scr/annotations/Reference;cardinality7Lorg/apache/felix/scr/annotations/ReferenceCardinality;MANDATORY_UNARY2Lorg/apache/felix/scr/annotations/ReferencePolicy;STATIC()Vop
qW	s!W	u$W	wW	y'W	{*W	},W	<e	??e	?.f	?Af	?Df	?Gf	?If	?LW	?thisALorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl;activate4(Lorg/osgi/framework/BundleContext;Ljava/util/Map;)V+Lorg/apache/felix/scr/annotations/Activate;java/sql/SQLException?!
java/util/Map?get&(Ljava/lang/Object;)Ljava/lang/Object;????java/lang/String?$'*,<java/lang/Boolean??.valueOfd(Ljava/lang/String;)Lorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl$IsolationLevel;??
P?getLevel()I??
P?java/lang/Integer?(I)Ljava/lang/Integer;??
??ADGILMequalsIgnoreCase(Ljava/lang/String;)Z??
??gh	?1org/liveSense/core/service/OSGIClassLoaderManager?getPackageAdminClassLoader;(Lorg/osgi/framework/BundleContext;)Ljava/lang/ClassLoader;????'org/apache/commons/dbcp/BasicDataSource?
?qcd	?java/lang/Thread?
currentThread()Ljava/lang/Thread;??
??setContextClassLoader(Ljava/lang/ClassLoader;)V??
??ab	?java/lang/StringBuilder?
?qRegistering DataSource Name: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? PID: ?service.pid?toString()Ljava/lang/String;??
??org/slf4j/Logger?info(Ljava/lang/String;)V????setDriverClassName??
??setUrl??
??setUsername??
??setPassword??
??setConnectionProperties??
?booleanValue()Z
?setDefaultAutoCommit(Z)V
?setDefaultReadOnly

?B?
?
setDefaultTransactionIsolation(I)V
?setInitialSize
?setMaxActive
?
setMaxIdle
?
setMaxWait(J)V
?setValidationQuery ?
?!D(Lorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl;)Vo#
U$T(Lorg/liveSense/service/DataSourceProvider/DataSourceProviderImpl;Ljava/io/Writer;)Vo&
S'setLogWriter(Ljava/io/PrintWriter;)V)*
?+ org/osgi/framework/BundleContext-java/lang/ClassLoader/?error*(Ljava/lang/String;Ljava/lang/Throwable;)V23?4$No data source name is defined PID: 6warn8??9eLjava/sql/SQLException;dynamicClassLoaderLjava/lang/ClassLoader;
bundleContext"Lorg/osgi/framework/BundleContext;propsLjava/util/Map<**>;Ljava/util/Map;
deactivate-Lorg/apache/felix/scr/annotations/Deactivate;closeFp
?GDeactivate data source: I
getConnection()Ljava/sql/Connection;KL
?M;(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;KO
?PuserNamegetQueryRunner*()Lorg/apache/commons/dbutils/QueryRunner;&org/apache/commons/dbutils/QueryRunnerU(Ljavax/sql/DataSource;Z)VoW
VX
getDataSource()Ljavax/sql/DataSource;getNamegetDs+()Lorg/apache/commons/dbcp/BasicDataSource;getDataSourceNamegetDriverClassNamegetUrl
getCaptiongetUsernamegetPasswordgetConnectionPropertiesgetDefaultAutoCommit()Ljava/lang/Boolean;getDefaultReadOnlygetDefaultTransactionIsolation()Ljava/lang/Integer;getInitialSizegetMaxActive
getMaxIdle
getMaxWaitgetValidationQuery
access$000()Lorg/slf4j/Logger;org/slf4j/LoggerFactorys	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;uv
twbindDynamicClassLoaderManager6(Lorg/liveSense/core/service/OSGIClassLoaderManager;)VunbindDynamicClassLoaderManager
ConstantValueRuntimeInvisibleAnnotationsCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable	Signature8(Lorg/osgi/framework/BundleContext;Ljava/util/Map<**>;)V
Exceptions
SourceFileInnerClasses!VW|XYW|Z[W|\]W|^_W|`abcdW!W$WW'W*W,W<e?e.fAfDfGfIfLWgh}ijeklemnop~?P*?r*?t*?v*?x*?z*?|*?~*??*??*??*??*??*??*??*??*???P???Bay	{|}~"?'?,?1?6?;?@?E?J???~nC*,??????v*,??????x*,??????z*,??????|*,??????~*,???????*,???????*,???????*,?????????????*,???????*,???????*,???????*,???????*,???????*,??????t*?t?.?*?t?š"*??+??N*??Y?͵ϸ?-?ٲۻ?Y????*?t????,????????*??*?v??*??*?x??*??*?|??*??*?~??*??*???*??*????	*??*????*??*????*??*????*??*????*??*????*??*?????*??*???"*?ϻSY*?UY*?%?(?,?:??1?5?)?ۻ?Y??7??,???????:??
?4
;<=>C??C?@CAC?CAB??(???-?<?K?Z?i?x????????????????????K?V?a?l?w????????????????????
????B???
.?0??%??}?Dp~?3*???
*?϶H?$L?ۻ?Y??J??*?t???+?5?? ;<3????????2??B? }EKL~2*?϶N???????KO~H
*??+,?Q? 
??
RW
*W????ST~7
?VY*???Y?
????Z[~/*?ϰ????\?~/*?t?????]^~/*?ϰ????_?~/*?t?????`?~/*?v????a?~/*?x????b?~/*?z????
c?~/*?|????d?~/*?~????e?~/*??????fg~/*??????!hg~/*??????&ij~/*??????+kj~/*??????0lj~/*??????5mj~/*??????:nj~/*???????o?~/*??????Dpq~?۰?arp~!	?x?۱?vyz~*+?ı{z~*??+?*?ı??PQ@SU}?	s
s
ZZeZ[cZ[@s[ss@s[ss @s![s"s#@s$[s%s&@s'[s(s)@s*[s*s+@s,[s,s-@s.[s/0[@1s2s3@1s/s4@1s5s6@1s7s8@1s9s:s;@s<=[Z>s-@s?=[Z>s@@sAB[I>sC@sDB[IEsF@sGB[IEsH@sIB[IJsK@sL[sMsN




© 2015 - 2024 Weber Informatics LLC | Privacy Policy