Package nexj.core.util

Examples of nexj.core.util.HashTab


      private Lookup m_normalizationMap;
      private String m_sPageTitle;

      private WikiAPIQueryHandler(String sPageTitle)
      {
         m_pageTokenMap = new HashTab();
         m_normalizationMap = new HashTab();
         m_sPageTitle = sPageTitle;
      }
View Full Code Here


    */
   protected Object eval(String sExpr) throws Exception
   {
      try
      {
         Lookup posMap = new HashTab();
         Object code = parse(sExpr, posMap);
         PCodeFunction fun = m_compiler.compile(code, posMap, m_context.getMachine(), true);

         return m_context.getMachine().invoke(fun, (Pair)null);
      }
View Full Code Here

         "   firstName=\"John\"," + SysUtil.LINE_SEP + "   self=REF:TO<Contact'new, 12345, OID:1:I3:123>," + SysUtil.LINE_SEP +
         "   selfArray=#(REF:TO<Contact'new, 12345, OID:1:I3:123> REF:TO<Contact'new, 12345, OID:1:I3:123>)" + SysUtil.LINE_SEP +
         ")", m_tobj.toString());

      TransferObject tobj = new TransferObject(1);
      Lookup map = new HashTab(1);

      map.put("tobj", tobj);
      tobj.setValue("map", map);

      assertEquals("TO<, @>(" + SysUtil.LINE_SEP + "   map={\"tobj\"=REF:TO<, @>}" + SysUtil.LINE_SEP + ")",
         tobj.toString().replaceAll("@\\d+", "@"));
   }
View Full Code Here

   protected void query(Metaclass metaclass, Pair attributes, List table, Pair orderBy) throws Exception
   {
      Query query = Query.createRead(metaclass, attributes, null, orderBy, -1, 0, false, Query.SEC_ALL, m_context);
      Cursor cursor = query.openCursor();
      Lookup map = new HashTab();

      while (cursor.step(map))
      {
         Instance instance = (Instance)map.get(query);
         List row = new ArrayList();

         for (Pair pair = attributes; pair != null; pair = pair.getNext())
         {
            Object head = pair.getHead();
View Full Code Here

         s_logger.debug("Creating new FileManagedConnection: " + this);
      }
     
      m_journal = PersistentJournal.makeJournal(journal);
     
      m_fileLookup = new HashTab(1);
     
      m_xar = new FileXAResource(m_journal);
      m_xar.setManagedConnection(this);
   }
View Full Code Here

    *
    * @param journal
    */
   public FileXAResource(PersistentJournal journal)
   {
      m_knownXids = new HashTab(1);
     
      m_journal = journal;
   }
View Full Code Here

    */
   public void setReason(String sLang, String sReason)
   {
      if (m_langReasonMap == null)
      {
         m_langReasonMap = new HashTab();
         m_sFaultString = sReason;
         setArgArray();
         setValue("reasonMap", m_langReasonMap);
      }

View Full Code Here

         int nSize = baseMessagePartComp.m_partList.size();
         Lookup oldPartMap = m_partMap;

         m_partList = new ArrayList(nSize + m_partList.size());
         m_partMap = new HashTab(nSize);

         // Add parts defined in the base message.
         for (int i = 0; i < nSize; i++)
         {
            MessagePart baseMessageChildPart = (MessagePart)baseMessagePartComp.m_partList.get(i);
View Full Code Here

   {
      CompositeMessagePartInstance copy = (CompositeMessagePartInstance)super.clone();
      int nCount = m_partList.size();

      copy.m_partList = new ArrayList(nCount);
      copy.m_partMap = new HashTab(nCount);

      for (int i = 0; i < nCount; i++)
      {
         MessagePart part = (MessagePart)m_partList.get(i);
View Full Code Here

    */
   private void addClassMessage(Metaclass clazz, Message mappedMessage)
   {
      if (m_classMessageMap == null)
      {
         m_classMessageMap = new HashTab();
      }

      Message other = (Message)m_classMessageMap.put(clazz, mappedMessage);
      Message baseMessage;

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.