Examples of DBCleaner


Examples of org.exoplatform.services.jcr.impl.clean.rdbms.DBCleaner

            convertColumnIndex.add(1);
            restoreTableRule.setConvertColumnIndex(convertColumnIndex);
         }
         tables.put(dstTableName, restoreTableRule);

         DBCleaner dbCleaner = null;
         if (context.getObject(DataRestoreContext.DB_CLEANER) != null)
         {
            dbCleaner = (DBCleaner)context.getObject(DataRestoreContext.DB_CLEANER);
         }
         else
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.clean.rdbms.DBCleaner

            convertColumnIndex.add(1);
            restoreTableRule.setConvertColumnIndex(convertColumnIndex);
         }
         tables.put(dstTableName, restoreTableRule);

         DBCleaner dbCleaner = null;
         if (context.getObject(DataRestoreContext.DB_CLEANER) != null)
         {
            dbCleaner = (DBCleaner)context.getObject(DataRestoreContext.DB_CLEANER);
         }
         else
View Full Code Here

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

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

         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
Copyright © 2018 www.massapi.com. 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.