@Test public void compatibilityModeDerby() { assertEquals(Collections.emptyMap(), URL_FACTORY.compatibilityModeParam(CompatibilityMode.Derby)); }
@Override public Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode) { if (CompatibilityMode.MSSQLServer == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MSSQLSERVER); } else if (CompatibilityMode.DB2 == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_DB2); } else if (CompatibilityMode.Oracle == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_ORACLE); } else if (CompatibilityMode.MySQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MYSQL); } else if (CompatibilityMode.PostgreSQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_POSTGRESQL); } else { return Collections.emptyMap(); } }
HyperSqlJdbcUrlFactory implements JdbcUrlFactory { @Override public Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode) { if (CompatibilityMode.MSSQLServer == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MSSQLSERVER); } else if (CompatibilityMode.DB2 == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_DB2); } else if (CompatibilityMode.Oracle == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_ORACLE); } else if (CompatibilityMode.MySQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MYSQL); } else if (CompatibilityMode.PostgreSQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_POSTGRESQL); } else { return Collections.emptyMap(); } } }
HyperSqlJdbcUrlFactory implements JdbcUrlFactory { @Override public Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode) { if (CompatibilityMode.MSSQLServer == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MSSQLSERVER); } else if (CompatibilityMode.DB2 == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_DB2); } else if (CompatibilityMode.Oracle == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_ORACLE); } else if (CompatibilityMode.MySQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MYSQL); } else if (CompatibilityMode.PostgreSQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_POSTGRESQL); } else { return Collections.emptyMap(); } }  }
HyperSqlJdbcUrlFactory implements JdbcUrlFactory { @Override public Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode) { if (CompatibilityMode.MSSQLServer == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MSSQLSERVER); } else if (CompatibilityMode.DB2 == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_DB2); } else if (CompatibilityMode.Oracle == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_ORACLE); } else if (CompatibilityMode.MySQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MYSQL); } else if (CompatibilityMode.PostgreSQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_POSTGRESQL); } else { return Collections.emptyMap(); } }  @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); }
HyperSqlJdbcUrlFactory implements JdbcUrlFactory { @Override public Map<String, String> compatibilityModeParam(final CompatibilityMode compatibilityMode) { if (CompatibilityMode.MSSQLServer == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MSSQLSERVER); } else if (CompatibilityMode.DB2 == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_DB2); } else if (CompatibilityMode.Oracle == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_ORACLE); } else if (CompatibilityMode.MySQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_MYSQL); } else if (CompatibilityMode.PostgreSQL == compatibilityMode) { return createEnabledSettingMap(SQL_SYNTAX_POSTGRESQL); } else { return Collections.emptyMap(); } }  @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 HSQLDB_MEM_URL; }