Package org.apache.cayenne.profile.entity

Examples of org.apache.cayenne.profile.entity.Entity1


            HttpServletResponse response) {
       
       

        for (int i = 600; i < 1100; i++) {
            Entity1 o = (Entity1) DataObjectUtils.objectForPK(context, Entity1.class, i);

            assertNotNull("No object for id: " + i, o);

            o.setDescription("x_" + suffix++);
        }

        context.commitChanges();
    }
View Full Code Here


        context.commitChanges();
    }

    protected void doInsert(DataContext context) {
        Entity1 e = (Entity1) context.newObject(Entity1.class);
        e.setName("X" + System.currentTimeMillis());
    }
View Full Code Here

        Entity1 e = (Entity1) context.newObject(Entity1.class);
        e.setName("X" + System.currentTimeMillis());
    }

    protected void doUpdate(DataContext context) {
        Entity1 e = getRandomObject(context);
        if (e != null) {
            e.setName("Y" + System.currentTimeMillis());
        }
    }
View Full Code Here

            e.setName("Y" + System.currentTimeMillis());
        }
    }

    protected void doDelete(DataContext context) {
        Entity1 e = getRandomObject(context);
        if (e != null) {
            context.deleteObject(e);
        }
    }
View Full Code Here

            DataContext context,
            HttpServletRequest request,
            HttpServletResponse response) {

        for (int i = 0; i < 500; i++) {
            Entity1 e = (Entity1) context.newObject(Entity1.class);
            e.setName("Name_" + i);
            e.setDescription("Desc_" + i);
        }

        context.commitChanges();
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.profile.entity.Entity1

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.