Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.JoinToMultipleParentsException


        Set<Table> childTables = new HashSet<>();
       
        for (Join join : ais.getJoins().values()) {
            if (childTables.contains(join.getChild())) {
                output.reportFailure(new AISValidationFailure (
                        new JoinToMultipleParentsException (join.getChild().getName())));
            } else {
                childTables.add(join.getChild());
            }
        }
    }
View Full Code Here


                    tableCopy.setGroup(null);
                    tableCopy.removeCandidateParentJoin(parentJoin);
                    parentJoin.getParent().removeCandidateChildJoin(parentJoin);
                } else {
                    if(origTable.getParentJoin() != null) {
                        throw new JoinToMultipleParentsException(origTable.getName());
                    }
                    tableCopy.setGroup(null);
                    TableDDL.addJoin(builder, fk, defaultSchema, newName.getSchemaName(), newName.getTableName());
                }
            } else {
View Full Code Here

        builder.basicSchemaIsComplete();
       
        try {
            builder.addJoinToGroup(parentTable.getGroup().getName(), joinName, 0);
        } catch (AISBuilder.GroupStructureException ex) {
            throw new JoinToMultipleParentsException(join.getChild().getName());
        }
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.JoinToMultipleParentsException

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.