Package org.apache.cayenne.reflect

Examples of org.apache.cayenne.reflect.ToManyMapProperty


                    modifiedSnapshots.put(finalId, dataRow);

                    // update Map reverse relationships
                    for (ArcProperty arc : descriptor.getMapArcProperties()) {
                        ToManyMapProperty reverseArc = (ToManyMapProperty) arc
                                .getComplimentaryReverseArc();

                        // must resolve faults... hopefully for to-one this will not cause
                        // extra fetches...
                        Object source = arc.readProperty(object);
                        if (source != null && !reverseArc.isFault(source)) {
                            remapTarget(reverseArc, source, object);
                        }
                    }
                }
            }
View Full Code Here


            if (!mapArcProperties.isEmpty()) {

                Object object = getNode(id);

                for (ArcProperty arc : mapArcProperties) {
                    ToManyMapProperty reverseArc = (ToManyMapProperty) arc
                            .getComplimentaryReverseArc();

                    Object source = arc.readPropertyDirectly(object);
                    if (source != null && !reverseArc.isFault(source)) {
                        remapTarget(reverseArc, source, object);
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.reflect.ToManyMapProperty

Copyright © 2018 www.massapicom. 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.