/** * Create the dictionary using connection metadata to determine its type. */ public static DBDictionary newDBDictionary(JDBCConfiguration conf, DataSource ds, String props) { Connection conn = null; try { conn = ds.getConnection(); DatabaseMetaData meta = conn.getMetaData(); String dclass = dictionaryClassForString(meta.getURL(), conf); if (dclass == null) dclass = dictionaryClassForString (meta.getDatabaseProductName(), conf); if (dclass == null) dclass = DBDictionary.class.getName(); return newDBDictionary(conf, dclass, props, conn); } catch (SQLException se) { throw new StoreException(se).setFatal(true); } finally { if (conn != null) try { conn.close(); } catch (SQLException se) { } } }
return newDBDictionary(conf, dclass, props, conn); } catch (SQLException se) { throw new StoreException(se).setFatal(true); } finally { if (conn != null)
return newDBDictionary(conf, dclass, props, conn); } catch (SQLException se) { throw new StoreException(se).setFatal(true); } finally { if (conn != null)
return newDBDictionary(conf, dclass, props, conn); } catch (SQLException se) { throw new StoreException(se).setFatal(true); } finally { if (conn != null)
return newDBDictionary(conf, dclass, props, conn); } catch (SQLException se) { throw new StoreException(se).setFatal(true); } finally { if (conn != null)
throw new StoreException(re).setFatal(true);
throw new StoreException(re).setFatal(true);
storeEx = new StoreException(msg); storeEx.setFatal(isFatalException(errorType, ex)); return storeEx;
storeEx = new StoreException(msg); storeEx.setFatal(isFatalException(errorType, ex)); return storeEx;
throw new StoreException(re).setFatal(true);
storeEx = new StoreException(msg); storeEx.setFatal(isFatalException(errorType, ex)); return storeEx;
throw new StoreException(re).setFatal(true);
throw new StoreException(re).setFatal(true);
throw new StoreException(re).setFatal(true);
throw new StoreException(re).setFatal(true);