Package org.jboss.test.bmp.interfaces

Examples of org.jboss.test.bmp.interfaces.SimpleBMPHome.findAll()


        
         for (int i = 0; i < 10; ++i)
            assertEquals(beans[i].getPrimaryKey(), beans[i].getIdViaEJBObject());

         getLog().debug ("removing all beans:");
         Iterator it = home.findAll ().iterator ();
         while (it.hasNext ())
            ((SimpleBMP)it.next ()).remove ();
      }
      finally
      {
View Full Code Here


         b1.setName ("Maria");
         getLog().debug ("name new: " + b1.getName ());
       
        
         getLog().debug ("find all beans:");
         Iterator it = home.findAll ().iterator ();
         while (it.hasNext ())
         {
            getLog().debug ("found:"+((SimpleBMP)it.next ()).getName ());
         }           
View Full Code Here

         getLog().debug (session.doTest ());
         getLog().debug ("Getting the name after a rollback:");
         getLog().debug (session.doTestAfterRollback ());

         getLog().debug ("removing all beans:");
         it = home.findAll ().iterator ();
         while (it.hasNext ())
            ((SimpleBMP)it.next ()).remove ();
        
         SimpleBMP b2 = home.create(200, "Dave");
         assertFalse("ejbStore() should not be invoked during ejbPostCreate()", b2.isEjbStoreInvoked());
View Full Code Here

      tempEjbStoreInvoked = false;
      // Do a find all to see whether ejbStore gets invoked
      SimpleBMPHome home = (SimpleBMPHome) ctx.getEJBHome();
      try
      {
         home.findAll();
      }
      catch (FinderException e)
      {
         throw new RemoteException("Unexpected error invoking findAll", e);
      }
View Full Code Here

      getLog().debug ("name old: " + b1.getName ());
      b1.setName ("Maria");
      assertTrue("getName == Maria", "Maria".equals(b1.getName ()));

      getLog().debug(++test+"- find all beans:");
      Iterator it = home.findAll ().iterator ();
      while (it.hasNext ())
      {
         getLog().debug ("found:"+((SimpleBMP)it.next ()).getName ());
      }
View Full Code Here

      getLog().debug(++test+"- get name after rollback ");
      getLog().debug (session.doTestAfterRollback ());

      getLog().debug(++test+"- removing all beans");
      it = home.findAll ().iterator ();
      while (it.hasNext ())
         ((SimpleBMP)it.next ()).remove ();

      getLog().debug ("drop table...");
      session.dropSimpleBeanTable();
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.