@Override public void endConfiguration() { super.endConfiguration(); // warn about jdbc compliant flag String url = conf.getConnectionURL(); if (!StringUtils.isEmpty(url) && url.toLowerCase().indexOf("jdbc:sybase:tds") != -1 && url.toLowerCase().indexOf("be_as_jdbc_compliant_as_possible=") == -1) { log.warn(_loc.get("sybase-compliance", url)); } }
@Override public void endConfiguration() { super.endConfiguration(); // warn about jdbc compliant flag String url = conf.getConnectionURL(); if (!StringUtils.isEmpty(url) && url.toLowerCase().indexOf("jdbc:sybase:tds") != -1 && url.toLowerCase().indexOf("be_as_jdbc_compliant_as_possible=") == -1) { log.warn(_loc.get("sybase-compliance", url)); } }
public void endConfiguration() { super.endConfiguration(); // warn about jdbc compliant flag String url = conf.getConnectionURL(); if (!StringUtils.isEmpty(url) && url.toLowerCase().indexOf("jdbc:sybase:tds") != -1 && url.toLowerCase().indexOf("be_as_jdbc_compliant_as_possible=") == -1) { log.warn(_loc.get("sybase-compliance", url)); } }
@Override public void endConfiguration() { super.endConfiguration(); // warn about jdbc compliant flag String url = conf.getConnectionURL(); if (!StringUtil.isEmpty(url) && url.toLowerCase(Locale.ENGLISH).indexOf("jdbc:sybase:tds") != -1 && url.toLowerCase(Locale.ENGLISH).indexOf("be_as_jdbc_compliant_as_possible=") == -1) { log.warn(_loc.get("sybase-compliance", url)); } }
@Override public void endConfiguration() { super.endConfiguration(); // warn about jdbc compliant flag String url = conf.getConnectionURL(); if (!StringUtil.isEmpty(url) && url.toLowerCase(Locale.ENGLISH).indexOf("jdbc:sybase:tds") != -1 && url.toLowerCase(Locale.ENGLISH).indexOf("be_as_jdbc_compliant_as_possible=") == -1) { log.warn(_loc.get("sybase-compliance", url)); } }
public void closeDataSource(DataSource dataSource) { super.closeDataSource(dataSource); if (!shutdownOnClose) return; // as well as closing the DataSource, we also need to // shut down the instance if we are using an embedded database, which // can only be done by connecting to the same URL with the // ";shutdown=true" string appended to the end // see: http://db.apache.org/derby/docs/dev/devguide/tdevdvlp40464.html if (conf != null && conf.getConnectionDriverName() != null && conf.getConnectionDriverName().indexOf("EmbeddedDriver") != -1) { try { DriverManager.getConnection(conf.getConnectionURL() + ";shutdown=true"); } catch (SQLException e) { // we actually expect a SQLException to be thrown here: // Derby strangely uses that as a mechanism to report // a successful shutdown } } }
public void closeDataSource(DataSource dataSource) { super.closeDataSource(dataSource); if (!shutdownOnClose) return; // as well as closing the DataSource, we also need to // shut down the instance if we are using an embedded database, which // can only be done by connecting to the same URL with the // ";shutdown=true" string appended to the end // see: http://db.apache.org/derby/docs/dev/devguide/tdevdvlp40464.html if (conf != null && conf.getConnectionDriverName() != null && conf.getConnectionDriverName().indexOf("EmbeddedDriver") != -1) { try { DriverManager.getConnection(conf.getConnectionURL() + ";shutdown=true"); } catch (SQLException e) { // we actuall expect a SQLException to be thrown here: // Derby strangely uses that as a mechanism to report // a successful shutdown } } }
public void closeDataSource(DataSource dataSource) { super.closeDataSource(dataSource); if (!shutdownOnClose) return; // as well as closing the DataSource, we also need to // shut down the instance if we are using an embedded database, which // can only be done by connecting to the same URL with the // ";shutdown=true" string appended to the end // see: http://db.apache.org/derby/docs/dev/devguide/tdevdvlp40464.html if (conf != null && conf.getConnectionDriverName() != null && conf.getConnectionDriverName().indexOf("EmbeddedDriver") != -1) { try { DriverManager.getConnection(conf.getConnectionURL() + ";shutdown=true"); } catch (SQLException e) { // we actually expect a SQLException to be thrown here: // Derby strangely uses that as a mechanism to report // a successful shutdown } } }
public void closeDataSource(DataSource dataSource) { super.closeDataSource(dataSource); if (!shutdownOnClose) return; // as well as closing the DataSource, we also need to // shut down the instance if we are using an embedded database, which // can only be done by connecting to the same URL with the // ";shutdown=true" string appended to the end // see: http://db.apache.org/derby/docs/dev/devguide/tdevdvlp40464.html if (conf != null && conf.getConnectionDriverName() != null && conf.getConnectionDriverName().indexOf("EmbeddedDriver") != -1) { try { DriverManager.getConnection(conf.getConnectionURL() + ";shutdown=true"); } catch (SQLException e) { // we actually expect a SQLException to be thrown here: // Derby strangely uses that as a mechanism to report // a successful shutdown } } }
public void closeDataSource(DataSource dataSource) { super.closeDataSource(dataSource); if (!shutdownOnClose) return; // as well as closing the DataSource, we also need to // shut down the instance if we are using an embedded database, which // can only be done by connecting to the same URL with the // ";shutdown=true" string appended to the end // see: http://db.apache.org/derby/docs/dev/devguide/tdevdvlp40464.html if (conf != null && conf.getConnectionDriverName() != null && conf.getConnectionDriverName().indexOf("EmbeddedDriver") != -1) { try { DriverManager.getConnection(conf.getConnectionURL() + ";shutdown=true"); } catch (SQLException e) { // we actually expect a SQLException to be thrown here: // Derby strangely uses that as a mechanism to report // a successful shutdown } } }
static OpenJPAException newConnectException(JDBCConfiguration conf, boolean factory2, Exception cause) { return new UserException(_eloc.get("poolds-null", factory2 ? new Object[]{conf.getConnection2DriverName(), conf.getConnection2URL()} : new Object[]{conf.getConnectionDriverName(), conf.getConnectionURL()}), cause).setFatal(true); }
static OpenJPAException newConnectException(JDBCConfiguration conf, boolean factory2, Exception cause) { return new UserException(_eloc.get("poolds-null", factory2 ? new Object[]{conf.getConnection2DriverName(), conf.getConnection2URL()} : new Object[]{conf.getConnectionDriverName(), conf.getConnectionURL()}), cause).setFatal(true); }
static OpenJPAException newConnectException(JDBCConfiguration conf, boolean factory2, Exception cause) { return new UserException(_eloc.get("poolds-null", factory2 ? new Object[]{conf.getConnection2DriverName(), conf.getConnection2URL()} : new Object[]{conf.getConnectionDriverName(), conf.getConnectionURL()}), cause).setFatal(true); }
static OpenJPAException newConnectException(JDBCConfiguration conf, boolean factory2, Exception cause) { return new UserException(_eloc.get("poolds-null", factory2 ? new Object[]{conf.getConnection2DriverName(), conf.getConnection2URL()} : new Object[]{conf.getConnectionDriverName(), conf.getConnectionURL()}), cause).setFatal(true); }
ds.setConnectionFactoryProperties(Configurations. parseProperties(conf.getConnectionFactoryProperties())); ds.setConnectionURL(conf.getConnectionURL()); ds.setConnectionUserName(conf.getConnectionUserName()); ds.setConnectionPassword(conf.getConnectionPassword());
ds.setConnectionFactoryProperties(Configurations. parseProperties(conf.getConnectionFactoryProperties())); ds.setConnectionURL(conf.getConnectionURL()); ds.setConnectionUserName(conf.getConnectionUserName()); ds.setConnectionPassword(conf.getConnectionPassword());
ds.setConnectionFactoryProperties(Configurations. parseProperties(conf.getConnectionFactoryProperties())); ds.setConnectionURL(conf.getConnectionURL()); ds.setConnectionUserName(conf.getConnectionUserName()); ds.setConnectionPassword(conf.getConnectionPassword());
ds.setConnectionFactoryProperties(Configurations. parseProperties(conf.getConnectionFactoryProperties())); ds.setConnectionURL(conf.getConnectionURL()); ds.setConnectionUserName(conf.getConnectionUserName()); ds.setConnectionPassword(conf.getConnectionPassword());
ds.setConnectionFactoryProperties(Configurations. parseProperties(conf.getConnectionFactoryProperties())); ds.setConnectionURL(conf.getConnectionURL()); ds.setConnectionUserName(conf.getConnectionUserName()); ds.setConnectionPassword(conf.getConnectionPassword());