Package org.apache.jdo.tck.pc.company

Examples of org.apache.jdo.tck.pc.company.Person


    /** */
    private void createObjects(PersistenceManager pm) {
        Transaction tx = pm.currentTransaction();
        tx.begin();
        Date date = new Date();
        Person p1 = new Person(1L, "Craig", "Russell", null, date, null);
        Employee p2 = new FullTimeEmployee(2L, "Michael", "Bouschen", null, date, null, date, 0.0);
        Employee p3 = new PartTimeEmployee(3L, "Michelle", "Caisse", null, date, null, date, 0.0);
        Employee p4 = new FullTimeEmployee(4L, "Victor", "Kirkebo", null, date, null, date, 0.0);
        pm.makePersistent(p1);
        pm.makePersistent(p2);
View Full Code Here


        boolean foundMichael = false;
        boolean foundMichelle = false;
        boolean foundVictor = false;

        for (Iterator i = e.iterator(); i.hasNext();) {
            Person p = (Person) i.next();
            if ((p.getFirstname().equals("Craig")) && (p.getLastname().equals("Russell")))
                foundCraig=true;
            else if ((p.getFirstname().equals("Michael")) && (p.getLastname().equals("Bouschen")))
                foundMichael=true;
            else if ((p.getFirstname().equals("Michelle")) && (p.getLastname().equals("Caisse")))
                foundMichelle=true;
            else if ((p.getFirstname().equals("Victor")) && (p.getLastname().equals("Kirkebo")))
                foundVictor=true;
        }

        if (!foundCraig) {
            fail(ASSERTION_FAILED,
View Full Code Here

    /** */
    private void createObjects(PersistenceManager pm) {
        Transaction tx = pm.currentTransaction();
        tx.begin();
        Date date = new Date();
        Person p1 = new Person(1L, "Craig", "Russell", null, date, null);
        Employee p2 = new FullTimeEmployee(2L, "Michael", "Bouschen", null, date, null, date, 0.0);
        Employee p3 = new PartTimeEmployee(3L, "Michelle", "Caisse", null, date, null, date, 0.0);
        Employee p4 = new FullTimeEmployee(4L, "Victor", "Kirkebo", null, date, null, date, 0.0);
        pm.makePersistent(p1);
        pm.makePersistent(p2);
View Full Code Here

        boolean foundMichael = false;
        boolean foundMichelle = false;
        boolean foundVictor = false;

        for (Iterator i = e.iterator(); i.hasNext();) {
            Person p = (Person) i.next();
            if ((p.getFirstname().equals("Craig")) && (p.getLastname().equals("Russell")))
                foundCraig=true;
            else if ((p.getFirstname().equals("Michael")) && (p.getLastname().equals("Bouschen")))
                foundMichael=true;
            else if ((p.getFirstname().equals("Michelle")) && (p.getLastname().equals("Caisse")))
                foundMichelle=true;
            else if ((p.getFirstname().equals("Victor")) && (p.getLastname().equals("Kirkebo")))
                foundVictor=true;
        }

        if (!foundCraig) {
            fail(ASSERTION_FAILED,
View Full Code Here

TOP

Related Classes of org.apache.jdo.tck.pc.company.Person

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.