Package nexj.core.meta.persistence.sql

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


         {
            dropIndex(index);

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

            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

         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

         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

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.