@Test public void testOracleCompatMode() { HsqldbLocalServer hsqldbLocalServer = new HsqldbLocalServer.Builder() .setHsqldbHostName(propertyParser.getProperty(ConfigVars.HSQLDB_HOSTNAME_KEY)) .setHsqldbPort(propertyParser.getProperty(ConfigVars.HSQLDB_PORT_KEY)) .setHsqldbTempDir(propertyParser.getProperty(ConfigVars.HSQLDB_TEMP_DIR_KEY)) .setHsqldbDatabaseName(propertyParser.getProperty(ConfigVars.HSQLDB_DATABASE_NAME_KEY)) .setHsqldbCompatibilityMode("oracle") .setHsqldbJdbcDriver(propertyParser.getProperty(ConfigVars.HSQLDB_JDBC_DRIVER_KEY)) .setHsqldbJdbcConnectionStringPrefix(propertyParser.getProperty( ConfigVars.HSQLDB_JDBC_CONNECTION_STRING_PREFIX_KEY)) .build(); assertEquals("SET DATABASE SQL SYNTAX ORA TRUE", hsqldbLocalServer.getHsqldbCompatibilityModeStatement()); }
public String getHsqldbCompatibilityModeStatement() { String dbTypeString = "MYS"; if(getHsqldbCompatibilityMode().equals("postresql")) { dbTypeString = "PGS"; } else if(getHsqldbCompatibilityMode().equals("mysql")) { dbTypeString = "MYS"; } else if(getHsqldbCompatibilityMode().equals("oracle")) { dbTypeString = "ORA"; } else if(getHsqldbCompatibilityMode().equals("db2")) { dbTypeString = "DB2"; } else if(getHsqldbCompatibilityMode().equals("mssql")) { dbTypeString = "MSS"; } return "SET DATABASE SQL SYNTAX " + dbTypeString + " TRUE"; }
HsqldbLocalServer implements MiniCluster { public String getHsqldbCompatibilityModeStatement() { String dbTypeString = "MYS"; if(getHsqldbCompatibilityMode().equals("postresql")) { dbTypeString = "PGS"; } else if(getHsqldbCompatibilityMode().equals("mysql")) { dbTypeString = "MYS"; } else if(getHsqldbCompatibilityMode().equals("oracle")) { dbTypeString = "ORA"; } else if(getHsqldbCompatibilityMode().equals("db2")) { dbTypeString = "DB2"; } else if(getHsqldbCompatibilityMode().equals("mssql")) { dbTypeString = "MSS"; } return "SET DATABASE SQL SYNTAX " + dbTypeString + " TRUE"; } }
HsqldbLocalServer implements MiniCluster { public String getHsqldbCompatibilityModeStatement() { String dbTypeString = "MYS"; if(getHsqldbCompatibilityMode().equals("postresql")) { dbTypeString = "PGS"; } else if(getHsqldbCompatibilityMode().equals("mysql")) { dbTypeString = "MYS"; } else if(getHsqldbCompatibilityMode().equals("oracle")) { dbTypeString = "ORA"; } else if(getHsqldbCompatibilityMode().equals("db2")) { dbTypeString = "DB2"; } else if(getHsqldbCompatibilityMode().equals("mssql")) { dbTypeString = "MSS"; } return "SET DATABASE SQL SYNTAX " + dbTypeString + " TRUE"; } private  HsqldbLocalServer(Builder builder); }
HsqldbLocalServer implements MiniCluster { public String getHsqldbCompatibilityModeStatement() { String dbTypeString = "MYS"; if(getHsqldbCompatibilityMode().equals("postresql")) { dbTypeString = "PGS"; } else if(getHsqldbCompatibilityMode().equals("mysql")) { dbTypeString = "MYS"; } else if(getHsqldbCompatibilityMode().equals("oracle")) { dbTypeString = "ORA"; } else if(getHsqldbCompatibilityMode().equals("db2")) { dbTypeString = "DB2"; } else if(getHsqldbCompatibilityMode().equals("mssql")) { dbTypeString = "MSS"; } return "SET DATABASE SQL SYNTAX " + dbTypeString + " TRUE"; } private  HsqldbLocalServer(Builder builder); String getHsqldbHostName(); String getHsqldbPort(); String getHsqldbTempDir(); String getHsqldbDatabaseName(); String getHsqldbCompatibilityMode(); String getHsqldbJdbcDriver(); String getHsqldbJdbcConnectionStringPrefix(); @Override void start(); @Override void stop(); @Override void stop(boolean cleanUp); @Override void configure(); @Override void cleanUp(); String getHsqldbCompatibilityModeStatement(); }
HsqldbLocalServer implements MiniCluster { public String getHsqldbCompatibilityModeStatement() { String dbTypeString = "MYS"; if(getHsqldbCompatibilityMode().equals("postresql")) { dbTypeString = "PGS"; } else if(getHsqldbCompatibilityMode().equals("mysql")) { dbTypeString = "MYS"; } else if(getHsqldbCompatibilityMode().equals("oracle")) { dbTypeString = "ORA"; } else if(getHsqldbCompatibilityMode().equals("db2")) { dbTypeString = "DB2"; } else if(getHsqldbCompatibilityMode().equals("mssql")) { dbTypeString = "MSS"; } return "SET DATABASE SQL SYNTAX " + dbTypeString + " TRUE"; } private  HsqldbLocalServer(Builder builder); String getHsqldbHostName(); String getHsqldbPort(); String getHsqldbTempDir(); String getHsqldbDatabaseName(); String getHsqldbCompatibilityMode(); String getHsqldbJdbcDriver(); String getHsqldbJdbcConnectionStringPrefix(); @Override void start(); @Override void stop(); @Override void stop(boolean cleanUp); @Override void configure(); @Override void cleanUp(); String getHsqldbCompatibilityModeStatement();  }