/** * Traverse into the previous field of a relation path. * * @param last whether this is the last field in the path * @return the mapping of the related type, or null */ private ClassMapping traverseField(PathExpState pstate, boolean key, boolean forceOuter, boolean last) { if (pstate.field == null) return null; // traverse into field value if (key) pstate.joins = pstate.field.joinKey(pstate.joins, forceOuter); else pstate.joins = pstate.field.join(pstate.joins, forceOuter); // if this isn't the last field, traverse into the relation if (!last) joinRelation(pstate, key, forceOuter, true); // return the maping of the related type, if any if (key) return pstate.field.getKeyMapping().getTypeMapping(); if (pstate.field.getElement().getTypeCode() == JavaTypes.PC) return pstate.field.getElementMapping().getTypeMapping(); return pstate.field.getTypeMapping(); }
/** * Traverse into the previous field of a relation path. * * @param last whether this is the last field in the path * @return the mapping of the related type, or null */ private ClassMapping traverseField(PathExpState pstate, boolean key, boolean forceOuter, boolean last) { if (pstate.field == null) return null; // traverse into field value if (key) pstate.joins = pstate.field.joinKey(pstate.joins, forceOuter); else pstate.joins = pstate.field.join(pstate.joins, forceOuter); // if this isn't the last field, traverse into the relation if (!last) joinRelation(pstate, key, forceOuter, true); // return the maping of the related type, if any if (key) return pstate.field.getKeyMapping().getTypeMapping(); if (pstate.field.getElement().getTypeCode() == JavaTypes.PC) return pstate.field.getElementMapping().getTypeMapping(); return pstate.field.getTypeMapping(); }
/** * Traverse into the previous field of a relation path. * * @param last whether this is the last field in the path * @return the mapping of the related type, or null */ private ClassMapping traverseField(PathExpState pstate, boolean key, boolean forceOuter, boolean last) { if (pstate.field == null) return null; // traverse into field value if (key) pstate.joins = pstate.field.joinKey(pstate.joins, forceOuter); else pstate.joins = pstate.field.join(pstate.joins, forceOuter); // if this isn't the last field, traverse into the relation if (!last) joinRelation(pstate, key, forceOuter, true); // return the maping of the related type, if any if (key) return pstate.field.getKeyMapping().getTypeMapping(); if (pstate.field.getElement().getTypeCode() == JavaTypes.PC) return pstate.field.getElementMapping().getTypeMapping(); return pstate.field.getTypeMapping(); }
/** * Traverse into the previous field of a relation path. * * @param last whether this is the last field in the path * @return the mapping of the related type, or null */ private ClassMapping traverseField(PathExpState pstate, boolean key, boolean forceOuter, boolean last) { if (pstate.field == null) return null; // traverse into field value if (key) pstate.joins = pstate.field.joinKey(pstate.joins, forceOuter); else pstate.joins = pstate.field.join(pstate.joins, forceOuter); // if this isn't the last field, traverse into the relation if (!last) joinRelation(pstate, key, forceOuter, true); // return the maping of the related type, if any if (key) return pstate.field.getKeyMapping().getTypeMapping(); if (pstate.field.getElement().getTypeCode() == JavaTypes.PC) return pstate.field.getElementMapping().getTypeMapping(); return pstate.field.getTypeMapping(); }
/** * Traverse into the previous field of a relation path. * * @param last whether this is the last field in the path * @return the mapping of the related type, or null */ private ClassMapping traverseField(PathExpState pstate, boolean key, boolean forceOuter, boolean last) { if (pstate.field == null) return null; // traverse into field value if (key) pstate.joins = pstate.field.joinKey(pstate.joins, forceOuter); else pstate.joins = pstate.field.join(pstate.joins, forceOuter); // if this isn't the last field, traverse into the relation if (!last) joinRelation(pstate, key, forceOuter, true); // return the maping of the related type, if any if (key) return pstate.field.getKeyMapping().getTypeMapping(); if (pstate.field.getElement().getTypeCode() == JavaTypes.PC) return pstate.field.getElementMapping().getTypeMapping(); return pstate.field.getTypeMapping(); }
pstate.joinedRel = false; if ((flags & JOIN_REL) != 0) joinRelation(pstate, key, forceOuter || (flags & FORCE_OUTER) != 0, false); return pstate;
pstate.joinedRel = false; if ((flags & JOIN_REL) != 0) joinRelation(pstate, key, forceOuter || (flags & FORCE_OUTER) != 0, false); if (isCorrelatedPath) {
pstate.joinedRel = false; if ((flags & JOIN_REL) != 0) joinRelation(pstate, key, forceOuter || (flags & FORCE_OUTER) != 0, false); if (isCorrelatedPath) {
pstate.joinedRel = false; if ((flags & JOIN_REL) != 0) joinRelation(pstate, key, forceOuter || (flags & FORCE_OUTER) != 0, false); if (isCorrelatedPath) {
pstate.joinedRel = false; if ((flags & JOIN_REL) != 0) joinRelation(pstate, key, forceOuter || (flags & FORCE_OUTER) != 0, false); if (isCorrelatedPath) {
if (!pstate.joinedRel && pstate.field.getKey().getValueMappedBy() != null) joinRelation(pstate, _key, false, false); else if (pstate.joinedRel && pstate.field.getKey().getTypeCode() == JavaTypes.PC)
if (!pstate.joinedRel && pstate.field.getKey().getValueMappedBy() != null) joinRelation(pstate, _key, false, false); else if (pstate.joinedRel && pstate.field.getKey().getTypeCode() == JavaTypes.PC)
if (!pstate.joinedRel && pstate.field.getKey().getValueMappedBy() != null) joinRelation(pstate, _key, false, false); else if (pstate.joinedRel && pstate.field.getKey().getTypeCode() == JavaTypes.PC)
if (!pstate.joinedRel && pstate.field.getKey().getValueMappedBy() != null) joinRelation(pstate, _key, false, false); else if (pstate.joinedRel && pstate.field.getKey().getTypeCode() == JavaTypes.PC)
if (!pstate.joinedRel && pstate.field.getKey().getValueMappedBy() != null) joinRelation(pstate, _key, false, false); else if (pstate.joinedRel && pstate.field.getKey().getTypeCode() == JavaTypes.PC)