if (!multiDb && dialect.equals(DBConstants.DB_DIALECT_HSQLDB))
{
cleanScripts.add("delete from JCR_SITEM where I_CLASS=2 and CONTAINER_NAME='" + containerName + "'");
dbCleaner = new DBCleaner(jdbcConn, cleanScripts, new DBCleanHelper(containerName, jdbcConn));
}
else
{
if (!multiDb)
{
cleanScripts.add("delete from JCR_SITEM where CONTAINER_NAME='" + containerName + "'");
}
if (dialect.equals(DBConstants.DB_DIALECT_PGSQL))
{
dbCleaner = new PgSQLDBCleaner(jdbcConn, cleanScripts);
}
else if (dialect.equals(DBConstants.DB_DIALECT_INGRES))
{
dbCleaner = new IngresSQLDBCleaner(jdbcConn, cleanScripts);
}
else if (dialect.equals(DBConstants.DB_DIALECT_ORACLE) || dialect.equals(DBConstants.DB_DIALECT_ORACLEOCI))
{
dbCleaner = new OracleDBCleaner(jdbcConn, cleanScripts);
}
else
{
dbCleaner = new DBCleaner(jdbcConn, cleanScripts);
}
}
return dbCleaner;
}