Package org.exoplatform.services.jcr.impl.clean.rdbms

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


      {
         return new OracleCleaningScipts(dialect, wsEntry);
      }
      else
      {
         throw new DBCleanException("Unsupported dialect " + dialect);
      }
   }
View Full Code Here


      {
         return new OracleCleaningScipts(dialect, rEntry);
      }
      else
      {
         throw new DBCleanException("Unsupported dialect " + dialect);
      }
   }
View Full Code Here

         scripts.add(DBInitializerHelper.getObjectScript("JCR_IDX_" + refTableSuffix + "_PROPERTY ON " + refTableName,
            multiDb, dialect, wsEntry));
      }
      catch (RepositoryConfigurationException e)
      {
         throw new DBCleanException(e);
      }
      catch (IOException e)
      {
         throw new DBCleanException(e);
      }

      return scripts;
   }
View Full Code Here

         scripts.add(DBInitializerHelper.getObjectScript("JCR_IDX_" + refTableSuffix + "_PROPERTY ON " + refTableName,
            multiDb, dialect, wsEntry));
      }
      catch (RepositoryConfigurationException e)
      {
         throw new DBCleanException(e);
      }
      catch (IOException e)
      {
         throw new DBCleanException(e);
      }

      return scripts;
   }
View Full Code Here

      {
         scripts.add(DBInitializerHelper.getObjectScript("CREATE OR REPLACE trigger", multiDb, dialect, wsEntry));
      }
      catch (RepositoryConfigurationException e)
      {
         throw new DBCleanException(e);
      }
      catch (IOException e)
      {
         throw new DBCleanException(e);
      }

      // ITEM
      scripts.add("ALTER TABLE " + itemTableName + "_OLD RENAME TO " + itemTableName + "");
      scripts.add("ALTER TABLE " + itemTableName + " RENAME CONSTRAINT JCR_PK_" + itemTableSuffix + "_OLD TO JCR_PK_"
View Full Code Here

            scripts.add(DBInitializerHelper.getObjectScript("CREATE FUNCTION " + itemTableName + "_NEXT_VAL", multiDb, dialect, wsEntry));
         }
         catch (RepositoryConfigurationException e)
         {

            throw new DBCleanException(e);
         }
         catch (IOException e)
         {
            throw new DBCleanException(e);
         }
      }

      return scripts;
   }
View Full Code Here

         scripts.add(DBInitializerHelper.getObjectScript("JCR_IDX_" + refTableSuffix + "_PROPERTY ON " + refTableName,
            multiDb, dialect, wsEntry));
      }
      catch (RepositoryConfigurationException e)
      {
         throw new DBCleanException(e);
      }
      catch (IOException e)
      {
         throw new DBCleanException(e);
      }

      return scripts;
   }
View Full Code Here

         {
            scripts.add(DBInitializerHelper.getObjectScript("CREATE PROCEDURE " + itemTableName + "_NEXT_VAL", multiDb, dialect, wsEntry));
         }
         catch (RepositoryConfigurationException e)
         {
            throw new DBCleanException(e);
         }
         catch (IOException e)
         {
            throw new DBCleanException(e);
         }
      }

      scripts.add("sp_rename JCR_FK_" + valueTableSuffix + "_PROPERTY_OLD, JCR_FK_" + valueTableSuffix + "_PROPERTY");
      scripts.add("sp_rename JCR_FK_" + itemTableSuffix + "_PARENT_OLD, JCR_FK_" + itemTableSuffix + "_PARENT");
View Full Code Here

      {
         try
         {
            if (DBInitializerHelper.getDatabaseType(wsEntry).isMultiDatabase())
            {
               throw new DBCleanException("Not supported operation.");
            }
         }
         catch (RepositoryConfigurationException e)
         {
            throw new DBCleanException(e);
         }
      }

      this.multiDb = false;
      this.workspaceName = null;
View Full Code Here

      {
         this.multiDb = DBInitializerHelper.getDatabaseType(wsEntry).isMultiDatabase();
      }
      catch (RepositoryConfigurationException e)
      {
         throw new DBCleanException(e);
      }

      this.workspaceName = wsEntry.getName();
      this.dialect = dialect;
      this.wsEntry = wsEntry;
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.clean.rdbms.DBCleanException

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.