Package java.util

Examples of java.util.Map.clear()


      {
         for (Iterator i = nameMap.entrySet().iterator(); i.hasNext(); )
         {
            Map.Entry entry = (Map.Entry)i.next();
            Map typeMap = (Map)entry.getValue();
            typeMap.clear();
         }
         nameMap.clear();
      }
   }
  
View Full Code Here


         cl.getManagedConnection().associateConnection(cr.connection);
         registerAssociation(cl, cr.connection);
         cr.setConnectionListener(cl);
      }
      criToCLMap.clear();//not needed logically, might help the gc.
   }

   public void disconnect(Collection crs, Set unsharableResources) throws ResourceException
   {
      // if we have an unshareable connection do not remove the association
View Full Code Here

      {
         lock.readLock().lock();
         try
         {
            Map state = getCurrentState(true);
            state.clear();
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

    }

    public void clear(FileSystem filesystem)
    {
        Map files = getOrCreateFilesystemCache(filesystem);
        files.clear();
    }

    protected Map getOrCreateFilesystemCache(FileSystem filesystem)
    {
        Map files = (Map) filesystemCache.get(filesystem);
View Full Code Here

        synchronized (this)
        {
            // System.err.println(">>> clear fs " + filesystem);

            Map files = getOrCreateFilesystemCache(filesystem);
            files.clear();

            filesystemCache.remove(filesystem);
        }
    }
View Full Code Here

            isToCallPostLoadFetchPlanByCmd = new SoftValueMap();
        }
        Map cachedIsToCallPostLoadFetchPlan = isToCallPostLoadFetchPlanByCmd.get(cmd);
        if (cachedIsToCallPostLoadFetchPlan != null)
        {
            cachedIsToCallPostLoadFetchPlan.clear();
        }
    }
}
View Full Code Here

      if (res.isError())
        throw new Exception(res.getErrorMessage());


      // insert into ACC06...
      attribute2dbField.clear();

      attribute2dbField.put("companyCodeSys01ACC06","COMPANY_CODE_SYS01");
      attribute2dbField.put("progressiveAcc05ACC06","PROGRESSIVE_ACC05");
      attribute2dbField.put("itemYearAcc05ACC06","ITEM_YEAR_ACC05");
      attribute2dbField.put("progressiveACC06","PROGRESSIVE");
View Full Code Here

                 "DOC07_PURCHASE_ITEMS.VARIANT_CODE_ITM12='*' AND " +
                 "DOC07_PURCHASE_ITEMS.VARIANT_CODE_ITM13='*' AND " +
                 "DOC07_PURCHASE_ITEMS.VARIANT_CODE_ITM14='*' AND " +
                 "DOC07_PURCHASE_ITEMS.VARIANT_CODE_ITM15='*' ";

             attribute2dbField.clear();
             attribute2dbField.put("companyCodeSys01ITM01","ITM01_ITEMS.COMPANY_CODE_SYS01");
             attribute2dbField.put("itemCodeITM01","ITM01_ITEMS.ITEM_CODE");
             attribute2dbField.put("descriptionSYS10","SYS10_COMPANY_TRANSLATIONS.DESCRIPTION");
             attribute2dbField.put("barCodeITM01","ITM01_ITEMS.BAR_CODE");
             attribute2dbField.put("serialNumberRequiredITM01","ITM01_ITEMS.SERIAL_NUMBER_REQUIRED");
View Full Code Here

                 "DOC02_SELLING_ITEMS.VARIANT_CODE_ITM12='*' AND " +
                 "DOC02_SELLING_ITEMS.VARIANT_CODE_ITM13='*' AND " +
                 "DOC02_SELLING_ITEMS.VARIANT_CODE_ITM14='*' AND " +
                 "DOC02_SELLING_ITEMS.VARIANT_CODE_ITM15='*' ";

             attribute2dbField.clear();
             attribute2dbField.put("companyCodeSys01ITM01","ITM01_ITEMS.COMPANY_CODE_SYS01");
             attribute2dbField.put("itemCodeITM01","ITM01_ITEMS.ITEM_CODE");
             attribute2dbField.put("descriptionSYS10","SYS10_COMPANY_TRANSLATIONS.DESCRIPTION");
             attribute2dbField.put("barCodeITM01","ITM01_ITEMS.BAR_CODE");
             attribute2dbField.put("serialNumberRequiredITM01","ITM01_ITEMS.SERIAL_NUMBER_REQUIRED");
View Full Code Here

        assertEquals( 0,
                      agenda.focusSize() );

        /* reset agenda and results map */
        agenda.clearAgenda();
        results.clear();

        /*
         * This is recursive so a rule should be able to activate itself
         */
        rule1.setNoLoop( false );
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.