Examples of ValueEntry


Examples of com.sun.tools.corba.se.idl.ValueEntry

  {
    // First do the state members from concrete parent hierarchy
    Vector vParents = ((ValueEntry)entry).derivedFrom ();
    if (vParents != null && vParents.size () != 0)
    {
      ValueEntry parent = (ValueEntry)vParents.elementAt (0);
      if (parent == null)
        return index;
      // call super._read if non-abstract value parent
      if ((!parent.isAbstract ()) && (! Util.javaQualifiedName(parent).equals ("java.io.Serializable"))) // <d60929>
          stream.println(indent + "super._write (ostream);");
    }

    Vector vMembers = ((ValueEntry) entry ).state ();
    int noOfMembers = vMembers == null ? 0 : vMembers.size ();
View Full Code Here

Examples of com.sun.tools.corba.se.idl.ValueEntry

    {
      // This code inspired by ValueGen.getConcreteBaseTypeCode().  Helper method
      // type() could be invoked against a global valuetype.
      if (((ValueEntry)entry).derivedFrom ().size () > 0) // <59596> KLR HACK
      {
        ValueEntry base = (ValueEntry)((ValueEntry)entry).derivedFrom ().elementAt (0);
        String baseName = base.name ();
        if (!"ValueBase".equals (baseName))
          if (importTypes.contains (base))
            addTo (importList, baseName + "Helper");
      }
    }
View Full Code Here

Examples of com.sun.tools.corba.se.idl.ValueEntry

    // 2) valuetypes with no supports.
    // 3) abstract interfaces
    //
    if (entry instanceof ValueEntry)
    {
      ValueEntry v = (ValueEntry) entry;
      if ((v.supports ().size () == 0) ||
          ((InterfaceEntry) v.supports ().elementAt (0)).isAbstract ()) {
        return;
        }
    }
    if (((InterfaceEntry) entry).isAbstract ()) {
        return;
View Full Code Here

Examples of com.sun.tools.corba.se.idl.ValueEntry

    intfName = Util.javaName (i);
    // for valuetype, get the name of the interface the valuetype supports
    if (i instanceof ValueEntry)
    {
      ValueEntry v = (ValueEntry) i;
      InterfaceEntry intf = (InterfaceEntry) v.supports ().elementAt (0);
      intfName = Util.javaName (intf);
    }
  } // init
View Full Code Here

Examples of com.sun.tools.corba.se.idl.ValueEntry

    writeCtors ();
    if (i instanceof ValueEntry)
    {
      // use the interface the valuetype supports to generate the
      // tie class instead of using the valuetype itself
      ValueEntry v = (ValueEntry) i;
      this.i = (InterfaceEntry) v.supports ().elementAt (0);
    }
    buildMethodList ();
    //DispatchMethod and MethodTable
    if (tie){ //Concrete class implementing the remote interface
        //The logic is here for future use
View Full Code Here

Examples of com.sun.tools.corba.se.idl.ValueEntry

  ///////////////
  // From JavaGenerator

  public int helperType (int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream)
  {
    ValueEntry vt = (ValueEntry) entry;
    TypedefEntry member = (TypedefEntry) ((InterfaceState) (vt.state ()).elementAt (0)).entry;
    SymtabEntry mType = Util.typeOf (member);
    index = ((JavaGenerator)mType.generator ()).type (index, indent, tcoffsets, name, mType, stream);
    stream.println (indent + name + " = org.omg.CORBA.ORB.init ().create_value_box_tc ("
      + "_id, "
      + '"' + entry.name () + "\", "
View Full Code Here

Examples of com.sun.tools.corba.se.idl.ValueEntry

      stream.print   ("    _id");

      // Any safe ValueEntry must have a concete value parent.
      // The topmost parent cannot be safe since it doesn't have
      // a concrete parent.
      ValueEntry child = (ValueEntry) entry;
      while (child.isSafe ())
      {
        stream.println(",");
        ValueEntry parent = (ValueEntry)child.derivedFrom ().elementAt (0);
        stream.print("    \"" + Util.stripLeadingUnderscoresFromID (parent.repositoryID ().ID ()) + "\"");
        child = parent;
      }
      stream.println("   };");
    }
    stream.println ();
View Full Code Here

Examples of com.taobao.tdhs.client.request.ValueEntry

  }

  @Test
  public void testUpdate1() throws TDHSException {
    try {
      ValueEntry entry = new ValueEntry(UpdateFlag.TDHS_UPDATE_SET, "5");
      TDHSResponse r = client.update(db, table, null,
          new String[] { fields[0] }, new ValueEntry[] { entry },
          new String[][] { { id } }, FindFlag.TDHS_EQ, 0, 100, null);

      Assert.assertEquals("1", r.getFieldData().get(0).get(0));
View Full Code Here

Examples of com.taobao.tdhs.client.request.ValueEntry

  }

  @Test
  public void testUpdate2() throws TDHSException {
    try {
      ValueEntry entry = new ValueEntry(UpdateFlag.TDHS_UPDATE_ADD, "5");
      TDHSResponse r = client.update(db, table, null,
          new String[] { fields[0] }, new ValueEntry[] { entry },
          new String[][] { { id } }, FindFlag.TDHS_EQ, 0, 100, null);

      Assert.assertEquals("1", r.getFieldData().get(0).get(0));
View Full Code Here

Examples of com.taobao.tdhs.client.request.ValueEntry

  }

  @Test
  public void testUpdate3() throws TDHSException {
    try {
      ValueEntry entry = new ValueEntry(UpdateFlag.TDHS_UPDATE_SUB, "5");
      TDHSResponse r = client.update(db, table, null,
          new String[] { fields[0] }, new ValueEntry[] { entry },
          new String[][] { { id } }, FindFlag.TDHS_EQ, 0, 100, null);

      Assert.assertEquals("1", r.getFieldData().get(0).get(0));
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.