Package org.apache.jdo.tck.pc.mylib

Examples of org.apache.jdo.tck.pc.mylib.PCPoint2


            tx.setRetainValues(false);
            tx.begin();
            p1   = new PCPoint(1,1);
            p1print = p1.toString();
            p2   = new PCPoint(2,2);
            p3   = new PCPoint2(3,3);
            rect = new PCRect(100, p1, p2);
            pm.makePersistent(p1);
            pm.makePersistent(p2);
            pm.makePersistent(p3);
            pm.makePersistent(rect);
View Full Code Here


        printUnsupportedOptionalFeatureNotTested("EvictingWithRetainValuesFalse", "javax.jdo.option.RetainValues");
      }
    else
    {
          pm = getPM();
      PCPoint2 pt = getHollowInstance();

      Transaction tx = pm.currentTransaction();
      tx.setRetainValues(false); //This should cause eviction of transactional instances when transaction is later commited.
           
      //Test
View Full Code Here

  /** */
    private PCPoint2 getHollowInstance() {
        Transaction tx = pm.currentTransaction();
        tx.begin();
        PCPoint2 pt = new PCPoint2(1,2);
        pm.makePersistent(pt);
        tx.commit();

    int curr = currentState(pt);
      if (curr != HOLLOW){
View Full Code Here

            for (int i = 0; i < NO_OF_INSTANCES; i++) {
                PCPoint obj = new PCPoint(i, i);
                pm.makePersistent(obj);
            }
            for (int i = 0; i < NO_OF_INSTANCES; i++) {
                PCPoint2 obj = new PCPoint2(i, i);
                pm.makePersistent(obj);
            }
            tx.commit();
            tx = null;
        }
View Full Code Here

    /** */
    private void createObjects(PersistenceManager pm) {
        Transaction tx = pm.currentTransaction();
        try {
            tx.begin();
            pnt1 = new PCPoint2(1,3);
            p1   = new PCPoint2 (3,5);
            pm.makePersistent(pnt1);
            pm.makePersistent(p1);
            tx.commit();

            // P-nontransactional instance
View Full Code Here

    /** */
    private void createObjects(PersistenceManager pm) {
        Transaction tx = pm.currentTransaction();
        try {
            tx.begin();
            pnt1 = new PCPoint2(1,2);
            pnt2 = new PCPoint2(2,3);
            p1   = new PCPoint2 (3,1);
            p2   = new PCPoint2 (4,2);
            pm.makePersistent(pnt1);
            pm.makePersistent(pnt2);
            pm.makePersistent(p1);
            pm.makePersistent(p2);
            tx.commit();
View Full Code Here

                    getClass().getName(), "javax.jdo.option.RetainValues");
      }
    else
    {
          pm = getPM();
      PCPoint2 pt = getHollowInstance();

      Transaction tx = pm.currentTransaction();
      tx.setRetainValues(false); //This should cause eviction of transactional instances when transaction is later commited.
           
      //Test
View Full Code Here

  /** */
    private PCPoint2 getHollowInstance() {
        Transaction tx = pm.currentTransaction();
        tx.begin();
        PCPoint2 pt = new PCPoint2(1,2);
        pm.makePersistent(pt);
        tx.commit();

    int curr = currentState(pt);
      if (curr != HOLLOW){
View Full Code Here

            tx.setRetainValues(false);
            tx.begin();
            p1   = new PCPoint(1,1);
            p1print = p1.toString();
            p2   = new PCPoint(2,2);
            p3   = new PCPoint2(3,3);
            rect = new PCRect(100, p1, p2);
            pm.makePersistent(p1);
            pm.makePersistent(p2);
            pm.makePersistent(p3);
            pm.makePersistent(rect);
View Full Code Here

    }

    /** */
    public void test() {
        pm = getPM();
    PCPoint2 pt = getHollowInstance();

    Transaction tx = pm.currentTransaction();
    tx.setRestoreValues(false); //This should cause eviction of transactional instances when transaction is later rolled back.
         
    //Test
View Full Code Here

TOP

Related Classes of org.apache.jdo.tck.pc.mylib.PCPoint2

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.