Examples of removeIndex()


Examples of nexj.core.meta.persistence.sql.RelationalSchema.removeIndex()

   public void apply(RelationalSchemaUpgradeState state)
   {
      RelationalSchema schema = state.getSchema();

      m_index = schema.getIndex(m_sName);
      schema.removeIndex(m_index);

      if (!m_index.isAspect() && m_index.getTable().isAspect())
      {
         for (Iterator itr = schema.getTableIterator(); itr.hasNext();)
         {
View Full Code Here

Examples of nexj.core.meta.persistence.sql.RelationalSchema.removeIndex()

         {
            Table pointcut = (Table)itr.next();

            if (pointcut.hasAspect(m_index.getTable()))
            {
               schema.removeIndex(pointcut.getIndex(m_index.getName(pointcut)));
            }
         }
      }
   }
View Full Code Here

Examples of nexj.core.meta.persistence.sql.RelationalSchema.removeIndex()

         !state.containsTable(m_sTableName))
      {
         RelationalSchema schema = state.getSchema();
         Index index = schema.getIndex(m_outline.getName());

         schema.removeIndex(index);

         if (!index.isAspect() && index.getTable().isAspect())
         {
            for (Iterator itr = schema.getTableIterator(); itr.hasNext();)
            {
View Full Code Here

Examples of nexj.core.meta.persistence.sql.RelationalSchema.removeIndex()

               {
                  String sName = index.getName(pointcut);

                  if (!state.removeIndex(sName))
                  {
                     schema.removeIndex(pointcut.getIndex(sName));
                  }
               }
            }
         }
      }
View Full Code Here

Examples of nexj.core.meta.persistence.sql.Table.removeIndex()

            {
               Index index = template.getIndex(k);

               if (index.findIndexColumn(templateCol) != null)
               {
                  template.removeIndex(index);
               }
            }
         }
      }
View Full Code Here

Examples of nexj.core.meta.persistence.sql.Table.removeIndex()

         {
            dropIndex(index);

            if (bUpdate)
            {
               table.removeIndex(index);
            }
         }
      }
   }
View Full Code Here

Examples of nexj.core.meta.persistence.sql.Table.removeIndex()

            if (st instanceof CreateIndexStep)
            {
               if (((CreateIndexStep)st).getOutline().getName().equals(sName))
               {
                  // index was never created, due to an optimization
                  current.removeIndex(current.getIndex(sNewPK));
                  break;
               }
            }
            else if (st instanceof RenameIndexStep)
            {
View Full Code Here

Examples of nexj.core.meta.persistence.sql.Table.removeIndex()

         Table intermedary = current.cloneTemporary();

         // change/removal of PK requires drop of PK constraint/index
         if (oldPK != null && oldPK != newPK)
         {
            intermedary.removeIndex(intermedary.getIndex(oldPK.getName()));
         }

         newPK = intermedary.findIndex(newPK.getName()); // find index to be promoted to PK

         // an existing index exists that needs to be promoted to PK according to metadata
View Full Code Here

Examples of nexj.core.meta.persistence.sql.Table.removeIndex()

         newPK = intermedary.findIndex(newPK.getName()); // find index to be promoted to PK

         // an existing index exists that needs to be promoted to PK according to metadata
         if (newPK != null && newPK.getName().equals(sNewPK)) // PK may differ for e.g. Oracle
         {
            intermedary.removeIndex(newPK);
         }

         dropIndexes(intermedary, current);
         createIndexes(table, intermedary);
      }
View Full Code Here

Examples of org.apache.ddlutils.model.Table.removeIndex()

            {
                Index index = table.getIndex(idx);

                if (index.isUnique() && existsPKWithName(metaData, table, index.getName()))
                {
                    table.removeIndex(idx);
                }
                else
                {
                    idx++;
                }
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.