Package com.jengine.orm.model.query.target

Examples of com.jengine.orm.model.query.target.ModelTarget


    public ModelQuery(ModelManager manager) {
        super();
        this.manager = manager;
        this.multiModel = new QueryMultiModel(manager.getModelClass());
        this.defaultTarget = new ModelTarget(getMultiModel().getMainItem());
        this.defaultTarget.config(this);
    }
View Full Code Here


            Target target = new FieldTarget(field);
            target.config(this);
            this.targets.put(target.getName(), target);
        } else if (field.getModelField() instanceof BaseReference) {
            MultiModelItem item =  multiModel.getItems().get(field.getName());
            Target target = new ModelTarget(field.getName(), item);
            target.config(this);
            this.targets.put(target.getName(), target);
        } else {
            Target target = new FieldTarget(field);
            target.config(this);
            this.targets.put(target.getName(), target);
        }

        return this;
    }
View Full Code Here

TOP

Related Classes of com.jengine.orm.model.query.target.ModelTarget

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.