Package com.antlersoft.odb

Examples of com.antlersoft.odb.CompoundKey


    return result;
  }
 
  static Comparable makeBundleKey( DBAssembly assembly, String name)
  {
    return new CompoundKey( new ObjectRefKey(assembly), name);
  }
View Full Code Here


  public static FileInclusion get( IndexObjectDB db, IncludeFile included,
                   SourceFile from, int line)
  {
    FileInclusion fi=(FileInclusion)db.findObject( UNIQUE_KEY,
      new CompoundKey( new ObjectRefKey( included),
               new ObjectRefKey( from)));
    if ( fi==null)
      fi=new FileInclusion( included, from, line);
    else
    {
View Full Code Here

  static class InclusionKeyGenerator implements KeyGenerator
  {
    public Comparable generateKey( Object o)
    {
      FileInclusion fi=(FileInclusion)o;
      return new CompoundKey(
                  new ObjectRefKey( fi.m_included_file),
                  new ObjectRefKey( fi.m_file));
    }
View Full Code Here

    return m_entry.getReferenced();
  }

  static void update( IndexObjectDB db, TranslationUnit unit, Persistent entry)
  {
    UnitEntry ue=(UnitEntry)db.findObject( COMBINED_INDEX_NAME, new
                  CompoundKey( new ObjectRefKey( unit),
                         new ObjectRefKey( entry)));
    if ( ue==null)
      ue=new UnitEntry( unit, entry);
    else
View Full Code Here

  static class CombinedGenerator implements KeyGenerator
  {
    public Comparable generateKey( Object o)
    {
      UnitEntry ue=(UnitEntry)o;
      return new CompoundKey( new ObjectRefKey( ue.m_unit),
                  new ObjectRefKey( ue.m_entry));
    }
View Full Code Here

TOP

Related Classes of com.antlersoft.odb.CompoundKey

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.