Examples of ChildrenExistException


Examples of com.alibaba.wasp.ChildrenExistException

    ftable = FMetaReader.getTable(server.getConfiguration(), tableNameStr);
    if (ftable.isRootTable()) {
      List<FTable> childTables = FMetaReader.getChildTable(
          server.getConfiguration(), tableNameStr);
      if (childTables != null && childTables.size() > 0) {
        throw new ChildrenExistException(tableNameStr + " has child");
      }
    }
    if (tableLockManager.lockTable(tableNameStr)) {
      LOG.info("lock table '" + tableNameStr + "' by DeleteTableHandler");
    } else {
View Full Code Here

Examples of org.acegisecurity.acls.ChildrenExistException

        if (deleteChildren) {
            for (int i = 0; i < children.length; i++) {
                deleteAcl(children[i], true);
            }
        } else if (children.length > 0) {
            throw new ChildrenExistException("Cannot delete '" + objectIdentity + "' (has " + children.length
                + " children)");
        }

        // Delete this ACL's ACEs in the acl_entry table
        deleteEntries(objectIdentity);
View Full Code Here

Examples of org.springframework.security.acls.model.ChildrenExistException

            if (!foreignKeysInDatabase) {
                // We need to perform a manual verification for what a FK would normally do
                // We generally don't do this, in the interests of deadlock management
                List<ObjectIdentity> children = findChildren(objectIdentity);
                if (children != null) {
                    throw new ChildrenExistException("Cannot delete '" + objectIdentity + "' (has " + children.size()
                            + " children)");
                }
            }
        }
View Full Code Here

Examples of org.springframework.security.acls.model.ChildrenExistException

            if (!foreignKeysInDatabase) {
                // We need to perform a manual verification for what a FK would normally do
                // We generally don't do this, in the interests of deadlock management
                List<ObjectIdentity> children = findChildren(objectIdentity);
                if (children != null) {
                    throw new ChildrenExistException("Cannot delete '" + objectIdentity + "' (has " + children.size()
                            + " children)");
                }
            }
        }
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.