Examples of readProperty()


Examples of org.apache.cayenne.reflect.ArcProperty.readProperty()

                        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

Examples of org.apache.cayenne.reflect.ArcProperty.readProperty()

                        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

Examples of org.apache.cayenne.reflect.ArcProperty.readProperty()

            List relatedObjects = Collections.EMPTY_LIST;

            ArcProperty property = (ArcProperty) descriptor.getProperty(relationship
                    .getName());
            Object related = property.readProperty(object);

            if (relationship.isToMany()) {

                List toMany = (List) related;
                if (toMany.size() > 0) {
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

                throw new CayenneRuntimeException(errorMessage.toString());
            }

            // this should trigger fault resolving
            propertyDescriptor.readProperty(object);
        }
    }

    public abstract void propertyChanged(
            Persistent object,
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

                        // its
                        // relationships were manipulated; so try to locate the object in
                        // the
                        // collection ...
                        // the performance of this is rather dubious of course...
                        target = findObjectInCollection(targetNodeId, property
                                .readProperty(source));
                    }

                    if (target == null) {
                        // ignore?
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

        if (o instanceof Persistent) {

            Property property = getProperty((Persistent) o, propertyName);

            if (property != null) {
                return property.readProperty(o);
            }
        }

        // handling non-persistent property
        return PropertyUtils.getProperty(o, propertyName);
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

                throw new CayenneRuntimeException(errorMessage.toString());
            }

            // this should trigger fault resolving
            propertyDescriptor.readProperty(object);
        }
    }

    public void propertyChanged(
            Persistent object,
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

                throw new CayenneRuntimeException(errorMessage.toString());
            }

            // this should trigger fault resolving
            propertyDescriptor.readProperty(object);
        }
    }

    public abstract void propertyChanged(
            Persistent object,
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

                        // its
                        // relationships were manipulated; so try to locate the object in
                        // the
                        // collection ...
                        // the performance of this is rather dubious of course...
                        target = findObjectInCollection(targetNodeId, property
                                .readProperty(source));
                    }

                    if (target == null) {
                        // ignore?
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.readProperty()

        if (o instanceof Persistent) {

            Property property = getProperty((Persistent) o, propertyName);

            if (property != null) {
                return property.readProperty(o);
            }
        }

        // handling non-persistent property
        return PropertyUtils.getProperty(o, propertyName);
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.