Package org.apache.jdo.tck.pc.singlefieldidentity

Examples of org.apache.jdo.tck.pc.singlefieldidentity.FullTimeEmployee


            return;
        }
        pm = getPM();
        pm.currentTransaction().begin();
        // create an instance of FullTimeEmployee.
        FullTimeEmployee instance = new FullTimeEmployee();
        instance.setPersonid(1000000L);
        instance.setFirstname("Full");
        instance.setLastname("Timer");
        instance.setBirthdate(new Date());
        pm.makePersistent(instance);
        pm.currentTransaction().commit();
        oid = (LongIdentity)pm.getObjectId(instance);
        id = oid.getKey();
        pm.close();
View Full Code Here


        try {
            pm = getPM();
            pm.currentTransaction().begin();
            // create the oid
            Object rightOid = new LongIdentity(FullTimeEmployee.class, id);
            FullTimeEmployee rightInstance =
                    (FullTimeEmployee)pm.getObjectById(rightOid, true);
            rightInstance.toString();
        } catch (JDOException ex) {
            appendMessage(ASSERTION_FAILED + " getObjectById not exact "
                    + "for right class must succeed.");
        }
        finally {
View Full Code Here

        try {
            pm = getPM();
            pm.currentTransaction().begin();
            // create the oid
            Object rightOid = new LongIdentity(FullTimeEmployee.class, id);
            FullTimeEmployee rightInstance =
                    (FullTimeEmployee)pm.getObjectById(rightOid, false);
            rightInstance.toString();
        } catch (JDOException ex) {
            appendMessage(ASSERTION_FAILED + " getObjectById exact "
                    + "for right class must succeed.");
        }
        finally {
View Full Code Here

TOP

Related Classes of org.apache.jdo.tck.pc.singlefieldidentity.FullTimeEmployee

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.