Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.DuplicateConstraintNameException


   
    public static void checkDuplicateConstraintsInSchema(AkibanInformationSchema ais, TableName constraintName) {
        if (constraintName != null) {
            Schema schema = ais.getSchema(constraintName.getSchemaName());
            if (schema != null && schema.hasConstraint(constraintName.getTableName())) {
                throw new DuplicateConstraintNameException(constraintName);
            }
        }
    }
View Full Code Here

TOP

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

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.