Package com.jengine.orm.model.query

Examples of com.jengine.orm.model.query.ModelQuery


    public Object avg(String field) throws DBException {
        return new ModelQuery(manager).target(new Avg(field)).one();
    }

    public Object sum(String field) throws DBException {
        return new ModelQuery(manager).target(new Sum(field)).one();
    }
View Full Code Here


    public Object sum(String field) throws DBException {
        return new ModelQuery(manager).target(new Sum(field)).one();
    }

    public Long count(Field field) throws DBException {
        return (Long) new ModelQuery(manager).target(new Count(field)).one();
    }
View Full Code Here

    public Long count(Field field) throws DBException {
        return (Long) new ModelQuery(manager).target(new Count(field)).one();
    }

    public <ResultType> ResultType max(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Max(field)).one();
    }
View Full Code Here

    public <ResultType> ResultType max(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Max(field)).one();
    }

    public <ResultType> ResultType min(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Min(field)).one();
    }
View Full Code Here

    public <ResultType> ResultType min(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Min(field)).one();
    }

    public <ResultType> ResultType avg(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Avg(field)).one();
    }
View Full Code Here

    public <ResultType> ResultType avg(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Avg(field)).one();
    }

    public <ResultType> ResultType sum(Field field) throws DBException {
        return (ResultType) new ModelQuery(manager).target(new Sum(field)).one();
    }
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

        }
        return (ResultType) new ModelQuery(manager).target(new CalcMultiField(name, type, null, expr, fieldNames, map())).one();
    }

    public void remove() throws DBException {
        new ModelQuery(manager).remove();
        clearCache();
    }
View Full Code Here

TOP

Related Classes of com.jengine.orm.model.query.ModelQuery

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.