Package org.apache.cayenne.map

Examples of org.apache.cayenne.map.EntityInheritanceTree


            else {
                createToOneProperty(descriptor, relationship);
            }
        }

        EntityInheritanceTree inheritanceTree = descriptorMap
                .getResolver()
                .lookupInheritanceTree(descriptor.getEntity());
        indexSubclassDescriptors(descriptor, inheritanceTree);

        return descriptor;
View Full Code Here


        if (inheritanceTree != null) {

            Iterator it = inheritanceTree.getChildren().iterator();
            while (it.hasNext()) {
                EntityInheritanceTree child = (EntityInheritanceTree) it.next();
                descriptor.addSubclassDescriptor(descriptorMap.getDescriptor(child
                        .getEntity()
                        .getName()));

                indexSubclassDescriptors(descriptor, child);
            }
View Full Code Here

            } else {
                createToOneProperty(descriptor, objRelationship);
            }
        }

        EntityInheritanceTree inheritanceTree = descriptorMap.getResolver().getInheritanceTree(
                descriptor.getEntity().getName());
        descriptor.setEntityInheritanceTree(inheritanceTree);
        indexSubclassDescriptors(descriptor, inheritanceTree);
        indexQualifiers(descriptor, inheritanceTree);
View Full Code Here

            else {
                createToOneProperty(descriptor, relationship);
            }
        }

        EntityInheritanceTree inheritanceTree = descriptorMap
                .getResolver()
                .lookupInheritanceTree(descriptor.getEntity());
        indexSubclassDescriptors(descriptor, inheritanceTree);

        return descriptor;
View Full Code Here

        if (inheritanceTree != null) {

            Iterator it = inheritanceTree.getChildren().iterator();
            while (it.hasNext()) {
                EntityInheritanceTree child = (EntityInheritanceTree) it.next();
                descriptor.addSubclassDescriptor(descriptorMap.getDescriptor(child
                        .getEntity()
                        .getName()));

                indexSubclassDescriptors(descriptor, child);
            }
View Full Code Here

        // on large projects
        EntityResolver resolver = new EntityResolver(((DataChannelDescriptor) mediator
                .getProject()
                .getRootNode()).getDataMaps());

        EntityInheritanceTree inheritanceTree = resolver.lookupInheritanceTree(entity
                .getName());
        return inheritanceTree == null || inheritanceTree.getChildren().isEmpty();
    }
View Full Code Here

            else {
                createToOneProperty(descriptor, objRelationship);
            }
        }

        EntityInheritanceTree inheritanceTree = descriptorMap
                .getResolver()
                .lookupInheritanceTree(descriptor.getEntity().getName());
        descriptor.setEntityInheritanceTree(inheritanceTree);
        indexSubclassDescriptors(descriptor, inheritanceTree);
        indexQualifiers(descriptor, inheritanceTree);
View Full Code Here

TOP

Related Classes of org.apache.cayenne.map.EntityInheritanceTree

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.