Package org.objectweb.medor.query.jorm.lib

Examples of org.objectweb.medor.query.jorm.lib.ClassExtent


        Field f = ((PropagatedField) selectfields.get(0)).getOriginFields()[0];
        if (f instanceof PNameField) {
            PNameField pnf = (PNameField) f;
            if (pnf.isClassPName() && !pnf.isInGenClass()) {
                //Add prefeched fields
                ClassExtent ce = (ClassExtent) pnf.getQueryTree();
                String prefetchedClassName = ce.getJormName();
                HomeItf sh = (HomeItf) mapper.lookup(prefetchedClassName);
                if (sh.getPrefetchOnQuery()) {
                    qec.pcm = sh;
                    JormQueryTreeHelper.addPrefetchFields(ce, qt, top,
                                qd.getIncludeSubClasses());
View Full Code Here


        if (theClass == null) {
            throw new SpeedoException
                ("Class '" + classname +
                 "' has not been declared in the jorm meta information");
        }
        ClassExtent ext = new ClassExtent(theClass, alias, Field.PNAMENAME, false);
        if (classname.equals(this.curClass)) {
          ext.setWithSubClasses(includeSubClasses);
        }
        return (PNameField) ext.getField(ext.getPNameFieldName());
    }
View Full Code Here

TOP

Related Classes of org.objectweb.medor.query.jorm.lib.ClassExtent

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.