Package nexj.core.meta.persistence.sql

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


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

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

         !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

               {
                  String sName = index.getName(pointcut);

                  if (!state.removeIndex(sName))
                  {
                     schema.removeIndex(pointcut.getIndex(sName));
                  }
               }
            }
         }
      }
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.