Examples of find()


Examples of org.jayasoft.woj.portal.data.dao.security.GroupDao.find()

        try {
            ClufImpl cluf = ServiceFactory.getLicenseService().getActiveCluf();
            License l = licenseDao.createTrial();
           
            Group group = (Group) groupDao.find(groupId);
//            l.setHostId(hostId); No Host
            UserImpl user = (UserImpl)userDao.findUser(userLogged.getLogin());
            userDao.fetch(user);
            if ((user.getLastAcceptedCluf() == null) ||
                cluf.getVersion().equals(user.getLastAcceptedCluf().getVersion())) {
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.DroneContext.find()

    }

    public void after(@Observes After event) {
        DroneContext context = droneContext.get();
        LifecycleFilter lifecycleFilter = new LifecycleFilter(DronePoint.Lifecycle.METHOD);
        FilterableResult<Object> dronePoints = context.find(Object.class).filter(lifecycleFilter);

        for (DronePoint<?> dronePoint : dronePoints) {
            destroyDroneCommand.fire(new DestroyDrone(dronePoint));
        }
    }
View Full Code Here

Examples of org.jboss.dna.graph.property.BinaryFactory.find()

                    if (skip) {
                        skippedLargeValues.read(valueFactories, hash, length);
                    } else {
                        BinaryFactory factory = valueFactories.getBinaryFactory();
                        // Look for an already-loaded Binary value with the same hash ...
                        value = factory.find(hash);
                        if (value == null) {
                            // Didn't find an existing large value, so we have to read the large value ...
                            value = largeValues.read(valueFactories, hash, length);
                        }
                    }
View Full Code Here

Examples of org.jboss.embedded.test.vfs.DAO.find()

      jar.addResources(DAO.class, includes, null);
      jar.mkdir("META-INF").addResource("vfs-test-persistence.xml", "persistence.xml");
      Bootstrap.getInstance().deploy(jar);
      DAO dao = (DAO)new InitialContext().lookup("DAOBean/local");
      dao.create("Bill");
      Customer cust = dao.find("Bill");
      assertNotNull(cust);

   }
}
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.ConcurrentMethodsMetaData.find()

      }
      ConcurrentMethodsMetaData concurrentMethods = sessionBean.getConcurrentMethods();
      if(concurrentMethods == null)
         return null;
      // get the concurrency method metadata for this named method
      ConcurrentMethodMetaData concurrentMethodMetaData = concurrentMethods.find(namedMethod);
      AccessTimeoutMetaData accessTimeoutMetaData = null;
      // if this named method did not have concurrency metadata or access timeout metadata, then
      // check for the method named "*" and see if that has the access timeout set
      if (concurrentMethodMetaData == null || concurrentMethodMetaData.getAccessTimeout() == null)
      {
View Full Code Here

Examples of org.jboss.seam.example.booking.HotelSearching.find()

      HotelSearching hs = new HotelSearchingAction();
     
      setField(hs, "em", em);
     
      hs.setSearchString("atlanta");
      hs.find();
     
      List<Hotel> hotels = (List<Hotel>) getField(hs, "hotels");
      assert hotels!=null;
      assert hotels.size()==3;
     
View Full Code Here

Examples of org.jboss.seam.example.booking.HotelSearchingAction.find()

      HotelSearching hs = new HotelSearchingAction();
     
      setField(hs, "em", em);
     
      hs.setSearchString("atlanta");
      hs.find();
     
      List<Hotel> hotels = (List<Hotel>) getField(hs, "hotels");
      assert hotels!=null;
      assert hotels.size()==3;
     
View Full Code Here

Examples of org.jboss.seam.framework.EntityIdentifier.find()

                invokeMethod("#{countryHome.persist}");
                Country country = (Country) getValue("#{countryHome.instance}");
                EntityManager entityManager = (EntityManager) getValue("#{countryHome.entityManager}");
               
                EntityIdentifier entityIdentifier = new EntityIdentifier(country, entityManager);
                assert "foo".equals(((Country) entityIdentifier.find(entityManager)).getName());
                EntityIdentifier entityIdentifier2 = new EntityIdentifier(country, entityManager);
                assert entityIdentifier.equals(entityIdentifier2);
            }
           
        }.run();
View Full Code Here

Examples of org.jboss.seam.framework.HibernateEntityIdentifier.find()

                invokeMethod("#{countryHome.persist}");
                Country country = (Country) getValue("#{countryHome.instance}");
                Session session =  (Session) getValue("#{countryHome.entityManager.delegate}");
               
                HibernateEntityIdentifier hibernateEntityIdentifier = new HibernateEntityIdentifier(country, session);
                assert "foo".equals(((Country) hibernateEntityIdentifier.find(session)).getName());
                HibernateEntityIdentifier hibernateEntityIdentifier2 = new HibernateEntityIdentifier(country, session);
                assert hibernateEntityIdentifier.equals(hibernateEntityIdentifier2);
            }
           
        }.run();
View Full Code Here

Examples of org.jboss.seam.framework.Identifier.find()

         throw new IllegalStateException("Unable to get a Persistence Context to load Entity. Make sure you have an SMPC called entityManager configured in components.xml (or have correctly configured s:convertEntity to use another SMPC).");
      }
      Identifier identifier = EntityIdentifierStore.instance().get(key);
      if (identifier != null)
      {
         return identifier.find(getPersistenceContext());
      }
      else
      {
         return null;
      }
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.