Package org.h2.constraint

Examples of org.h2.constraint.Constraint.containsColumn()


     * @throws SQLException if the column is referenced
     */
    public void checkColumnIsNotReferenced(Column col) {
        for (int i = 0; constraints != null && i < constraints.size(); i++) {
            Constraint constraint = constraints.get(i);
            if (constraint.containsColumn(col)) {
                throw DbException.get(ErrorCode.COLUMN_MAY_BE_REFERENCED_1, constraint.getSQL());
            }
        }
        ArrayList<Index> indexes = getIndexes();
        for (int i = 0; indexes != null && i < indexes.size(); i++) {
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.