Examples of joinSuperclass()


Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

    protected Joins join(Joins joins, ClassMapping elem) {
        ValueMapping vm = field.getElementMapping();
        ForeignKey fk = vm.getForeignKey(elem);
        ClassMapping owner = field.getDefiningMapping();
        while (fk.getPrimaryKeyTable() != owner.getTable()) {
            joins = owner.joinSuperclass(joins, false);
            owner = owner.getJoinablePCSuperclassMapping();
            if (owner == null)
                throw new InternalException();
        }
        return joins.joinRelation(field.getName(), fk, elem,
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

                        to = owner;
                    }

                    for (; from != null && from != to;
                        from = from.getJoinablePCSuperclassMapping())
                        pstate.joins = from.joinSuperclass(pstate.joins, false);
                }
                // nothing more to do from here on as we encountered an xpath action
                if (action.op == Action.GET_XPATH)
                    break;
            }
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

                        from = from.getJoinablePCSuperclassMapping()) {
                      FieldMapping cast = from.getFieldMapping(pstate.field
                          .getName());
                      if (cast != null)
                        pstate.field = cast;
                        pstate.joins = from.joinSuperclass(pstate.joins, false);
                    }
                }
                // nothing more to do from here on as we encountered an xpath
                // action
                if (action.op == Action.GET_XPATH)
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

    protected Joins join(Joins joins, ClassMapping elem) {
        ValueMapping vm = field.getElementMapping();
        ForeignKey fk = vm.getForeignKey(elem);
        ClassMapping owner = field.getDefiningMapping();
        while (fk.getPrimaryKeyTable() != owner.getTable()) {
            joins = owner.joinSuperclass(joins, false);
            owner = owner.getJoinablePCSuperclassMapping();
            if (owner == null)
                throw new InternalException();
        }
        return joins.joinRelation(field.getName(), fk, elem,
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

                        from = from.getJoinablePCSuperclassMapping()) {
                      FieldMapping cast = from.getFieldMapping(pstate.field
                          .getName());
                      if (cast != null)
                        pstate.field = cast;
                        pstate.joins = from.joinSuperclass(pstate.joins, false);
                    }
                }
                // nothing more to do from here on as we encountered an xpath
                // action
                if (action.op == Action.GET_XPATH)
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

    protected Joins join(Joins joins, ClassMapping elem) {
        ValueMapping vm = field.getElementMapping();
        ForeignKey fk = vm.getForeignKey(elem);
        ClassMapping owner = field.getDefiningMapping();
        while (fk.getPrimaryKeyTable() != owner.getTable()) {
            joins = owner.joinSuperclass(joins, false);
            owner = owner.getJoinablePCSuperclassMapping();
            if (owner == null)
                throw new InternalException();
        }
        return joins.joinRelation(field.getName(), fk, elem,
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

                        from = from.getJoinablePCSuperclassMapping()) {
                      FieldMapping cast = from.getFieldMapping(pstate.field
                          .getName());
                      if (cast != null)
                        pstate.field = cast;
                        pstate.joins = from.joinSuperclass(pstate.joins, false);
                    }
                }
                // nothing more to do from here on as we encountered an xpath
                // action
                if (action.op == Action.GET_XPATH)
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

                        from = from.getJoinablePCSuperclassMapping()) {
                      FieldMapping cast = from.getFieldMapping(pstate.field
                          .getName());
                      if (cast != null)
                        pstate.field = cast;
                        pstate.joins = from.joinSuperclass(pstate.joins, false);
                    }
                }
                // nothing more to do from here on as we encountered an xpath
                // action
                if (action.op == Action.GET_XPATH)
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

    protected Joins join(Joins joins, ClassMapping elem) {
        ValueMapping vm = field.getElementMapping();
        ForeignKey fk = vm.getForeignKey(elem);
        ClassMapping owner = field.getDefiningMapping();
        while (fk.getPrimaryKeyTable() != owner.getTable()) {
            joins = owner.joinSuperclass(joins, false);
            owner = owner.getJoinablePCSuperclassMapping();
            if (owner == null)
                throw new InternalException();
        }
        return joins.joinRelation(field.getName(), fk, elem,
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMapping.joinSuperclass()

                        from = from.getJoinablePCSuperclassMapping()) {
                      FieldMapping cast = from.getFieldMapping(pstate.field
                          .getName());
                      if (cast != null)
                        pstate.field = cast;
                        pstate.joins = from.joinSuperclass(pstate.joins, false);
                    }
                }
                // nothing more to do from here on as we encountered an xpath action
                if (action.op == Action.GET_XPATH)
                    break;
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.