Package org.apache.ojb.odmg.shared

Examples of org.apache.ojb.odmg.shared.TestClassB


  {
    long start = System.currentTimeMillis();
    for (int i = 0; i < ITERATIONS; i++)
    {
      TestClassA tca = generateTestData();
      TestClassB tcb = tca.getB();
      TestClassA copy = (TestClassA) m_scs.copy(tca, m_pb);
    }
    long stop = System.currentTimeMillis();
    System.out.println("testSerializedCopy took: " + (stop - start));
    start = System.currentTimeMillis();
    for (int i = 0; i < ITERATIONS; i++)
    {
      TestClassA tca = generateTestData();
      TestClassB tcb = tca.getB();
      TestClassA copy = (TestClassA) m_mdcs.copy(tca, m_pb);
    }
    stop = System.currentTimeMillis();
    System.out.println("testMetadataCopy took: " + (stop - start));
    start = System.currentTimeMillis();
    for (int i = 0; i < ITERATIONS; i++)
    {
      TestClassA tca = generateTestData();
      TestClassB tcb = tca.getB();
      TestClassA copy = (TestClassA) m_rcs.copy(tca, m_pb);
    }
    stop = System.currentTimeMillis();
    System.out.println("testReflectiveCopy took: " + (stop - start));
  }
View Full Code Here


        tca.setOid("someoid");
        tca.setValue1("abc");
        tca.setValue2("123");
        tca.setValue3(5);
        _conn.makePersistent(tca);
        TestClassB tcb = new TestClassB();
        tcb.setOid("boid");
        tcb.setValue1("hi there");
        _conn.makePersistent(tcb);
        tca.setB(tcb);
      }
      tx.commit();
      m_tca = tca;
View Full Code Here

TOP

Related Classes of org.apache.ojb.odmg.shared.TestClassB

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.