Examples of invalidateObjects()


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

        assertSame(a1, p1.getToArtist());

        context.commitChanges();
        ObjectId aid = a1.getObjectId();
        ObjectId pid = p1.getObjectId();
        context.invalidateObjects(Arrays.asList(a1, p1));

        Painting1 p2 = (Painting1) DataObjectUtils.objectForPK(context, pid);
        Artist a2 = p2.getToArtist();
        assertNotNull(a2);
        assertEquals(aid, a2.getObjectId());
View Full Code Here

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

        target.setRoot2(src2);

        src.addToDeps(target);
        context.commitChanges();

        context.invalidateObjects(Arrays.asList(src, target, src2));

        ToManyFkRoot src1 = (ToManyFkRoot) DataObjectUtils.objectForPK(context, src
                .getObjectId());
        assertNotNull(src1.getDeps());
        assertEquals(1, src1.getDeps().size());
View Full Code Here

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

Examples of org.jets3t.service.CloudFrontService.invalidateObjects()

        // Invalidate objects in a distribution to force CloudFront to fetch the
        // latest object data from the S3 origin.
        String[] objectKeys = new String[] {"downloads.html"};

        Invalidation invalidation = cloudFrontService.invalidateObjects(
            testDistributionId,
            objectKeys,
            "" + System.currentTimeMillis() // Caller reference - a unique string value
            );
        System.out.println(invalidation);
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.