Package org.datanucleus.query.evaluator.memory

Examples of org.datanucleus.query.evaluator.memory.InMemoryExpressionEvaluator


                compilation.getCandidateAlias() : this.candidateAlias);

        state = new HashMap<String, Object>();
        state.put(this.candidateAlias, query.getCandidateClass());

        evaluator = new InMemoryExpressionEvaluator(query.getExecutionContext(),
            parameterValues, state, query.getParsedImports(), clr, this.candidateAlias);
    }
View Full Code Here


            {
                throw new NucleusUserException("Alias \"" + candidateAlias + "\" doesn't exist in the query or the candidate alias wasn't defined");
            }
            state.put(candidateAlias, obj);

            InMemoryExpressionEvaluator eval =
                new InMemoryExpressionEvaluator(query.getExecutionContext(),
                    parameterValues, state, query.getParsedImports(), clr, candidateAlias);

            Object evalResult = evaluateBooleanExpression(filter, eval);
            if (Boolean.TRUE.equals(evalResult))
            {
View Full Code Here

            {
                for (int i=0; i<ordering.length; i++)
                {
                    state.put(candidateAlias, arg0);
                    Object a = ordering[i].evaluate(
                        new InMemoryExpressionEvaluator(query.getExecutionContext(),
                            parameterValues, state, query.getParsedImports(), clr,
                            candidateAlias));

                    state.put(candidateAlias, arg1);
                    Object b = ordering[i].evaluate(
                        new InMemoryExpressionEvaluator(query.getExecutionContext(),
                            parameterValues, state, query.getParsedImports(), clr,
                            candidateAlias));

                    int result = ((Comparable)a).compareTo(b);
                    if (result != 0)
View Full Code Here

                compilation.getCandidateAlias() : this.candidateAlias);

        state = new HashMap<String, Object>();
        state.put(this.candidateAlias, query.getCandidateClass());

        evaluator = new InMemoryExpressionEvaluator(query.getObjectManager().getOMFContext().getQueryManager(),
            parameterValues, state, query.getParsedImports(), clr, this.candidateAlias);
    }
View Full Code Here

            {
                throw new NucleusUserException("Alias \"" + candidateAlias + "\" doesn't exist in the query or the candidate alias wasn't defined");
            }
            state.put(candidateAlias, obj);
            if (filter.evaluate(
                new InMemoryExpressionEvaluator(query.getObjectManager().getOMFContext().getQueryManager(),
                    parameterValues, state, query.getParsedImports(), clr, candidateAlias)) == Boolean.TRUE)
            {
                result.add(obj);
            }
        }
View Full Code Here

            {
                for (int i=0; i<ordering.length; i++)
                {
                    state.put(candidateAlias, arg0);
                    Object a = ordering[i].evaluate(
                        new InMemoryExpressionEvaluator(query.getObjectManager().getOMFContext().getQueryManager(),
                            parameterValues, state, query.getParsedImports(), clr,
                            candidateAlias));

                    state.put(candidateAlias, arg1);
                    Object b = ordering[i].evaluate(
                        new InMemoryExpressionEvaluator(query.getObjectManager().getOMFContext().getQueryManager(),
                            parameterValues, state, query.getParsedImports(), clr,
                            candidateAlias));

                    int result = ((Comparable)a).compareTo(b);
                    if (result != 0)
View Full Code Here

TOP

Related Classes of org.datanucleus.query.evaluator.memory.InMemoryExpressionEvaluator

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.