Package nexj.core.rpc

Examples of nexj.core.rpc.TransferObject.findValue()


         EndpointPart destinationPart = mapping.getDestination(i);
         String sDestinationName = destinationPart.getName();

         if (destinationPart.isCollection())
         {
            List list = (List)tobj.findValue(sDestinationName);

            if (list == null)
            {
               list = new ArrayList(4);
               destinationPart.setValue(tobj, list);
View Full Code Here


      assertEquals("User", tobj.getClassName());
      assertNull(tobj.getEventName());
      assertNull(tobj.getOID());
      assertEquals(2, tobj.getValueCount());
      assertEquals("fullname", tobj.findValue("fullName"));

      Object list = tobj.findValue("names");

      assertTrue(list instanceof List);
      assertEquals(3, ((List)list).size());
View Full Code Here

      assertNull(tobj.getEventName());
      assertNull(tobj.getOID());
      assertEquals(2, tobj.getValueCount());
      assertEquals("fullname", tobj.findValue("fullName"));

      Object list = tobj.findValue("names");

      assertTrue(list instanceof List);
      assertEquals(3, ((List)list).size());
      assertEquals("name1", ((List)list).get(0));
      assertEquals("name2", ((List)list).get(1));
View Full Code Here

      assertEquals("def", ((List)argArray[3]).get(1));
      assertEquals(metaclass.getName(), tobj.getClassName());
      assertNull(tobj.getEventName());
      assertNull(tobj.getOID());
      assertEquals(1, tobj.getValueCount());
      assertEquals("test", tobj.findValue(attr.getName()));

      // test static bound event
      sElement = XSDGenerator.computeElementName(staticEv);
      reader = new StringReader(
         "<" + sElement + " xmlns:xs='http://www.w3.org/2001/XMLSchema'" +
View Full Code Here

         SOAP12FaultException ex = new SOAP12FaultException();
         TransferObject code = (TransferObject)root.getValue("code");

         ex.setFaultCode((String)code.getValue("value"));

         while ((code = (TransferObject)code.findValue("subcode")) != null)
         {
            ex.appendFaultSubcode((String)code.getValue("value"));
         }

         TransferObject reason = (TransferObject)root.getValue("reason");
View Full Code Here

         {
            String sChildPartName = childPart.getName();
           
            if (childPart.isCollection())
            {
               List list = (List)tobj.findValue(sChildPartName);

               if (list == null)
               {
                  list = new ArrayList();
                  tobj.setValue(sChildPartName, list);
View Full Code Here

               Query query = m_query.getOutputQuery(nQuery);
               Object generator = query.getGenerator();

               if (generator instanceof VirtualJoinTab)
               {
                  ((VirtualJoinTab)generator).addChildObjects(oid, tobj.findValue(query.getAttribute().getName()));
               }
            }
         }

         return true;
View Full Code Here

            TransferObject tobj = (TransferObject)tobjList.get(k - nStart);

            if (nLockingOrdinal >= 0)
            {
               instance.setValueDirect(nLockingOrdinal,
                  tobj.findValue(sLockingAttributeName, instance.getValueDirect(nLockingOrdinal)));
            }

            if (tobj.getOID() != null)
            {
               instance.setOID(tobj.getOID());
View Full Code Here

            {
               for (int k = nStart; k < nEnd; k++)
               {
                  Instance instance = ((VirtualUpdate)workArray[k]).getInstance();
                  TransferObject tobj = (TransferObject)tobjList.get(k - nStart);
                  Object locking = tobj.findValue(sLockingAttributeName);

                  if (locking == null || ObjUtil.equal(locking, instance.getValue(nLockingOrdinal)))
                  {
                     if (!bError)
                     {
View Full Code Here

                  bRetry = false;

                  for (Iterator itr = col.iterator(); itr.hasNext();)
                  {
                     TransferObject tobj = (TransferObject)itr.next();
                     Boolean persistent = (Boolean)tobj.findValue(PERSISTENT);
                     int nPersistenceMode =
                        ((persistent == null) ? m_channel.isPersistent() : persistent.booleanValue()) ?
                        DeliveryMode.PERSISTENT : DeliveryMode.NON_PERSISTENT;
                     Number priority = (Number)tobj.findValue(PRIORITY);
                     int nPriority = (priority == null) ? m_channel.getPriority() : priority.intValue();
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.