Examples of readProperty()


Examples of org.apache.art.Artist.readProperty()

        assertEquals(PersistenceState.HOLLOW, a1.getPersistenceState());
        assertEquals(PersistenceState.HOLLOW, a2.getPersistenceState());

        assertTrue(((ValueHolder) a1.readProperty(Artist.PAINTING_ARRAY_PROPERTY))
                .isFault());
        assertTrue(((ValueHolder) a2.readProperty(Artist.PAINTING_ARRAY_PROPERTY))
                .isFault());
    }

    public void testRefreshCollectionToOne() throws Exception {
        deleteTestData();
View Full Code Here

Examples of org.apache.art.Artist.readProperty()

                .getSharedSnapshotCache()
                .getCachedSnapshot(a1.getObjectId()));

        assertEquals(PersistenceState.HOLLOW, a1.getPersistenceState());

        assertTrue(((ValueHolder) a1.readProperty(Artist.PAINTING_ARRAY_PROPERTY))
                .isFault());
    }

    public void testRefreshObjectToMany() throws Exception {
        deleteTestData();
View Full Code Here

Examples of org.apache.art.Painting.readProperty()

            assertEquals(24, paintings.size());

            // see that artists are resolved...

            Painting px = (Painting) paintings.get(3);
            Artist ax = (Artist) px.readProperty(Painting.TO_ARTIST_PROPERTY);
            assertEquals(PersistenceState.COMMITTED, ax.getPersistenceState());
        }
        finally {
            unblockQueries();
        }
View Full Code Here

Examples of org.apache.art.Painting.readProperty()

        blockQueries();
        try {
            assertEquals(1, paintings.size());

            Painting p2 = (Painting) paintings.get(0);
            assertNull(p2.readProperty(Painting.TO_ARTIST_PROPERTY));
        }
        finally {
            unblockQueries();
        }
    }
View Full Code Here

Examples of org.apache.cayenne.DataObject.readProperty()

            DataObject next = (DataObject) it.next();
            assertEquals(PersistenceState.COMMITTED, next.getPersistenceState());

            int id = Cayenne.intPKForObject(next);
            if (id == modifiedId) {
                assertEquals("MODDED", next.readProperty(Artist.ARTIST_NAME_PROPERTY));
            }
        }
    }

    public void testReadToOneRelationship() throws Exception {
View Full Code Here

Examples of org.apache.cayenne.DataObject.readProperty()

            DataObject next = (DataObject) it.next();
            assertEquals(PersistenceState.COMMITTED, next.getPersistenceState());

            int id = Cayenne.intPKForObject(next);
            if (id == modifiedId) {
                assertEquals("MODDED", next.readProperty(Artist.ARTIST_NAME_PROPERTY));
            }
        }
    }

    public void testReadToOneRelationship() throws Exception {
View Full Code Here

Examples of org.apache.cayenne.DataObject.readProperty()

                if (reflexiveRelName == null) {
                    continue;
                }

                masters[k] = (reflexiveRelName != null) ? current
                        .readProperty(reflexiveRelName) : null;

                if (masters[k] == null) {
                    masters[k] = findReflexiveMaster(current, (ObjRelationship) objEntity
                            .getRelationship(reflexiveRelName), current
View Full Code Here

Examples of org.apache.cayenne.DataObject.readProperty()

            DataObject next = (DataObject) it.next();
            assertEquals(PersistenceState.COMMITTED, next.getPersistenceState());

            int id = Cayenne.intPKForObject(next);
            if (id == 33003) {
                assertEquals("MODDED", next.readProperty(Artist.ARTIST_NAME_PROPERTY));
            }
        }
    }

    public void testReadToOneRelationship() throws Exception {
View Full Code Here

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

        assertFalse(1 == id);

        Object[] r1x = rootTable.select();
        assertEquals("E1:" + id, r1x[1]);
        assertEquals("E1:" + id, r1.getUuid());
        assertSame(e1, r1.readProperty("cay:related:uuid"));
    }
}
View Full Code Here

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

        assertFalse(1 == id);

        Object[] r1x = rootTable.select();
        assertEquals("E1:" + id, r1x[1]);
        assertEquals("E1:" + id, r1.getUuid());
        assertSame(e1, r1.readProperty("cay:related:uuid"));
    }
}
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.