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

Examples of com.jengine.orm.model.query.target.FieldTarget.config()


    public ModelQuery target(MultiModelField field) {
        if (field instanceof CalcMultiField) {
            target((CalcMultiField) field);
        } else if (field.getModelField() instanceof FunctionField) {
            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);
View Full Code Here


            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);
View Full Code Here

            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

        if (field instanceof CalcMultiField)  {
            return target((CalcMultiField) field);
        else {
            MultiModelField multiModelField = multiModel.getField((String) field);
            Target target = new FieldTarget((String) field, multiModelField);
            target.config(this);
            this.targets.put(target.getName(), target);
        }

        return this;
    }
View Full Code Here

    }

    protected BaseQuery target(CalcMultiField field) {
        multiModel.addCalcField(field);
        Target target = new FieldTarget(field);
        target.config(this);
        targets.put(field.getName(), target);
        return this;
    }

    public BaseQuery targets(Object ... fields) {
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.