Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.globalSearch.ui
Class FilteredResultCache

java.lang.Object
  extended by oracle.apps.fnd.applcore.globalSearch.ui.FilteredResultCache
All Implemented Interfaces:
java.io.Serializable

public class FilteredResultCache
extends java.lang.Object
implements java.io.Serializable

A Simple class that collects SearchResults based on changes in attribute filters. These results can then be used if the user does another search on the same filters. It is not re-used if the developer does another search by changing categories or keywords.

Author:
David Groves <david.groves@oracle.com>
See Also:
Serialized Form

Constructor Summary
FilteredResultCache(SearchResult sr)
          Construct this class passing in a search result.
 
Method Summary
 SearchResult getCurrent()
          Get the current SearchResult.
 SearchResult runAndCacheResult(SearchResult sr)
          If the passed search result which likely just contains filter items as pk identifiers has already been run, return the existing result, and point to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredResultCache

public FilteredResultCache(SearchResult sr)
Construct this class passing in a search result.

Parameters:
sr - search result - cannot be null.
Method Detail

getCurrent

public SearchResult getCurrent()
Get the current SearchResult.

Returns:
current search result.

runAndCacheResult

public SearchResult runAndCacheResult(SearchResult sr)
If the passed search result which likely just contains filter items as pk identifiers has already been run, return the existing result, and point to it. Otherwise run and cache sr, and make it the current result.

Parameters:
sr - prototype search result.
Returns:
Either a run sr, or a cached version that would be equivalent.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.