Package javax.jdo

Examples of javax.jdo.FetchGroup


                printFetchGroup(fg),
                64, fg.getRecursionDepth("manager"));
    }

    public void testPostLoad() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testPostLoad");
        assertFalse("New FetchGroup should have post-load false; "
                + printFetchGroup(fg),
                fg.getPostLoad());
        fg.setPostLoad(true);
        assertTrue("After setPostLoad(true) FetchGroup should have post-load true; "
                + printFetchGroup(fg),
                fg.getPostLoad());
        fg.setPostLoad(false);
        assertFalse("After setPostLoad, FetchGroup should have post-load false; "
                + printFetchGroup(fg),
                fg.getPostLoad());
    }
View Full Code Here


                + printFetchGroup(fg),
                fg.getPostLoad());
    }

    public void testUnmodifiableSetPostLoad() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableSetPostLoad");
        fg.setUnmodifiable();
        try {
            fg.setPostLoad(true);
            fail("Unmodifiable FetchGroup should throw on setPostLoad.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableAddMember() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableAddMember");
        fg.setUnmodifiable();
        try {
            fg.addMember("hiredate");
            fail("Unmodifiable FetchGroup should throw on addMember.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableAddMembers() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableAddMembers");
        fg.setUnmodifiable();
        try {
            fg.addMembers(allMembers);
            fail("Unmodifiable FetchGroup should throw on addMembers.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableRemoveMember() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableRemoveMember");
        fg.addMembers(allMembers);
        fg.setUnmodifiable();
        try {
            fg.removeMember("hiredate");
            fail("Unmodifiable FetchGroup should throw on removeMember.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableRemoveMembers() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableRemoveMembers");
        fg.addMembers(allMembers);
        fg.setUnmodifiable();
        try {
            fg.removeMembers(allMembers);
            fail("Unmodifiable FetchGroup should throw on removeMembers.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableAddCategory() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableAddCategory");
        fg.setUnmodifiable();
        try {
            fg.addCategory(FetchGroup.ALL);
            fail("Unmodifiable FetchGroup should throw on addCategory.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableRemoveCategory() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableRemoveCategory");
        fg.addCategory(FetchGroup.ALL);
        fg.setUnmodifiable();
        try {
            fg.removeCategory(FetchGroup.ALL);
            fail("Unmodifiable FetchGroup should throw on removeCategory.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

            // good catch!
        }
    }

    public void testUnmodifiableSetUnmodifiable() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testUnmodifiableSetUnmodifiable");
        fg.setUnmodifiable();
        fg.setUnmodifiable(); // should be ok
    }
View Full Code Here

        fg.setUnmodifiable(); // should be ok
    }

    public void testPMGetFetchGroupClassNotPersistenceCapable() {
        try {
            FetchGroup fg = pm.getFetchGroup(Integer.class, "testPMGetFetchGroupClassNotPersistenceCapable");
            fail("getFetchGroup should throw on nonPersistenceCapable class.");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

TOP

Related Classes of javax.jdo.FetchGroup

Copyright © 2018 www.massapicom. 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.