Package com.jengine.orm.model.multi.field

Examples of com.jengine.orm.model.multi.field.CalcMultiField


    public Cluster field(Object field) {
        if (field instanceof String) {
            this.selectedFields.put((String) field, this.fields.get(field));
        } else if (field instanceof CalcMultiField) {
            CalcMultiField multiField = (CalcMultiField) field;
            multiField.config(this);
            this.fields.put(multiField.getName(), multiField);
            this.selectedFields.put(multiField.getName(), multiField);
        }
        return this;
    }
View Full Code Here


    public <ResultType> ResultType calc(String name, Class type, String expr, Field ... fields) throws DBException {
        List<String> fieldNames = new ArrayList<String>();
        for (Field field : fields) {
            fieldNames.add(field.getFieldName());
        }
        return (ResultType) new ModelQuery(manager).target(new CalcMultiField(name, type, null, expr, fieldNames, map())).one();
    }
View Full Code Here

TOP

Related Classes of com.jengine.orm.model.multi.field.CalcMultiField

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.