Examples of DuplicateConstraintNameException


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
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.