retval.append(q.getAliases().get(ref.getQueryClass())) .append(".") .append(ref.getFieldName()); if (ref.getSubclass() != null) { Class<?> subclass = ref.getSubclass();
retval.append(q.getAliases().get(ref.getQueryClass())) .append(".") .append(ref.getFieldName()); if (ref.getSubclass() != null) { Class<?> subclass = ref.getSubclass();
FastPathObject o = (FastPathObject) row.get(startingPoint); try { InterMineObject ref = (InterMineObject) o.getFieldProxy(qope.getFieldName()); if (ref != null) { idsToFetch.add(ref.getId()); Integer refId = null; try { InterMineObject ref = (InterMineObject) o.getFieldProxy(qope.getFieldName()); if (ref != null) { refId = ref.getId(); + o + " field: " + qope.getFieldName());
FastPathObject o = (FastPathObject) row.get(startingPoint); try { InterMineObject ref = (InterMineObject) o.getFieldProxy(qope.getFieldName()); if (ref != null) { idsToFetch.add(ref.getId()); Integer refId = null; try { InterMineObject ref = (InterMineObject) o.getFieldProxy(qope.getFieldName()); if (ref != null) { refId = ref.getId(); + o + " field: " + qope.getFieldName());
obj = new QueryForeignKey(((QueryObjectPathExpression) obj) .getQueryClass(), ((QueryObjectPathExpression) obj) .getFieldName()); } else { QueryObjectPathExpression ref = (QueryObjectPathExpression) obj;
obj = new QueryForeignKey(((QueryObjectPathExpression) obj) .getQueryClass(), ((QueryObjectPathExpression) obj) .getFieldName()); } else { QueryObjectPathExpression ref = (QueryObjectPathExpression) obj;
QueryClass rootQc = qope.getQueryClass(); QueryHelper.addAndConstraint(subQ, new ContainsConstraint( new QueryObjectReference(rootQc, qope.getFieldName()), ConstraintOp.CONTAINS, lastQc)); if (qope.getConstraint() != null) { QueryClass rootQc = qope.getQueryClass(); QueryHelper.addAndConstraint(tempSubQ, new ContainsConstraint( new QueryObjectReference(rootQc, qope.getFieldName()), ConstraintOp.CONTAINS, lastQc)); if (qope.getConstraint() != null) {
QueryClass rootQc = qope.getQueryClass(); QueryHelper.addAndConstraint(subQ, new ContainsConstraint( new QueryObjectReference(rootQc, qope.getFieldName()), ConstraintOp.CONTAINS, lastQc)); if (qope.getConstraint() != null) { QueryClass rootQc = qope.getQueryClass(); QueryHelper.addAndConstraint(tempSubQ, new ContainsConstraint( new QueryObjectReference(rootQc, qope.getFieldName()), ConstraintOp.CONTAINS, lastQc)); if (qope.getConstraint() != null) {
QueryObjectPathExpression pe2 = (QueryObjectPathExpression) qc2; checkQueryNodes(msg + ": QueryClasses of QueryObjectPathExpressions don't match", pe1.getQueryClass(), pe2.getQueryClass(), q1, q2); Assert.assertEquals(msg + ": QueryObjectPathExpression fieldnames are not equal", pe1.getFieldName(), pe2.getFieldName()); checkQueryClassLists(msg + ": QueryObjectPathExpression SELECT lists are not equal", pe1.getSelect(), pe2.getSelect(), q1, q2); checkConstraints(msg + ": QueryObjectPathExpression constraints are not equal", pe1.getConstraint(), pe2.getConstraint(), q1, q2);
QueryObjectPathExpression origC = (QueryObjectPathExpression) orig; QueryObjectPathExpression retval = new QueryObjectPathExpression((QueryClass) fromElementMap.get(origC.getQueryClass()), origC.getFieldName()); Map<FromElement, FromElement> subFromElementMap = new HashMap<FromElement, FromElement>();
QueryObjectPathExpression origC = (QueryObjectPathExpression) orig; QueryObjectPathExpression retval = new QueryObjectPathExpression((QueryClass) fromElementMap.get(origC.getQueryClass()), origC.getFieldName()); Map<FromElement, FromElement> subFromElementMap = new HashMap<FromElement, FromElement>();