Package com.antlersoft.odb

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


 
  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

   */
  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

   */
  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

  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

TOP

Related Classes of com.antlersoft.odb.ObjectRef

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.