Examples of findAll()


Examples of org.jboss.test.cts.interfaces.CtsBmpHome.findAll()

      getLog().debug("Build Container MBX for BMP");
      mbx = new ContainerMBox()

      getLog().debug("Initialize to empty BMP table.");
      CtsBmpHome home = getHome();
      Collection clct = home.findAll();
      if (clct.size() != 0) {
         getLog().debug("Removing " + clct.size() + " old beans.");
         for (Iterator itr=clct.iterator(); itr.hasNext();) {
            CtsBmp bean = (CtsBmp)itr.next();
            bean.remove();
View Full Code Here

Examples of org.jboss.test.readahead.interfaces.CMPFindTestEntityHome.findAll()

   public void removeTestData() {
      try {
         InitialContext ctx = new InitialContext();
         CMPFindTestEntityHome home = (CMPFindTestEntityHome)ctx.lookup("CMPFindTestEntity");
        
         Collection coll = home.findAll();
         Iterator iter = coll.iterator();
         while (iter.hasNext()) {
            CMPFindTestEntityRemote rem = (CMPFindTestEntityRemote)iter.next();
           
            rem.remove();
View Full Code Here

Examples of org.jboss.test.testbean2.interfaces.AllTypesHome.findAll()

      getLog().debug("OK");

      getLog().debug("Testing automatically generated finders");

      getLog().debug(++test+"- "+"findAll()..");
      coll = allTypesHome.findAll();
      assertTrue(coll.contains(allTypes));
      getLog().debug("OK");

      getLog().debug(++test+"- "+"findByPrimaryKey()...");
      AllTypes result = allTypesHome.findByPrimaryKey("seb");
View Full Code Here

Examples of org.jregex.Matcher.findAll()

                public Object activate(IokeObject method, Object on, List<Object> args, Map<String, Object> keywords, IokeObject context, IokeObject message) throws ControlFlow {
                    String arg = Text.getText(Interpreter.send(context.runtime.asText, context, args.get(0)));
                    Matcher m = ((Regexp)IokeObject.data(on)).regexp.matcher(arg);

                    List<Object> result = new ArrayList<Object>();
                    MatchIterator iter = m.findAll();
                    Runtime runtime = context.runtime;
                    while(iter.hasMore()) {
                        result.add(runtime.newText(iter.nextMatch().group(0)));
                    }
View Full Code Here

Examples of org.kuali.rice.krad.service.BusinessObjectService.findAll()

    final String statusGd = "Good";
    Status status3 = new Status(1l, statusGd);
    statusList.add(status1);
    statusList.add(status2);
    statusList.add(status3);
    when(boSvc.findAll(same(Status.class))).thenReturn(statusList);
   
    List<KeyValue> keyValuesResult = keyValuesHelper.getKeyValues(marriageClassName, scopedClass);
    String [] expectedStatusArray = {statusChristian, statusFulfld, statusGd};
    testKeyValuesResult(expectedStatusArray, keyValuesResult);
   
View Full Code Here

Examples of org.ngrinder.script.repository.FileEntryRepository.findAll()

  @Override
  public List<FileEntry> getLibAndResourceEntries(User user, FileEntry scriptEntry, long revision) {
    List<FileEntry> fileList = newArrayList();
    String basePath = getBasePath(scriptEntry);
    FileEntryRepository fileEntryRepository = getFileEntryRepository();
    for (FileEntry eachFileEntry : fileEntryRepository.findAll(user, basePath + RESOURCES, revision, true)) {
      FileType fileType = eachFileEntry.getFileType();
      if (fileType.isResourceDistributable()) {
        fileList.add(eachFileEntry);
      }
    }
View Full Code Here

Examples of org.ofbiz.entity.GenericDelegator.findAll()

        LocalDispatcher dispatcher = dctx.getDispatcher();
        Map result = FastMap.newInstance();
       
        List glAccounts = FastList.newInstance();
        try {
      glAccounts = delegator.findAll("GlAccount");
    } catch (GenericEntityException e) {
            Debug.logError(e.getMessage(), module);
    }
    result.put("glAccounts", glAccounts);
    result.put("glAccountCount", glAccounts.size());
View Full Code Here

Examples of org.palo.viewapi.internal.IRoleManagement.findAll()

  public HashMap<String, String> initializeRoles(String sessionId)
      throws SessionExpiredException {
    IRoleManagement rm = MapperRegistry.getInstance().getRoleManagement();
    HashMap <String, String> result = new HashMap<String, String>();
    try {
      for (Role r: rm.findAll()) {
        result.put(r.getName(), r.getId());   
      }
    } catch (Throwable t) {     
    }
    return result;
View Full Code Here

Examples of org.platformlayer.core.model.Tags.findAll()

    }
    OpenstackComputeClient computeClient = openstack.getComputeClient(cloud);

    getRecursionState().pushChildScope(cloud);

    List<String> assignedInstanceIds = instanceTags.findAll(Tag.ASSIGNED);
    if (assignedInstanceIds.isEmpty()) {
      if (createInstance && !OpsContext.isDelete()) {
        MachineCreationRequest request = buildMachineCreationRequest();

        PlatformLayerKey instanceKey = instance.getKey();
View Full Code Here

Examples of org.sikuli.api.DesktopScreenRegion.findAll()

   
    target = new ImageTarget(Images.UncheckedCheckbox);
    target.setLimit(15);
    target.setOrdering(Target.Ordering.BOTTOM_UP);
   
    rs = s.findAll(target);
   
    canvas.addLabel(Relative.to(s).topLeft().getScreenLocation(), "Unchecked checkboxes found in bottom-up ordering");
    for (int i=0; i < rs.size(); ++i){
      ScreenRegion r = rs.get(i);
      canvas.addBox(r);
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.