Package java.util

Examples of java.util.HashMap.values()


      }     
      HashMap updatedMapping = new HashMap()
      if (crontabFile.canRead())
        converter.cronFile2SchedulerXML(crontabFile, updatedMapping);
      logger.debug1("updating changed jobs");
      Iterator updatedJobsIterator = updatedMapping.values().iterator();
      while (updatedJobsIterator.hasNext()){
        Element updatedJob = (Element) updatedJobsIterator.next();
        String updatedJobName = updatedJob.getAttribute("name");
        // this job will be updated an doesn't need to be deleted afterwards
        changedJobNames.remove(updatedJobName);
View Full Code Here


                }
            }
        }
        if (unvalidated.size() > 0)
        {
            throw new MissingColumnException(this, unvalidated.values());
        }

        state = TABLE_STATE_VALIDATED;
        if (NucleusLogger.DATASTORE.isDebugEnabled())
        {
View Full Code Here

          element.setFileName(elem.getName());
        }
      }
    }
   
    mediaFilesTableModel = new MediaFilesTableModel(new ArrayList(files.values()), getTranslator());
    mediaFilesTableModel.addColumnDescriptors(mediaTableCtr);
    mediaTableCtr.setTableDataModel(mediaFilesTableModel);
    mediaTableCtr.setSortColumn(3, false);
    mediaTableCtr.modelChanged();
  }
View Full Code Here

                // Build fields and mappings in the results
                StatementMappingIndex[] stmtMappings =
                    new StatementMappingIndex[acmd.getNoOfManagedMembers() + acmd.getNoOfInheritedManagedMembers()];

                Set fields = new HashSet();
                fields.addAll(fieldColumns.values());
                int[] fieldNumbers = new int[fields.size()];
                Iterator it = fields.iterator();
                int j=0;
                while (it.hasNext())
                {
View Full Code Here

     
      int grantCounter = 0;
      Iterator it = grants.iterator();
      while(it.hasNext()){
        HashMap map = (HashMap) it.next();
        String grant = map.values().iterator().next().toString();
        String newGrant = grant.replaceAll("TO '"+userLeft+"'@", "TO '"+newUserName+"'@");
        newGrant = newGrant.replaceAll("@'"+userRight+"'", "@'"+ip+"'");
        newGrant = newGrant.replaceAll("BY PASSWORD '.*'", "BY '"+password+"'");
        try{
          getLogger().debug6("Original GRANT statement: "+grant);
View Full Code Here

        String revokes[] = new String[grants.size()];
        int counter = grants.size() - 1;
        for(Iterator it = grants.iterator(); it.hasNext();)
        {
            HashMap map = (HashMap)it.next();
            String grant = map.values().iterator().next().toString();
            String revoke = grant.replaceAll(" WITH GRANT OPTION", " ");
            revoke = revoke.replaceAll("GRANT ", "REVOKE ");
            revoke = revoke.replaceAll(" TO ", " FROM ");
            revokes[counter] = revoke;
            counter--;
View Full Code Here

             ((Image) I.next()).dispose();
        m_ClassImageMap.clear();
        //
        for (Iterator I = m_ImageToDecoratorMap.values().iterator(); I.hasNext();) {
      HashMap decoratedMap = (HashMap) I.next();
      for (Iterator J = decoratedMap.values().iterator(); J.hasNext();) {
        Image image = (Image) J.next();
        image.dispose();
      }
    }
    }
View Full Code Here

                    }
                }
               
                // Remove tables, table constraints and views in
                // reverse order from which they were created
                Iterator viewsIter = viewsByName.values().iterator();
                while (viewsIter.hasNext())
                {
                    ViewImpl view = (ViewImpl)viewsIter.next();
                    if (writer != null)
                    {
View Full Code Here

                // Invalidate the cached information for this table since it now has a new column
                storeMgr.invalidateColumnInfoForTable(this);
            }
            else
            {
                MissingColumnException mce = new MissingColumnException(this, unvalidated.values());
                if (autoCreateErrors != null)
                {
                    autoCreateErrors.add(mce);
                }
                else
View Full Code Here

        spooler_log.debug9(line);
        stderrOutput.append( line + "\n");
      }

      // get children of parent pid
      Iterator pelIter = pidMap.values().iterator();
      while (pelIter.hasNext()){
        PsEfLine current = (PsEfLine) pelIter.next();
        PsEfLine parent = (PsEfLine) pidMap.get(new Integer(current.parentPid));
        if (parent!=null) {
          spooler_log.debug9("Child of "+parent.pid+" is "+current.pid);
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.