Package java.util

Examples of java.util.LinkedHashMap$AbstractMapIterator


      return map;
   }
  
   protected Map getDefaultDDLStatements()
   {
      Map map = new LinkedHashMap();
      map.put("CREATE_USER_TABLE",
              "CREATE TABLE JBM_USER (USER_ID VARCHAR(32) NOT NULL, PASSWD VARCHAR(32) NOT NULL, CLIENTID VARCHAR(128)," +
              " PRIMARY KEY(USER_ID))");
      map.put("CREATE_ROLE_TABLE",
              "CREATE TABLE JBM_ROLE (ROLE_ID VARCHAR(32) NOT NULL, USER_ID VARCHAR(32) NOT NULL," +
              " PRIMARY KEY(USER_ID, ROLE_ID))");
      return map;
   }
View Full Code Here


      replicatedData = new HashMap();

      replicationListeners = new LinkedHashSet();

      failoverMap = new LinkedHashMap();

      leftSet = new HashSet();

      nbSupport = new NotificationBroadcasterSupport();
View Full Code Here

         m = (Map)replicatedData.get(key);

         if (m == null)
         {
            m = new LinkedHashMap();

            replicatedData.put(key, m);
         }

         m.put(new Integer(originatorNodeID), replicant);
View Full Code Here

         Serializable key = (Serializable)entry.getKey();

         Map replicants = (Map)entry.getValue();

         Map m = new LinkedHashMap();

         m.putAll(replicants);

         copy.put(key, m);
      }

      return copy;
View Full Code Here

  /**
   * Create cache
   */
  public Cache(Type type) {
      this.type = type;
      cache = new LinkedHashMap();
  }
View Full Code Here

        super.setVariable("headers", headers);
    }

    @SuppressWarnings("unchecked")
    private Map collectParams(HttpServletRequest request) {
        Map params = new LinkedHashMap();
        for (Enumeration names = request.getParameterNames(); names.hasMoreElements();) {
            String name = (String) names.nextElement();
            if (!super.getVariables().containsKey(name)) {
                String[] values = request.getParameterValues(name);
                if (values.length == 1) {
                    params.put(name, values[0]);
                } else {
                    params.put(name, values);
                }
            }
        }
        return params;
    }
View Full Code Here

     *
     * @see de.netseeker.ejoe.MultiObjectHandler#execute(java.util.Map)
     */
    public Map execute( Map objects )
    {
        Map ret = new LinkedHashMap();
        log.log( Level.FINEST, xstream.toXML( objects ) );

        ret.put( "KEY1", "Hello accepted" );
        ret.put( "KEY2", new Integer( 101 ) );
        ret.put( "KEY3", BigDecimal.valueOf( 102 ) );
        for ( int i = 4; i < 10; i++ )
        {
            ret.put( "KEY" + i, new ObjectBean() );
        }
        /* only required for remote classloader tests */
        Map map = new LinkedHashMap();
        map.put( "SUBKEY1", "The ultimative classloader test" );
        ret.put( "KEY5", map );

        return ret;
    }
View Full Code Here

      
   private boolean createTablesOnStartup = true;
     
   public JDBCSupport()
   {
      defaultDMLStatements = new LinkedHashMap();
     
      defaultDDLStatements = new LinkedHashMap();
     
      sqlProperties = new Properties();
   }
View Full Code Here

   {
      super (ds, tm, sqlProperties, createTablesOnStartup);

      lock = new ReentrantWriterPreferenceReadWriteLock();

      nameMaps = new LinkedHashMap();

      conditionMap = new LinkedHashMap();

      this.currentNodeId = nodeId;
      this.ms = ms;
      this.pm = pm;
      this.tr = tr;
View Full Code Here

      Integer nodeID = new Integer(binding.getNodeID());
      Map nameMap = (Map)nameMaps.get(nodeID);

      if (nameMap == null)
      {
         nameMap = new LinkedHashMap();
         nameMaps.put(nodeID, nameMap);
      }

      nameMap.put(binding.getQueue().getName(), binding);
View Full Code Here

TOP

Related Classes of java.util.LinkedHashMap$AbstractMapIterator

Copyright © 2018 www.massapicom. 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.