Examples of ObjectRefKey


Examples of com.antlersoft.odb.ObjectRefKey

   * @param db ILDB for this analyzed system
   * @return an enumeration over string resources with this string as the value
   */
  public Enumeration getResourcesContaining( IndexObjectDB db)
  {
    return new ExactMatchIndexEnumeration( db.greaterThanOrEqualEntries(DBStringResource.STRING_RESOURCE_VALUE_INDEX, new ObjectRefKey(this)));
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

   * @param db ILDB for this analyzed system
   * @return an enumeration over string resources with this string as the name
   */
  public Enumeration getResourcesNamedBy( IndexObjectDB db)
  {
    return new ExactMatchIndexEnumeration( db.greaterThanOrEqualEntries(DBStringResource.STRING_RESOURCE_NAME_INDEX, new ObjectRefKey(this)));   
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

    public void finishTranslationUnit() {
    m_session.commit();
    ArrayList entries=new ArrayList();
    for ( IndexIterator ii=m_session.greaterThanOrEqualEntries(
          UnitEntry.UNIT_INDEX_NAME,
          new ObjectRefKey( m_unit));
        ii.hasNext() && ii.isExactMatch();)
    {
      entries.add( ii.next());
    }
    HashSet possible_clear=new HashSet();
    for ( Iterator i=entries.iterator(); i.hasNext();)
      ((UnitEntry)i.next()).clearIfObsolete( possible_clear);
    entries=null;
    for ( Iterator i=possible_clear.iterator(); i.hasNext();)
    {
      Persistent p=(Persistent)((ObjectRef)i.next()).getReferenced();
      if ( ! m_session.greaterThanOrEqualEntries( UnitEntry.ENTRY_INDEX_NAME,
        new ObjectRefKey(p)).isExactMatch())
        m_session.deleteObject( p);
    }
    m_session.commit();
    }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

   * @param db ILDB for this analyzed system
   * @return an enumeration over calls to this method
   */
  public Enumeration getCallsTo( ILDB db)
  {
    return new ExactMatchIndexEnumeration( db.greaterThanOrEqualEntries(DBCall.CALL_TARGET, new ObjectRefKey(this)));
  }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

  }

  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
    {
      ue.m_update_date=unit.getTranslationDate();
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

  static class UnitGenerator implements KeyGenerator
  {
    public Comparable generateKey( Object o)
    {
      return new ObjectRefKey( ((UnitEntry)o).m_unit);
    }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

  }
  static class EntryGenerator implements KeyGenerator
  {
    public Comparable generateKey( Object o)
    {
      return new ObjectRefKey( ((UnitEntry)o).m_entry);
    }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

  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

Examples of com.antlersoft.odb.ObjectRefKey

    /* (non-Javadoc)
     * @see com.antlersoft.odb.KeyGenerator#generateKey(java.lang.Object)
     */
    public Comparable generateKey(Object o1) {
      return new ObjectRefKey((DBClass)((DBAnnotation)o1).getAnnotationClass());
    }
View Full Code Here

Examples of com.antlersoft.odb.ObjectRefKey

   * @param db ILDB for this analyzed system
   * @return an enumeration over calls to this field
   */
  public Enumeration getReferencesTo( ILDB db)
  {
    return new ExactMatchIndexEnumeration( db.greaterThanOrEqualEntries(DBFieldReference.FRTARGET, new ObjectRefKey(this)));
  }
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.