Examples of ObjectRef


Examples of com.antlersoft.odb.ObjectRef

 
  DBMethod getMethod( String name, DBType type, String signature_key)
  {
    DBMethod result;
    String method_key=name+signature_key;
    ObjectRef ref=(ObjectRef)m_methods.get( method_key);
    if ( ref==null)
    {
      result=new DBMethod( this, name, type, signature_key);
      m_methods.put( method_key, new ObjectRef(result));
      ObjectDB.makeDirty( this);
    }
    else
    {
      result=(DBMethod)ref.getReferenced();
      result.setDBType( type);
    }
   
    return result;
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRef

 
  public DBMethod findMethod( String name, String signature_key)
  {
    DBMethod result=null;
    String method_key=name+signature_key;
    ObjectRef ref=(ObjectRef)m_methods.get( method_key);
    if ( ref!=null)
      result=(DBMethod)ref.getReferenced();
   
    return result;
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRef

   */
  void addContained( DBClass to_add)
  {
    if ( m_contained==null)
      m_contained=new ObjectKeyHashSet();
    if ( m_contained.add( new ObjectRef(to_add)))
      ObjectDB.makeDirty(this);
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRef

   */
  void addDerived( DBClass to_add)
  {
    if ( m_derived==null)
      m_derived=new ObjectKeyHashSet();
    if ( m_derived.add( new ObjectRef(to_add)))
      ObjectDB.makeDirty(this);
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRef

  void updateBaseClasses( ObjectKeyHashSet base_classes)
  {
    boolean changed=false;
    for ( Iterator i=base_classes.iterator(); i.hasNext();)
    {
      ObjectRef ref=(ObjectRef)i.next();
      if ( m_base.add( ref))
      {
        changed=true;
        ((DBClass)ref.getReferenced()).addDerived(this);
      }
    }
    Collection c=m_base.retainMembers(base_classes);
    if ( c!=null)
    {
      ObjectRef to_remove=new ObjectRef( this);
      changed=true;
      for ( Iterator i=c.iterator(); i.hasNext();)
      {
        ((DBClass)((ObjectRef)i.next()).getReferenced()).removeDerived( to_remove);
      }
View Full Code Here

Examples of gcc.rmi.iiop.ObjectRef

        }
        String url = urlObject.toString();
        UrlInfo urlInfo = UrlInfo.getInstance(url);
        _serverNamingContext = (gcc.org.omg.CosNaming.NamingContext)
            StubFactory.getInstance().getStub(gcc.org.omg.CosNaming.NamingContext.class);
        ObjectRef ncRef = (ObjectRef)_serverNamingContext;
        ncRef.$setNamingContext(this);
        ncRef.$setProtocol(urlInfo.getProtocol());
        ncRef.$setHost("ns~" + urlInfo.getHost());
        ncRef.$setPort(urlInfo.getPort());
        ncRef.$setObjectKey(urlInfo.getObjectKey());
        _connectionProperties = urlInfo.getProperties();
        _connectionPool = ConnectionPool.getInstance(this);
        Object u = env.get(Context.SECURITY_PRINCIPAL);
        Object p = env.get(Context.SECURITY_CREDENTIALS);
        if (u == null)
View Full Code Here

Examples of gcc.rmi.iiop.ObjectRef

        return this;
    }
   
    public ObjectRef $getObjectRef( )
    {
        gcc.rmi.iiop.ObjectRef or = new ObjectRef();
        or.$setID("RMI:gcc.rmi.iiop.NameServiceOperations:0000000000000000");
        or.$setObjectKey("gcc.rmi.iiop.NameServiceOperations");
        return or;
    }
View Full Code Here

Examples of gcc.rmi.iiop.ObjectRef

        return this;
    }

    public ObjectRef $getObjectRef( )
    {
        gcc.rmi.iiop.ObjectRef or = new ObjectRef();
        or.$setID("RMI:mark.comps.Add2:0000000000000000");
        or.$setObjectKey("mark.comps.Add2");
        return or;
    }
View Full Code Here

Examples of org.apache.geronimo.interop.rmi.iiop.ObjectRef

        serverNamingContext = (NamingContext)
                StubFactory.getInstance().getStub(NamingContext.class);

        namePrefix = urlInfo.getNamePrefix();

        ObjectRef ncRef = (ObjectRef) serverNamingContext;
        ncRef.$setNamingContext(this);
        ncRef.$setProtocol(urlInfo.getProtocol());
        ncRef.$setHost("ns~" + urlInfo.getHost());
        ncRef.$setPort(urlInfo.getPort());
        ncRef.$setObjectKey(urlInfo.getObjectKey());
        connectionPool = ConnectionPool.getInstance(this);
        Object u = env.get(Context.SECURITY_PRINCIPAL);
        Object p = env.get(Context.SECURITY_CREDENTIALS);
        if (u == null)
        {
View Full Code Here

Examples of org.apache.geronimo.interop.rmi.iiop.ObjectRef

        }
    }

    protected void processLocationForward(ReplyHeader_1_2 reply, ObjectRef object)
    {
        ObjectRef ref = (ObjectRef)results.read_Object();
        object.$setForwardingAddress(ref);
        throw new RetryInvokeException(new RuntimeException("LOCATION_FORWARD"));
    }
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.