Package nexj.core.util

Examples of nexj.core.util.HashTab


      assert value != null;
      assert value != Undefined.VALUE;

      if (m_transientMap == null)
      {
         m_transientMap = new HashTab();
      }

      m_transientMap.put(key, value);
   }
View Full Code Here


   {
      assert key != null;

      if (m_transientMap == null)
      {
         m_transientMap = new HashTab();
      }

      m_transientMap.put(key, Undefined.VALUE);
   }
View Full Code Here

      assert key != null;
      assert value != null;

      if (m_localMap == null)
      {
         m_localMap = new HashTab();
      }

      m_localMap.put(key, value);
   }
View Full Code Here

      List list;

      if (m_messageMap == null)
      {
         m_messageMap = new HashTab();
         list = new ArrayList();
         m_messageMap.put(channel, list);
      }
      else
      {
View Full Code Here

      // operations

      public TransferObject getMessage()
      {
         Lookup identityMap = new HashTab();
         TransferObject tobj;

         if (m_accessor instanceof Metaclass)
         {
            tobj = new TransferObject(((Metaclass)m_accessor).getName(), 0);
View Full Code Here

            Lookup cacheMap = null;

            if (sessionMap == null)
            {
               sessionMap = new SoftHashTab(1);
               cacheMap = new HashTab(1);
            }

            synchronized (sessionMap)
            {
               sessionMap.put(reader.getValue("session"),
View Full Code Here

         {
            Object rules = metaclass.invoke("loadRules", new Object[]{instance.getMetaclass(), sName});

            constructor = (Function)metaclass.invoke("compile", new Object[]{instance.getMetaclass(), sName, rules});

            Lookup map = new HashTab(1);

            map.put(key, constructor);
            m_context.getGlobalCache().update(null, map, m_context.getUnitOfWork().getTime());
         }
         finally
         {
            m_context.setSecure(bSecureSaved);
View Full Code Here

            if ("indexspace".equals(sCollection) ||
                "longspace".equals(sCollection) ||
                "tablespace".equals(sCollection))
            {
               Lookup/*<Object, String>*/ valueMap =
                  new HashTab/*<Object, String>*/(m_schema.getTableCount() + 1);

               putNotNull(valueMap, findValue("indexspace", null), "indexspace"); // add default

               for (Iterator/*<Table>*/ itr = m_schema.getTableIterator(); itr.hasNext();)
               {
                  putNotNull(valueMap, ((Table)itr.next()).getIndexspaceName(), "indexspace");
               }

               putNotNull(valueMap, findValue("longspace", null), "longspace"); // add default

               for (Iterator/*<Table>*/ itr = m_schema.getTableIterator(); itr.hasNext();)
               {
                  putNotNull(valueMap, ((Table)itr.next()).getLongspaceName(), "longspace");
               }

               putNotNull(valueMap, findValue("tablespace", null), "tablespace"); // add default

               for (Iterator/*<Table>*/ itr = m_schema.getTableIterator(); itr.hasNext();)
               {
                  putNotNull(valueMap, ((Table)itr.next()).getTablespaceName(), "tablespace");
               }

               List/*<String>*/ valueList = new ArrayList/*<String>*/(valueMap.size());

               for (Lookup.Iterator/*<Object, String>*/ itr = valueMap.iterator(); itr.hasNext();)
               {
                  if (itr.next() instanceof String && itr.getValue().equals(sCollection))
                  {
                     valueList.add(itr.getKey());
                  }
View Full Code Here

    */
   public Object clone()
   {
      RelationalSchema schema = (RelationalSchema)super.clone();

      schema.m_tableMap = new HashTab(m_tableMap.size());
      schema.m_indexMap = new HashTab(m_indexMap.size());
      schema.m_objectMap = new HashTab/*<String, SQLObject>*/(m_objectMap.size());

      for (Lookup.Iterator itr = m_tableMap.valueIterator(); itr.hasNext();)
      {
         Table table = (Table)itr.next();

View Full Code Here

       * Verify that ordinal mapping of parts has all required parts before
       * optional parts begin. Also verify that there are no mappings that
       * map to the same CSV field name.
       */
      boolean bOnRequired = true;
      Lookup fieldNames = new HashTab(m_cachedPartsArray.length);
     
      for (int nPartIndex=0; nPartIndex < m_cachedPartsArray.length; nPartIndex++)
      {
         if (m_cachedPartsArray[nPartIndex] != null)
         {
            if (!bOnRequired && m_cachedPartsArray[nPartIndex].isRequired())
            {
               throw new MetadataException("err.meta.integration.csv.cannotMixRequiredAndOptionalParts",
                  new Object[]{m_cachedPartsArray[nPartIndex].getFullPath()});
            }
           
            bOnRequired = m_cachedPartsArray[nPartIndex].isRequired();
           
            CSVMessagePartMapping partMapping = (CSVMessagePartMapping)m_cachedPartsArray[nPartIndex].getMapping();
            MessagePart partWithSameFieldName = (MessagePart)fieldNames.get(partMapping.getField());
           
            if (partWithSameFieldName != null)
            {
               throw new MetadataException("err.meta.integration.csv.duplicateFieldNames",
                  new Object[]{
                     partWithSameFieldName.getFullPath(),
                     m_cachedPartsArray[nPartIndex].getFullPath(),
                     partMapping.getField()
                  });
            }
            else
            {
               fieldNames.put(partMapping.getField(), m_cachedPartsArray[nPartIndex]);
            }
         }
      }
     
      m_fieldNamePartMap = fieldNames;
View Full Code Here

TOP

Related Classes of nexj.core.util.HashTab

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.