Package nexj.core.meta.persistence.sql.upgrade

Examples of nexj.core.meta.persistence.sql.upgrade.RelationalSchemaUpgradeStep


            // step through each step, if the AdapterStep enabling the specific adapter is at the
            // beginning of the step list or only has other AdapterSteps before it then this version
            // is compatible
            for (int i = 0, nCount = upgradeVersion.getStepCount(); i < nCount; ++i)
            {
               RelationalSchemaUpgradeStep step = upgradeVersion.getStep(i);

               if (step instanceof SupportAdapterStep)
               {
                  if (((SupportAdapterStep)step).getAdapter() == adapter)
                  {
View Full Code Here


         throw new IllegalArgumentException("Version \"" + version.getVersion() + "\" upgrade already completed");
      }

      if (m_nStep < upgrade.getStepCount())
      {
         RelationalSchemaUpgradeStep step = upgrade.getStep(m_nStep++);
  
         if (s_logger.isDebugEnabled())
         {
            s_logger.debug("Upgrade version \"" + version.getVersion() +
               "\", step " + (m_nStep - 1) + ": " + step);
View Full Code Here

         current = table.cloneTemporary();

         // check previous steps if PK was requested, if so then it would not have been created
         for (int i = m_nStep - 2; i >= 0; --i)
         {
            RelationalSchemaUpgradeStep st = m_upgrade.getStep(i);

            if (st instanceof CreateIndexStep)
            {
               if (((CreateIndexStep)st).getOutline().getName().equals(sName))
               {
View Full Code Here

    */
   protected boolean isUpgradedToPrimaryKey(String sIndexName)
   {
      for (int i = m_nStep, n = m_upgrade.getStepCount(); i < n; ++i)
      {
         RelationalSchemaUpgradeStep st = m_upgrade.getStep(i);

         if (st instanceof DropIndexStep)
         {
            if (((DropIndexStep)st).getName().equals(sIndexName))
            {
View Full Code Here

TOP

Related Classes of nexj.core.meta.persistence.sql.upgrade.RelationalSchemaUpgradeStep

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.