Package org.objectweb.medor.query.jorm.lib

Examples of org.objectweb.medor.query.jorm.lib.QueryBuilder.project()


            }
        }

        try {
            String n = iv.alias + "." + Field.PNAMENAME;
            fields.put(n, theqb.project(iv.alias, define(theqb, iv.alias, iv.alias)));
            for (int i = 0; i < iv.getDeclaredPathLength(); i++) {
                String path = iv.getMergedPath(i);
                if (!testcontains.contains(path) && !isEmptys.contains(path)) {
                    fields.put(path, theqb.project(path, define(theqb, path, null)));
                }
View Full Code Here


            String n = iv.alias + "." + Field.PNAMENAME;
            fields.put(n, theqb.project(iv.alias, define(theqb, iv.alias, iv.alias)));
            for (int i = 0; i < iv.getDeclaredPathLength(); i++) {
                String path = iv.getMergedPath(i);
                if (!testcontains.contains(path) && !isEmptys.contains(path)) {
                    fields.put(path, theqb.project(path, define(theqb, path, null)));
                }
          }
        } catch (Exception e) {
            throw new SpeedoException("Error during the parsing of JDOQL:", e);
        }
View Full Code Here

            }
            String[] spli = splitPath(pathset);
            String rest = mergePath(spli, 1, spli.length - 1);
            QueryBuilder subquery = new QueryBuilder(qb);
            subquery.define("", qb.navigate(spli[0]));
            QueryTreeField setField = subquery.project(subquery.navigate(rest));
            Expression e = new MemberOf(
                    Collections.singletonList(((Object[]) params.get(name))[1]),
                    Collections.singletonList(new BasicFieldOperand(setField)));
            if (debug) {
                logger.log(BasicLevel.DEBUG, tab + "push(" + ExpressionPrinter.e2str(e) + ")");
View Full Code Here

                } else {
                    //x.y.bs.contains(u.v.b)
                    String rest = mergePath(spli, 1, spli.length - 2);
                    QueryBuilder subquery = new QueryBuilder(qb);
                    subquery.define("", qb.navigate(spli[0]));
                    QueryTreeField setField = subquery.project(subquery.navigate(rest));
                    QueryTreeField f = (QueryTreeField) fields.get(name);

                    stack.push(new MemberOf(
                            Collections.singletonList(
                                    new BasicFieldOperand(f)),
View Full Code Here

               logger.log(BasicLevel.DEBUG, tab + "Visit IsEmpty: " + begin);
            }
            String rest = mergePath(splitted, 1, splitted.length - 2);
            QueryBuilder subquery = new QueryBuilder(qb);
            subquery.define("", qb.navigate(splitted[0]));
            Field f = subquery.project(subquery.navigate(rest));
            stack.push(new IsEmpty(new BasicFieldOperand(f)));
            return;
        }
               
        if (debug) {
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.