Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.Project


                    // store target object
                    /*
                    store some complex objects to check if references to
                    metadata classes are cached
                    */
                    Project project = new Project();
                    project.setTitle(title);

                    Person p1 = new Person();
                    p1.setFirstname(title);
                    List l1 = new ArrayList();
                    l1.add(project);
View Full Code Here


    resetStmtCount();
    myPB.clearCache();
    myPB.beginTransaction();
    Person pers = new Person();
    pers.setFirstname("testPersonSingleProjectInsert(1)");
    Project proj = new Project();
    proj.setTitle("testPersonSingleProjectInsert(1)");
    myPB.store(pers);
    myPB.store(proj);
    logStmtCount("Storing first person and first project");
    // 12. oma: why so many? double lookup in OJB_HL_SEQ !
    resetStmtCount();
    pers = new Person();
    Project proj2 = new Project();
    proj2.setTitle("proj2");
    Collection projects = Arrays.asList(new Project[] {proj2});
    pers.setProjects(projects);
    myPB.store(pers, ObjectModification.INSERT);
    myPB.commitTransaction();
    // INSERT INTO PERSON (ID,FIRSTNAME,LASTNAME) VALUES ('292','','')
View Full Code Here

    resetStmtCount();
    myPB.clearCache();
    myPB.beginTransaction();
    Person pers = new Person();
    pers.setFirstname("testPersonSingleProjectInsert(1)");
    Project proj = new Project();
    proj.setTitle("testPersonSingleProjectInsert(1)");
    myPB.store(pers);
    myPB.store(proj);
    logStmtCount("Storing first person and first project");
    // 12. oma: why so many? double lookup in OJB_HL_SEQ !
    resetStmtCount();
    pers = new Person();
    Project proj2 = new Project();
    proj2.setTitle("proj2");
    Collection projects = Arrays.asList(new Project[] {proj2});
    pers.setProjects(projects);
    myPB.store(pers, ObjectModificationDefaultImpl.INSERT);
    myPB.commitTransaction();
    // INSERT INTO PERSON (ID,FIRSTNAME,LASTNAME) VALUES ('292','','')
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.Project

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.