Examples of readPropertyDirectly()


Examples of org.apache.cayenne.lifecycle.db.UuidRoot1.readPropertyDirectly()

        ReferenceableHandler refHandler = new ReferenceableHandler(context
                .getEntityResolver());
        UuidRelationshipHandler handler = new UuidRelationshipHandler(refHandler);
        handler.relate(r1, e1);

        assertSame(e1, r1.readPropertyDirectly("cay:related:uuid"));

        context.commitChanges();

        int id = Cayenne.intPKForObject(e1);
        assertFalse(1 == id);
View Full Code Here

Examples of org.apache.cayenne.profile.entity.Entity3.readPropertyDirectly()

        assertEquals(200, results.size());

        Iterator it = results.iterator();
        while (it.hasNext()) {
            Entity3 e3 = (Entity3) it.next();
            assertTrue(e3.readPropertyDirectly("entity2") instanceof Fault);
            e3.getEntity2().getName();
            assertFalse(e3.readPropertyDirectly("entity2") instanceof Fault);
        }
    }
}
View Full Code Here

Examples of org.apache.cayenne.property.ArcProperty.readPropertyDirectly()

                        ArcProperty property = (ArcProperty) descriptor
                                .getProperty(relationshipQuery.getRelationshipName());

                        if (!property.isFault(object)) {

                            Object related = property.readPropertyDirectly(object);

                            List result;

                            // null to-one
                            if (related == null) {
View Full Code Here

Examples of org.apache.cayenne.property.Property.readPropertyDirectly()

        Persistent object = (Persistent) context.getGraphManager().getNode(nodeId);
        if (object != null && object.getPersistenceState() != PersistenceState.HOLLOW) {

            // do not override local changes....
            Property p = propertyForId(nodeId, property);
            if (Util.nullSafeEquals(p.readPropertyDirectly(object), oldValue)) {
                p.writePropertyDirectly(object, oldValue, newValue);
            }
        }
    }
View Full Code Here

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

                        ArcProperty property = (ArcProperty) descriptor
                                .getProperty(relationshipQuery.getRelationshipName());

                        if (!property.isFault(object)) {

                            Object related = property.readPropertyDirectly(object);

                            List result;

                            // null to-one
                            if (related == null) {
View Full Code Here

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

                        ArcProperty property = (ArcProperty) descriptor
                                .getProperty(relationshipQuery.getRelationshipName());

                        if (!property.isFault(object)) {

                            Object related = property.readPropertyDirectly(object);

                            List result;

                            // null to-one
                            if (related == null) {
View Full Code Here

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

                        ArcProperty property = (ArcProperty) descriptor
                                .getProperty(relationshipQuery.getRelationshipName());

                        if (!property.isFault(object)) {

                            Object related = property.readPropertyDirectly(object);

                            List result;

                            // null to-one
                            if (related == null) {
View Full Code Here

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

                    while (mapArcProperties.hasNext()) {
                        ArcProperty arc = mapArcProperties.next();
                        ToManyMapProperty reverseArc = (ToManyMapProperty) arc
                                .getComplimentaryReverseArc();

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

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

        Object object = context.internalGraphManager().getNode(nodeId);
        if (object != null) {

            // do not override local changes....
            Property p = propertyForId(nodeId, property);
            if (Util.nullSafeEquals(p.readPropertyDirectly(object), oldValue)) {

                p.writePropertyDirectly(object, oldValue, newValue);
            }
        }
    }
View Full Code Here

Examples of org.apache.cayenne.reflect.PropertyDescriptor.readPropertyDirectly()

        Object object = context.internalGraphManager().getNode(nodeId);
        if (object != null) {

            // do not override local changes....
            PropertyDescriptor p = propertyForId(nodeId, property);
            if (Util.nullSafeEquals(p.readPropertyDirectly(object), oldValue)) {

                p.writePropertyDirectly(object, oldValue, newValue);
            }
        }
    }
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.