Advertisement
ILyaCyclone

decompiled oracle.jdbc.driver.OracleDriver

Nov 22nd, 2018
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.29 KB | None | 0 0
  1. //
  2. // Source code recreated from a .class file by IntelliJ IDEA
  3. // (powered by Fernflower decompiler)
  4. //
  5.  
  6. package oracle.jdbc.driver;
  7.  
  8. import java.io.IOException;
  9. import java.io.InputStream;
  10. import java.lang.management.ManagementFactory;
  11. import java.lang.reflect.Field;
  12. import java.lang.reflect.InvocationTargetException;
  13. import java.lang.reflect.Method;
  14. import java.security.AccessController;
  15. import java.security.PrivilegedAction;
  16. import java.security.PrivilegedActionException;
  17. import java.security.PrivilegedExceptionAction;
  18. import java.sql.Connection;
  19. import java.sql.Driver;
  20. import java.sql.DriverAction;
  21. import java.sql.DriverManager;
  22. import java.sql.DriverPropertyInfo;
  23. import java.sql.SQLException;
  24. import java.sql.SQLFeatureNotSupportedException;
  25. import java.sql.Timestamp;
  26. import java.util.Enumeration;
  27. import java.util.Hashtable;
  28. import java.util.Map;
  29. import java.util.Properties;
  30. import java.util.logging.Level;
  31. import java.util.logging.Logger;
  32. import javax.management.InstanceAlreadyExistsException;
  33. import javax.management.JMException;
  34. import javax.management.MBeanServer;
  35. import javax.management.ObjectName;
  36. import oracle.jdbc.OracleDatabaseMetaData;
  37. import oracle.jdbc.babelfish.BabelfishCallableStatement;
  38. import oracle.jdbc.babelfish.BabelfishConnection;
  39. import oracle.jdbc.babelfish.BabelfishGenericProxy;
  40. import oracle.jdbc.babelfish.BabelfishPreparedStatement;
  41. import oracle.jdbc.babelfish.BabelfishStatement;
  42. import oracle.jdbc.babelfish.TranslationManager;
  43. import oracle.jdbc.babelfish.Translator;
  44. import oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource;
  45. import oracle.jdbc.logging.annotations.DefaultLogger;
  46. import oracle.jdbc.logging.annotations.DisableTrace;
  47. import oracle.jdbc.logging.annotations.Feature;
  48. import oracle.jdbc.logging.annotations.Supports;
  49. import oracle.jdbc.proxy.ProxyFactory;
  50. import oracle.net.nt.TimeoutInterruptHandler;
  51. import oracle.security.pki.OraclePKIProvider;
  52.  
  53. @DefaultLogger("oracle.jdbc")
  54. @Supports({Feature.CONNECT})
  55. public class OracleDriver implements Driver {
  56. public static final String oracle_string = "oracle";
  57. public static final String jdbc_string = "jdbc";
  58. public static final String protocol_string = "protocol";
  59. public static final String user_string = "user";
  60. public static final String password_string = "password";
  61. public static final String database_string = "database";
  62. public static final String server_string = "server";
  63. /** @deprecated */
  64. public static final String access_string = "access";
  65. /** @deprecated */
  66. public static final String protocolFullName_string = "protocolFullName";
  67. public static final String logon_as_internal_str = "internal_logon";
  68. public static final String proxy_client_name = "oracle.jdbc.proxyClientName";
  69. public static final String prefetch_string = "prefetch";
  70. public static final String row_prefetch_string = "rowPrefetch";
  71. public static final String default_row_prefetch_string = "defaultRowPrefetch";
  72. public static final String batch_string = "batch";
  73. public static final String execute_batch_string = "executeBatch";
  74. public static final String default_execute_batch_string = "defaultExecuteBatch";
  75. public static final String process_escapes_string = "processEscapes";
  76. public static final String accumulate_batch_result = "AccumulateBatchResult";
  77. public static final String j2ee_compliance = "oracle.jdbc.J2EE13Compliant";
  78. public static final String v8compatible_string = "V8Compatible";
  79. public static final String permit_timestamp_date_mismatch_string = "oracle.jdbc.internal.permitBindDateDefineTimestampMismatch";
  80. public static final String prelim_auth_string = "prelim_auth";
  81. public static final String SetFloatAndDoubleUseBinary_string = "SetFloatAndDoubleUseBinary";
  82. /** @deprecated */
  83. public static final String xa_trans_loose = "oracle.jdbc.XATransLoose";
  84. public static final String tcp_no_delay = "oracle.jdbc.TcpNoDelay";
  85. public static final String read_timeout = "oracle.jdbc.ReadTimeout";
  86. public static final String defaultnchar_string = "oracle.jdbc.defaultNChar";
  87. public static final String defaultncharprop_string = "defaultNChar";
  88. public static final String useFetchSizeWithLongColumn_prop_string = "useFetchSizeWithLongColumn";
  89. public static final String useFetchSizeWithLongColumn_string = "oracle.jdbc.useFetchSizeWithLongColumn";
  90. public static final String remarks_string = "remarks";
  91. public static final String report_remarks_string = "remarksReporting";
  92. public static final String synonyms_string = "synonyms";
  93. public static final String include_synonyms_string = "includeSynonyms";
  94. public static final String restrict_getTables_string = "restrictGetTables";
  95. public static final String fixed_string_string = "fixedString";
  96. public static final String dll_string = "oracle.jdbc.ocinativelibrary";
  97. public static final String nls_lang_backdoor = "oracle.jdbc.ociNlsLangBackwardCompatible";
  98. public static final String disable_defineColumnType_string = "disableDefineColumnType";
  99. public static final String convert_nchar_literals_string = "oracle.jdbc.convertNcharLiterals";
  100. public static final String dataSizeUnitsPropertyName = "";
  101. public static final String dataSizeBytes = "";
  102. public static final String dataSizeChars = "";
  103. public static final String set_new_password_string = "OCINewPassword";
  104. public static final String retain_v9_bind_behavior_string = "oracle.jdbc.RetainV9LongBindBehavior";
  105. public static final String no_caching_buffers = "oracle.jdbc.FreeMemoryOnEnterImplicitCache";
  106. static final int EXTENSION_TYPE_ORACLE_ERROR = -3;
  107. static final int EXTENSION_TYPE_GEN_ERROR = -2;
  108. static final int EXTENSION_TYPE_TYPE4_CLIENT = 0;
  109. static final int EXTENSION_TYPE_TYPE4_SERVER = 1;
  110. static final int EXTENSION_TYPE_TYPE2_CLIENT = 2;
  111. static final int EXTENSION_TYPE_TYPE2_SERVER = 3;
  112. private static final int NUMBER_OF_EXTENSION_TYPES = 4;
  113. private OracleDriverExtension[] driverExtensions = new OracleDriverExtension[4];
  114. private static final String DRIVER_PACKAGE_STRING = "driver";
  115. private static final String[] driverExtensionClassNames = new String[]{"oracle.jdbc.driver.T4CDriverExtension", "oracle.jdbc.driver.T4CDriverExtension", "oracle.jdbc.driver.T2CDriverExtension", "oracle.jdbc.driver.T2SDriverExtension"};
  116. private static Properties driverAccess;
  117. protected static Connection defaultConn = null;
  118. private static OracleDriver defaultDriver = null;
  119. public static final Map<String, Class> systemTypeMap;
  120. private static final String DEFAULT_CONNECTION_PROPERTIES_RESOURCE_NAME = "/oracle/jdbc/defaultConnectionProperties.properties";
  121. protected static final Properties DEFAULT_CONNECTION_PROPERTIES;
  122. private static ObjectName diagnosticMBeanObjectName;
  123.  
  124. public OracleDriver() {
  125. }
  126.  
  127. @DisableTrace
  128. public static void registerMBeans() {
  129. try {
  130. MBeanServer var0 = null;
  131.  
  132. try {
  133. Class var1 = Class.forName("oracle.as.jmx.framework.PortableMBeanFactory");
  134. Object var2 = var1.newInstance();
  135. Method var3 = var1.getMethod("getMBeanServer");
  136. var0 = (MBeanServer)var3.invoke(var2);
  137. } catch (NoClassDefFoundError var6) {
  138. var0 = ManagementFactory.getPlatformMBeanServer();
  139. } catch (ClassNotFoundException var7) {
  140. var0 = ManagementFactory.getPlatformMBeanServer();
  141. } catch (NoSuchMethodException var8) {
  142. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Found Oracle Apps MBeanServer but not the getMBeanServer method.", var8);
  143. var0 = ManagementFactory.getPlatformMBeanServer();
  144. } catch (InstantiationException var9) {
  145. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Found Oracle Apps MBeanServer but could not create an instance.", var9);
  146. var0 = ManagementFactory.getPlatformMBeanServer();
  147. } catch (IllegalAccessException var10) {
  148. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Found Oracle Apps MBeanServer but could not access the getMBeanServer method.", var10);
  149. var0 = ManagementFactory.getPlatformMBeanServer();
  150. } catch (InvocationTargetException var11) {
  151. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Found Oracle Apps MBeanServer but the getMBeanServer method threw an exception.", var11);
  152. var0 = ManagementFactory.getPlatformMBeanServer();
  153. }
  154.  
  155. if (var0 != null) {
  156. ClassLoader var15 = OracleDriver.class.getClassLoader();
  157. String var16 = var15 == null ? "nullLoader" : var15.getClass().getName();
  158. int var17 = 0;
  159.  
  160. while(true) {
  161. String var4 = var16 + "@" + Integer.toHexString((var15 == null ? 0 : var15.hashCode()) + var17++);
  162. diagnosticMBeanObjectName = new ObjectName("com.oracle.jdbc:type=diagnosability,name=" + var4);
  163.  
  164. try {
  165. var0.registerMBean(new OracleDiagnosabilityMBean(), diagnosticMBeanObjectName);
  166. break;
  167. } catch (InstanceAlreadyExistsException var12) {
  168. ;
  169. }
  170. }
  171. } else {
  172. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Unable to find an MBeanServer so no MBears are registered.");
  173. }
  174. } catch (JMException var13) {
  175. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Error while registering Oracle JDBC Diagnosability MBean.", var13);
  176. } catch (Throwable var14) {
  177. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Error while registering Oracle JDBC Diagnosability MBean.", var14);
  178. }
  179.  
  180. }
  181.  
  182. @Supports({Feature.PLATFORM})
  183. public static void unRegisterMBeans() {
  184. try {
  185. MBeanServer var0 = null;
  186.  
  187. try {
  188. Class var1 = Class.forName("oracle.as.jmx.framework.PortableMBeanFactory");
  189. Object var2 = var1.newInstance();
  190. Method var3 = var1.getMethod("getMBeanServer");
  191. var0 = (MBeanServer)var3.invoke(var2);
  192. } catch (Throwable var6) {
  193. var0 = ManagementFactory.getPlatformMBeanServer();
  194. }
  195.  
  196. if (var0 != null) {
  197. try {
  198. ClassLoader var8 = OracleDriver.class.getClassLoader();
  199. String var9 = var8 == null ? "nullLoader" : var8.getClass().getName();
  200. byte var10 = 0;
  201. StringBuilder var10000 = (new StringBuilder()).append(var9).append("@");
  202. int var10001 = var8 == null ? 0 : var8.hashCode();
  203. byte var10002 = var10;
  204. int var11 = var10 + 1;
  205. String var4 = var10000.append(Integer.toHexString(var10001 + var10002)).toString();
  206. diagnosticMBeanObjectName = new ObjectName("com.oracle.jdbc:type=diagnosability,name=" + var4);
  207. var0.unregisterMBean(diagnosticMBeanObjectName);
  208. } catch (Throwable var5) {
  209. Logger.getLogger("oracle.jdbc").log(Level.INFO, "Unabled to unregister Oracle JDBC Diagnosability MBean: " + var5.getMessage());
  210. }
  211. } else {
  212. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Unable to find an MBeanServer to unregister Oracle JDBC Diagnosability MBean.");
  213. }
  214. } catch (Throwable var7) {
  215. Logger.getLogger("oracle.jdbc").log(Level.WARNING, "Error while unregistering Oracle JDBC Diagnosability MBean.", var7);
  216. }
  217.  
  218. }
  219.  
  220. @Supports({Feature.PLATFORM})
  221. private static void deregister() {
  222. unRegisterMBeans();
  223. OracleTimeoutThreadPerVM.stopWatchdog();
  224. ThreadedCachingBlockSource.stopBlockReleaserThread();
  225. HAManager.shutdownAll();
  226. TimeoutInterruptHandler.stopTimer();
  227. }
  228.  
  229. public Connection connect(String var1, Properties var2) throws SQLException {
  230. if (var1 == null) {
  231. throw (SQLException)((SQLException)DatabaseError.createSqlException(296).fillInStackTrace());
  232. } else {
  233. if (var1.regionMatches(0, "jdbc:default:connection", 0, 23)) {
  234. String var3 = "jdbc:oracle:kprb";
  235. int var4 = var1.length();
  236. if (var4 > 23) {
  237. var1 = var3.concat(var1.substring(23, var1.length()));
  238. } else {
  239. var1 = var3.concat(":");
  240. }
  241.  
  242. var3 = null;
  243. }
  244.  
  245. int var11 = oracleDriverExtensionTypeFromURL(var1);
  246. if (var11 == -2) {
  247. return null;
  248. } else if (var11 == -3) {
  249. throw (SQLException)((SQLException)DatabaseError.createSqlException(67).fillInStackTrace());
  250. } else {
  251. OracleDriverExtension var12 = null;
  252. var12 = this.driverExtensions[var11];
  253. if (var12 == null) {
  254. try {
  255. synchronized(this) {
  256. if (var12 == null) {
  257. var12 = (OracleDriverExtension)Class.forName(driverExtensionClassNames[var11]).newInstance();
  258. this.driverExtensions[var11] = var12;
  259. } else {
  260. var12 = this.driverExtensions[var11];
  261. }
  262. }
  263. } catch (Exception var10) {
  264. ;
  265. }
  266. }
  267.  
  268. if (var2 == null) {
  269. var2 = new Properties();
  270. }
  271.  
  272. Enumeration var5 = DriverManager.getDrivers();
  273.  
  274. final Driver var6;
  275. while(var5.hasMoreElements()) {
  276. var6 = (Driver)((Driver)var5.nextElement());
  277. if (var6 instanceof OracleDriver) {
  278. break;
  279. }
  280. }
  281.  
  282. while(var5.hasMoreElements()) {
  283. var6 = (Driver)((Driver)var5.nextElement());
  284. if (var6 instanceof OracleDriver) {
  285. try {
  286. AccessController.doPrivileged(new PrivilegedExceptionAction() {
  287. public Object run() throws SQLException {
  288. DriverManager.deregisterDriver(var6);
  289. return null;
  290. }
  291. });
  292. } catch (PrivilegedActionException var8) {
  293. throw (SQLException)var8.getException();
  294. }
  295. }
  296. }
  297.  
  298. var6 = null;
  299. Object var13;
  300. if (var11 == 2 && var2.containsKey("connection_pool") && var2.getProperty("connection_pool").equals("connection_pool")) {
  301. var13 = (PhysicalConnection)var12.getConnection(var1, var2);
  302. ((PhysicalConnection)var13).protocolId = var11;
  303. } else {
  304. String var7 = null;
  305. if (var2 != null) {
  306. var7 = var2.getProperty("oracle.jdbc.sqlTranslationProfile");
  307. }
  308.  
  309. if (var7 == null) {
  310. var7 = PhysicalConnection.getSystemPropertySqlTranslationProfile();
  311. }
  312.  
  313. if (var7 != null) {
  314. var13 = this.babelfishConnect(var2, var7, var1, var12, var11);
  315. } else {
  316. var13 = (PhysicalConnection)var12.getConnection(var1, var2);
  317. ((PhysicalConnection)var13).protocolId = var11;
  318. }
  319. }
  320.  
  321. return (Connection)var13;
  322. }
  323. }
  324. }
  325.  
  326. @Supports({Feature.SQL_TRANSLATION})
  327. private Connection babelfishConnect(Properties var1, String var2, String var3, OracleDriverExtension var4, int var5) throws SQLException {
  328. var1.put("oracle.jdbc.sqlTranslationProfile", var2);
  329. var2 = null;
  330. if (var1 != null) {
  331. var2 = var1.getProperty("oracle.jdbc.sqlErrorTranslationFile");
  332. }
  333.  
  334. if (var2 == null) {
  335. var2 = System.getProperty("oracle.jdbc.sqlErrorTranslationFile", (String)null);
  336. }
  337.  
  338. if (var2 != null) {
  339. var1.put("oracle.jdbc.sqlErrorTranslationFile", var2);
  340. }
  341.  
  342. var2 = null;
  343. if (var1 != null) {
  344. var2 = var1.getProperty("user");
  345. if (var2 == null) {
  346. var2 = var1.getProperty("oracle.jdbc.user");
  347. }
  348. }
  349.  
  350. if (var2 == null) {
  351. var2 = System.getProperty("oracle.jdbc.user", (String)null);
  352. }
  353.  
  354. if (var2 == null) {
  355. Hashtable var6 = PhysicalConnection.parseUrl(var3, (String)null, (String)null);
  356. var2 = (String)var6.get("user");
  357. }
  358.  
  359. var1.put("user", var2);
  360. ProxyFactory var11 = ProxyFactory.createJDBCProxyFactory(new Class[]{BabelfishGenericProxy.class, BabelfishConnection.class, BabelfishStatement.class, BabelfishPreparedStatement.class, BabelfishCallableStatement.class});
  361. Translator var7 = TranslationManager.getTranslator(var3, var1.getProperty("user"), var1.getProperty("oracle.jdbc.sqlTranslationProfile"), var1.getProperty("oracle.jdbc.sqlErrorTranslationFile"));
  362.  
  363. try {
  364. PhysicalConnection var8 = (PhysicalConnection)var4.getConnection(var3, var1);
  365. var8.protocolId = var5;
  366. Connection var9 = (Connection)var11.proxyFor(var8);
  367. ((BabelfishConnection)var9).setTranslator(var7);
  368. var7.activateServerTranslation(var8);
  369. return var9;
  370. } catch (SQLException var10) {
  371. throw var7.translateError(var10);
  372. }
  373. }
  374.  
  375. public Connection defaultConnection() throws SQLException {
  376. if (defaultConn == null || defaultConn.isClosed()) {
  377. Class var1 = OracleDriver.class;
  378. synchronized(OracleDriver.class) {
  379. if (defaultConn == null || defaultConn.isClosed()) {
  380. defaultConn = this.connect("jdbc:oracle:kprb:", new Properties());
  381. }
  382. }
  383. }
  384.  
  385. return defaultConn;
  386. }
  387.  
  388. static final int oracleDriverExtensionTypeFromURL(String var0) {
  389. int var1 = var0.indexOf(58);
  390. if (var1 == -1) {
  391. return -2;
  392. } else if (!var0.regionMatches(true, 0, "jdbc", 0, var1)) {
  393. return -2;
  394. } else {
  395. ++var1;
  396. int var2 = var0.indexOf(58, var1);
  397. if (var2 == -1) {
  398. return -2;
  399. } else if (!var0.regionMatches(true, var1, "oracle", 0, var2 - var1)) {
  400. return -2;
  401. } else {
  402. ++var2;
  403. int var3 = var0.indexOf(58, var2);
  404. String var4 = null;
  405. if (var3 == -1) {
  406. return -3;
  407. } else {
  408. var4 = var0.substring(var2, var3);
  409. if (var4.equals("thin")) {
  410. return 0;
  411. } else {
  412. return !var4.equals("oci8") && !var4.equals("oci") ? -3 : 2;
  413. }
  414. }
  415. }
  416. }
  417. }
  418.  
  419. @Supports({Feature.PLATFORM})
  420. public boolean acceptsURL(String var1) throws SQLException {
  421. if (var1 == null) {
  422. throw (SQLException)((SQLException)DatabaseError.createSqlException(296).fillInStackTrace());
  423. } else if (var1.startsWith("jdbc:oracle:")) {
  424. return oracleDriverExtensionTypeFromURL(var1) > -2;
  425. } else {
  426. return false;
  427. }
  428. }
  429.  
  430. @Supports({Feature.METADATA})
  431. public DriverPropertyInfo[] getPropertyInfo(String var1, Properties var2) throws SQLException {
  432. Class var3 = null;
  433.  
  434. try {
  435. var3 = Class.forName("oracle.jdbc.OracleConnection");
  436. } catch (ClassNotFoundException var16) {
  437. ;
  438. }
  439.  
  440. int var4 = 0;
  441. String[] var5 = new String[150];
  442. String[] var6 = new String[150];
  443. Field[] var7 = var3.getFields();
  444.  
  445. String var11;
  446. for(int var8 = 0; var8 < var7.length; ++var8) {
  447. if (var7[var8].getName().startsWith("CONNECTION_PROPERTY_") && !var7[var8].getName().endsWith("_DEFAULT") && !var7[var8].getName().endsWith("_ACCESSMODE")) {
  448. try {
  449. String var9 = (String)var7[var8].get((Object)null);
  450. Field var10 = var3.getField(var7[var8].getName() + "_DEFAULT");
  451. var11 = (String)var10.get((Object)null);
  452. if (var4 == var5.length) {
  453. String[] var12 = new String[var5.length * 2];
  454. String[] var13 = new String[var5.length * 2];
  455. System.arraycopy(var5, 0, var12, 0, var5.length);
  456. System.arraycopy(var6, 0, var13, 0, var5.length);
  457. var5 = var12;
  458. var6 = var13;
  459. }
  460.  
  461. var5[var4] = var9;
  462. var6[var4] = var11;
  463. ++var4;
  464. } catch (IllegalAccessException var14) {
  465. ;
  466. } catch (NoSuchFieldException var15) {
  467. ;
  468. }
  469. }
  470. }
  471.  
  472. Hashtable var17 = PhysicalConnection.parseUrl(var1, (String)null, (String)null);
  473. DriverPropertyInfo[] var18 = new DriverPropertyInfo[var4];
  474.  
  475. for(int var19 = 0; var19 < var4; ++var19) {
  476. var11 = var5[var19];
  477. if (var17.containsKey(var11)) {
  478. var18[var19] = new DriverPropertyInfo(var11, (String)var17.get(var11));
  479. } else {
  480. var18[var19] = new DriverPropertyInfo(var5[var19], var6[var19]);
  481. }
  482. }
  483.  
  484. return var18;
  485. }
  486.  
  487. @Supports({Feature.METADATA})
  488. public int getMajorVersion() {
  489. return OracleDatabaseMetaData.getDriverMajorVersionInfo();
  490. }
  491.  
  492. @Supports({Feature.METADATA})
  493. public int getMinorVersion() {
  494. return OracleDatabaseMetaData.getDriverMinorVersionInfo();
  495. }
  496.  
  497. @Supports({Feature.METADATA})
  498. public boolean jdbcCompliant() {
  499. return true;
  500. }
  501.  
  502. @Supports({Feature.PLATFORM})
  503. public String processSqlEscapes(String var1) throws SQLException {
  504. OracleSql var2 = new OracleSql((DBConversion)null);
  505. var2.initialize(var1);
  506. return var2.parse(var1);
  507. }
  508.  
  509. @Supports({Feature.METADATA})
  510. public static String getCompileTime() {
  511. return BuildInfo.getBuildDate();
  512. }
  513.  
  514. @Supports({Feature.METADATA})
  515. public static String getSystemPropertyFastConnectionFailover(String var0) {
  516. return PhysicalConnection.getSystemPropertyFastConnectionFailover(var0);
  517. }
  518.  
  519. @Supports({Feature.METADATA})
  520. public static boolean getSystemPropertyDateZeroTime() {
  521. String var0 = PhysicalConnection.getSystemPropertyDateZeroTime("false");
  522. return var0.equalsIgnoreCase("true");
  523. }
  524.  
  525. @Supports({Feature.PLATFORM})
  526. public Logger getParentLogger() throws SQLFeatureNotSupportedException {
  527. return Logger.getLogger("oracle");
  528. }
  529.  
  530. static {
  531. try {
  532. if (defaultDriver == null) {
  533. defaultDriver = new oracle.jdbc.OracleDriver();
  534. DriverManager.registerDriver(defaultDriver, OracleDriver::deregister);
  535. }
  536.  
  537. AccessController.doPrivileged(new PrivilegedAction() {
  538. public Object run() {
  539. OracleDriver.registerMBeans();
  540. return null;
  541. }
  542. });
  543. Timestamp var0 = Timestamp.valueOf("2000-01-01 00:00:00.0");
  544. } catch (SQLException var4) {
  545. Logger.getLogger("oracle.jdbc.driver").log(Level.SEVERE, "SQLException in static block.", var4);
  546. } catch (RuntimeException var5) {
  547. Logger.getLogger("oracle.jdbc.driver").log(Level.SEVERE, "RuntimeException in static block.", var5);
  548. }
  549.  
  550. try {
  551. new OraclePKIProvider();
  552. } catch (Throwable var3) {
  553. ;
  554. }
  555.  
  556. systemTypeMap = new Hashtable(2);
  557.  
  558. try {
  559. systemTypeMap.put("SYS.ANYDATA", Class.forName("oracle.sql.AnyDataFactory"));
  560. systemTypeMap.put("SYS.ANYTYPE", Class.forName("oracle.sql.TypeDescriptorFactory"));
  561. } catch (ClassNotFoundException var2) {
  562. ;
  563. }
  564.  
  565. DEFAULT_CONNECTION_PROPERTIES = new Properties();
  566.  
  567. try {
  568. InputStream var6 = PhysicalConnection.class.getResourceAsStream("/oracle/jdbc/defaultConnectionProperties.properties");
  569. if (var6 != null) {
  570. DEFAULT_CONNECTION_PROPERTIES.load(var6);
  571. }
  572. } catch (IOException var1) {
  573. ;
  574. }
  575.  
  576. diagnosticMBeanObjectName = null;
  577. }
  578. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement