Examples of ForeignKeyPreventsAlterColumnException


Examples of com.foundationdb.server.error.ForeignKeyPreventsAlterColumnException

    private static void checkForeignKeyAlterColumns(List<TableChange> columnChanges, Collection<Column> columns, ForeignKey foreignKey, Table table) {
        for (Column column : columns) {
            for (TableChange change : columnChanges) {
                if (column.getName().equals(change.getOldName())) {
                    throw new ForeignKeyPreventsAlterColumnException(column.getName(), table.getName(), foreignKey.getConstraintName().getTableName());
                }
            }
        }
    }
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.