Package org.apache.ddlutils.alteration

Examples of org.apache.ddlutils.alteration.RemoveColumnChange


                  changeIt.remove();
              }
            }
            else if (change instanceof RemoveColumnChange)
            {
              RemoveColumnChange removeColumnChange = (RemoveColumnChange)change;

              // TODO: we cannot drop primary key columns this way
              //       because we would have to drop the pk first and then
              //       add a new one afterwards which is not supported yet
              if (!removeColumnChange.getColumn().isPrimaryKey())
              {
                processChange(currentModel, desiredModel, removeColumnChange);
                  changeIt.remove();
              }
            }
View Full Code Here


        {
            TableChange change = (TableChange)changeIt.next();

            if (change instanceof RemoveColumnChange)
            {
                RemoveColumnChange removeColumnChange = (RemoveColumnChange)change;

                processChange(currentModel, desiredModel, removeColumnChange);
                changeIt.remove();
            }
        }
View Full Code Here

                                              autoIncrChange.getColumn());
                }
            }
            else if (change instanceof RemoveColumnChange)
            {
                RemoveColumnChange removeColumnChange = (RemoveColumnChange)change;

                if (removeColumnChange.getColumn().isAutoIncrement())
                {
                    dropAutoIncrementSequence(removeColumnChange.getChangedTable(),
                                              removeColumnChange.getColumn());
                }
            }
        }
        changes.clear();
    }
View Full Code Here

                    changeIt.remove();
                }
            }
            else if (change instanceof RemoveColumnChange)
            {
                RemoveColumnChange removeColumnChange = (RemoveColumnChange)change;

                // TODO: we cannot drop primary key columns this way
                //       because we would have to drop the pk first and then
                //       add a new one afterwards which is not supported yet
                if (!removeColumnChange.getColumn().isPrimaryKey())
                {
                    processChange(currentModel, desiredModel, removeColumnChange);
                    changeIt.remove();
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.ddlutils.alteration.RemoveColumnChange

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.