Examples of JDOQLResultClassMapper


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

Examples of org.datanucleus.query.evaluator.JDOQLResultClassMapper

        // 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

Examples of org.jpox.query.evaluator.JDOQLResultClassMapper

            for( int i=0; i<((CreatorExpression) expr).getParameters().size(); i++ )
            {
                params.add(((Expression)((CreatorExpression) expr).getParameters().get(i)).evaluate(this));
            }
                Class cls = imports.resolveClassDeclaration(((CreatorExpression) expr).getId(), clr, null);
                Object value = new JDOQLResultClassMapper(cls).createResultObject(params.toArray());
                stack.push(value);
                return value;
        }

        if( expr instanceof Literal )
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.