Package org.apache.cayenne.access

Examples of org.apache.cayenne.access.DataContext.invalidateObjects()


        assertNotNull(src1.getDeps());
        assertEquals(1, src1.getDeps().size());
        // resolve HOLLOW
        assertSame(src1, ((ToManyFkDep) src1.getDeps().get(0)).getRoot());

        context.invalidateObjects(Arrays.asList(src1, src1.getDeps().get(0)));

        ToManyFkDep target2 = (ToManyFkDep) DataObjectUtils.objectForPK(context, target
                .getObjectId());
        assertNotNull(target2.getRoot());
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.