Package org.jboss.test.cmp2.batchcascadedelete.ejb

Examples of org.jboss.test.cmp2.batchcascadedelete.ejb.GrandchildHome.create()


   public void testHsqldbKeyGenerator() throws Exception
   {
      UnknownPKLocalHome home = getUnknownPKHome("local/TestHsqldbEJB");
      UnknownPKLocal ejb1 = home.create("testHsqldbKeyGenerator");
      UnknownPKLocal ejb2 = home.create("testHsqldbKeyGenerator");
      try
      {
         UnknownPKLocal ejb1a = home.findByPrimaryKey(ejb1.getPrimaryKey());
         assertTrue(ejb1.isIdentical(ejb1a));
         assertTrue(ejb1.isIdentical(ejb2) == false);
View Full Code Here


   public void testBug1006723() throws Exception
   {
      InitialContext ctx = new InitialContext();
      TestSessionRemoteHome testSessionRemoteHome = (TestSessionRemoteHome)
         PortableRemoteObject.narrow(ctx.lookup("ejb/TestSession"), TestSessionRemoteHome.class);
      TestSessionRemote testSessionRemote = testSessionRemoteHome.create();
      Long oID = testSessionRemote.setup();
      testSessionRemote.test(oID);
   }

   public void testNullLockedFields() throws Exception
View Full Code Here

            + ", integerGroup2=" + integerGroup2
            + ", doubleGroup2=" + doubleGroup2);
      }

      CmpEntityLocalHome entityHome = getCmpEntityHome(jndiName);
      entityHome.create(id, stringGroup1, integerGroup1, doubleGroup1,
         stringGroup2, integerGroup2, doubleGroup2);
   }

   /**
    * @ejb.interface-method
 
View Full Code Here

            homeObject,
            RapidlyPassivatedEntityHome.class);

      mEntities = new ArrayList(getBeanCount());
      for (int i = 0, n = getBeanCount(); i < n; ++i)
         mEntities.add(home.create("nothing to see here"));

   }
}
View Full Code Here

   // Tests -----------------------------------------
   public void testCheckBookBalance() throws Exception
   {
      InitialContext ctx = getInitialContext();
      CheckBookMgrHome home = (CheckBookMgrHome) ctx.lookup("cmp2/perf/CheckBookMgrHome");
      CheckBookMgr mgr = home.create("Acct123456789USD", 10000);
      long start = System.currentTimeMillis();
      int entryCount = mgr.getEntryCount();
      double balance = mgr.getBalance();
      long end = System.currentTimeMillis();
      double expectedBalance = 10000 - entryCount;
View Full Code Here

            checkBook = home.findByPrimaryKey(account);
         }
         catch(FinderException e)
         {
            log.info("Failed to find CheckBook for: "+account);
            checkBook = home.create(account, balance);
            // Populate the check book
            LocalCheckBookEntryHome home2 = (LocalCheckBookEntryHome) enc.lookup("ejb/LocalCheckBookEntryHome");
            populateCheckBook(home2);
         }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.