Interface MTCachedList<ResultIdType>


public interface MTCachedList<ResultIdType>
A cached implementation for relative lists. This list fetches a big result set containing the relative results for all symbols in the current workspace and lets the client of the class fetch the results for individual symbols later.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Builds the results of the list.
    Returns the list backing this cached list.
    getResultIDs(long actionObjectID)
    Returns the cached results for a single action object id.
    <T> MTIterator<T>
    getResults(Class<? extends T> type, long actionObjectID)
    Returns the cached results for a single action object.
  • Method Details

    • getList

      MTList getList()
      Returns the list backing this cached list.
      Returns:
      The backing list.
    • buildResults

      void buildResults() throws MTAccessException
      Builds the results of the list.
      Throws:
      MTAccessException
    • getResults

      <T> MTIterator<T> getResults(Class<? extends T> type, long actionObjectID) throws Exception
      Returns the cached results for a single action object.
      Type Parameters:
      T - The type of the class.
      Parameters:
      type - The class.
      actionObjectID - The ID of the action object.
      Returns:
      An iterator over the resulting symbols.
      Throws:
      Exception - If an Exception occurs.
    • getResultIDs

      List<ResultIdType> getResultIDs(long actionObjectID)
      Returns the cached results for a single action object id.
      Parameters:
      actionObjectID - The ID of the action object.
      Returns:
      The ID:s of the resulting objects.