@Test public void testFilterInitPropertiesNoInit() { Map<String, String> properties = new HashMap<>(); properties.put("someKey", "someValue"); assertEquals(properties, H2JdbcUrlFactory.filterInitProperties(properties)); }
static Map<String, String> filterInitProperties(final Map<String, String> jdbcUrlProperties) { if (jdbcUrlProperties == null) { return null; } else { final Map<String, String> propertiesCopy = new LinkedHashMap<>(); for (final Map.Entry<String, String> property : jdbcUrlProperties.entrySet()) { if (!PROP_INIT_SQL.equalsIgnoreCase(property.getKey())) { propertiesCopy.put(property.getKey(), property.getValue()); } } return propertiesCopy; } }
H2JdbcUrlFactory implements JdbcUrlFactory { static Map<String, String> filterInitProperties(final Map<String, String> jdbcUrlProperties) { if (jdbcUrlProperties == null) { return null; } else { final Map<String, String> propertiesCopy = new LinkedHashMap<>(); for (final Map.Entry<String, String> property : jdbcUrlProperties.entrySet()) { if (!PROP_INIT_SQL.equalsIgnoreCase(property.getKey())) { propertiesCopy.put(property.getKey(), property.getValue()); } } return propertiesCopy; } } }
H2JdbcUrlFactory implements JdbcUrlFactory { static Map<String, String> filterInitProperties(final Map<String, String> jdbcUrlProperties) { if (jdbcUrlProperties == null) { return null; } else { final Map<String, String> propertiesCopy = new LinkedHashMap<>(); for (final Map.Entry<String, String> property : jdbcUrlProperties.entrySet()) { if (!PROP_INIT_SQL.equalsIgnoreCase(property.getKey())) { propertiesCopy.put(property.getKey(), property.getValue()); } } return propertiesCopy; } }  }
H2JdbcUrlFactory implements JdbcUrlFactory { static Map<String, String> filterInitProperties(final Map<String, String> jdbcUrlProperties) { if (jdbcUrlProperties == null) { return null; } else { final Map<String, String> propertiesCopy = new LinkedHashMap<>(); for (final Map.Entry<String, String> property : jdbcUrlProperties.entrySet()) { if (!PROP_INIT_SQL.equalsIgnoreCase(property.getKey())) { propertiesCopy.put(property.getKey(), property.getValue()); } } return propertiesCopy; } }  @Override String connectionUrlForInitialization(final String name, final Map<String, String> properties); @Override String connectionUrl(final String name, final Map<String, String> properties); @Override Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode); }
H2JdbcUrlFactory implements JdbcUrlFactory { static Map<String, String> filterInitProperties(final Map<String, String> jdbcUrlProperties) { if (jdbcUrlProperties == null) { return null; } else { final Map<String, String> propertiesCopy = new LinkedHashMap<>(); for (final Map.Entry<String, String> property : jdbcUrlProperties.entrySet()) { if (!PROP_INIT_SQL.equalsIgnoreCase(property.getKey())) { propertiesCopy.put(property.getKey(), property.getValue()); } } return propertiesCopy; } }  @Override String connectionUrlForInitialization(final String name, final Map<String, String> properties); @Override String connectionUrl(final String name, final Map<String, String> properties); @Override Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode); static final String PROP_MODE; static final String PROP_INIT_SQL; }