/** * When a PCPath is in subselect, and it is simply a navigation * from the parent root, the joins involved in this PCPath * must happen in the main select. */ private boolean navigateFromParentRootInSubselect(Select sel) { if (sel.getParent() == null) return false; Iterator itr = (_actions == null) ? null : _actions.iterator(); boolean hasVar = false; boolean startsWithSubquery = false; while (itr != null && itr.hasNext()) { Action action = (Action) itr.next(); if (action.op == Action.VAR) hasVar = true; else if (action.op == Action.SUBQUERY) startsWithSubquery = true; } return !hasVar && !startsWithSubquery && sel.ctx().getSchema(_schemaAlias) == null; }
/** * When a PCPath is in subselect, and it is simply a navigation * from the parent root, the joins involved in this PCPath * must happen in the main select. */ private boolean navigateFromParentRootInSubselect(Select sel) { if (sel.getParent() == null) return false; Iterator itr = (_actions == null) ? null : _actions.iterator(); boolean hasVar = false; boolean startsWithSubquery = false; while (itr != null && itr.hasNext()) { Action action = (Action) itr.next(); if (action.op == Action.VAR) hasVar = true; else if (action.op == Action.SUBQUERY) startsWithSubquery = true; } return !hasVar && !startsWithSubquery && sel.ctx().getSchema(_schemaAlias) == null; }
/** * When a PCPath is in subselect, and it is simply a navigation * from the parent root, the joins involved in this PCPath * must happen in the main select. */ private boolean navigateFromParentRootInSubselect(Select sel) { if (sel.getParent() == null) return false; Iterator itr = (_actions == null) ? null : _actions.iterator(); boolean hasVar = false; boolean startsWithSubquery = false; while (itr != null && itr.hasNext()) { Action action = (Action) itr.next(); if (action.op == Action.VAR) hasVar = true; else if (action.op == Action.SUBQUERY) startsWithSubquery = true; } return !hasVar && !startsWithSubquery && sel.ctx().getSchema(_schemaAlias) == null; }
/** * When a PCPath is in subselect, and it is simply a navigation * from the parent root, the joins involved in this PCPath * must happen in the main select. */ private boolean navigateFromParentRootInSubselect(Select sel) { if (sel.getParent() == null) return false; Iterator itr = (_actions == null) ? null : _actions.iterator(); boolean hasVar = false; boolean startsWithSubquery = false; while (itr != null && itr.hasNext()) { Action action = (Action) itr.next(); if (action.op == Action.VAR) hasVar = true; else if (action.op == Action.SUBQUERY) startsWithSubquery = true; } return !hasVar && !startsWithSubquery && sel.ctx().getSchema(_schemaAlias) == null; }
private String findSubqAlias(Select sel) { Select pSel = sel.getParent(); if (pSel == null) return null; Context pCtx = pSel.ctx(); if (pCtx.subquery == null) return null; if (pCtx.getSchema(_schemaAlias) != null) return ((SubQ)pCtx.subquery).getCandidateAlias(); return findSubqAlias(pSel); }
private String findSubqAlias(Select sel) { Select pSel = sel.getParent(); if (pSel == null) return null; Context pCtx = pSel.ctx(); if (pCtx.subquery == null) return null; if (pCtx.getSchema(_schemaAlias) != null) return ((SubQ)pCtx.subquery).getCandidateAlias(); return findSubqAlias(pSel); }
private String findSubqAlias(Select sel) { Select pSel = sel.getParent(); if (pSel == null) return null; Context pCtx = pSel.ctx(); if (pCtx.subquery == null) return null; if (pCtx.getSchema(_schemaAlias) != null) return ((SubQ)pCtx.subquery).getCandidateAlias(); return findSubqAlias(pSel); }
private String findSubqAlias(Select sel) { Select pSel = sel.getParent(); if (pSel == null) return null; Context pCtx = pSel.ctx(); if (pCtx.subquery == null) return null; if (pCtx.getSchema(_schemaAlias) != null) return ((SubQ)pCtx.subquery).getCandidateAlias(); return findSubqAlias(pSel); }
ctx().getSchema(name.toLowerCase()) == null) { if (ctx().subquery != null && inAssignSubselectProjection) thiz = factory.newPath(ctx().subquery);
ctx().getSchema(name.toLowerCase()) == null) { if (ctx().subquery != null && inAssignSubselectProjection) thiz = factory.newPath(ctx().subquery);
ctx().getSchema(name.toLowerCase()) == null) { if (ctx().subquery != null && inAssignSubselectProjection) thiz = factory.newPath(ctx().subquery);
ctx().getSchema(name.toLowerCase()) == null) { if (ctx().subquery != null && inAssignSubselectProjection) thiz = factory.newPath(ctx().subquery);