Package org.datanucleus.query.evaluator

Examples of org.datanucleus.query.evaluator.JDOQLResultClassMapper


    }

    private Collection<Object> readCreatorExpressionObjects(Class clazz, SObject[] sObjects, Expression[] exprs,
            List<String> fieldNameList) throws ConnectionException, SQLException {
        Collection<Object> res = readExpressionObjects(sObjects, exprs, fieldNameList);
        return new JDOQLResultClassMapper(clazz).map(res, toShortNameExpressions(exprs));
    }
View Full Code Here


        // Now read the data based on the metadata
        if (createFieldNameExpressions) {
            if (exprs != null && exprs.length > 0) {
                return readCreatorExpressionObjects(resultClass, sObjects, exprs, fieldNameList);
            } else {
                return new JDOQLResultClassMapper(resultClass).map(getResultAsCollection(sObjects, fieldNameList),
                                                                fieldNameExprs.toArray(new Expression[fieldNameExprs.size()]));
            }
        } else if (exprs != null && exprs.length > 0) {
            if (exprs[0] instanceof CreatorExpression) {
                CreatorExpression ce = (CreatorExpression) exprs[0];
View Full Code Here

TOP

Related Classes of org.datanucleus.query.evaluator.JDOQLResultClassMapper

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.