Package org.exoplatform.services.jcr.impl.storage.jdbc.cleaner

Examples of org.exoplatform.services.jcr.impl.storage.jdbc.cleaner.DBCleaner


         for (String tableName : getTableNames())
         {
            cleanScripts.add("drop table " + tableName);
         }

         return new DBCleaner(jdbcConn, cleanScripts);
      }
      catch (SQLException e)
      {
         throw new CleanException(e);
      }
View Full Code Here


         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;
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.storage.jdbc.cleaner.DBCleaner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.