wt.epm.retriever
Class InternalRetrieverCache

java.lang.Object
  extended bywt.epm.retriever.InternalRetrieverCache
All Implemented Interfaces:
EPMRetrieverCache

public class InternalRetrieverCache
extends Object
implements EPMRetrieverCache


Field Summary
static String INCOMPATIBLE_FT
           
private static Log log
          logging
static String LW_LINKS
           
static String RESOLVED_BY_LAST_COMPATIBLE_RULE
           
static String RESOLVED_BY_WORKSPACE_FT_VERSION
           
(package private)  Map resultsByClassMap
           
(package private)  Map resultsMap
           
(package private)  Map selectedMap
           
static String UNRESOLVED_MASTERS
           
 
Constructor Summary
InternalRetrieverCache()
           
 
Method Summary
private  void buildResultsByClassMap()
           
protected static void debugPrint(Log log, String msg, Collection c)
           
 Collection getSelected(Class cl)
          return WTCollection of the given class.
 Collection getSelected(String selectName)
          Raw EMPRetriever results for advanced users.
protected static String getVersionDisplay(Iterated iteration)
           
private  WTCollection getWTCollection(Class[] cls)
           
private  Collection populate(Class[] cls)
           
private  void populate(Map ret, Class[] cls)
           
 void populate(PopulatableResult populatable, Class[] nodeClasses, Class[] linkClasses)
          Given a set of object (node) classes and a set of link classes, populate a particular "result" with all cached objects of selected classes.
 void setSelected(String selectName, Collection objs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedMap

Map selectedMap

resultsMap

Map resultsMap

resultsByClassMap

Map resultsByClassMap

UNRESOLVED_MASTERS

public static final String UNRESOLVED_MASTERS
See Also:
Constant Field Values

LW_LINKS

public static final String LW_LINKS
See Also:
Constant Field Values

INCOMPATIBLE_FT

public static final String INCOMPATIBLE_FT
See Also:
Constant Field Values

RESOLVED_BY_WORKSPACE_FT_VERSION

public static final String RESOLVED_BY_WORKSPACE_FT_VERSION
See Also:
Constant Field Values

RESOLVED_BY_LAST_COMPATIBLE_RULE

public static final String RESOLVED_BY_LAST_COMPATIBLE_RULE
See Also:
Constant Field Values

log

private static Log log
logging

Constructor Detail

InternalRetrieverCache

public InternalRetrieverCache()
Method Detail

populate

public void populate(PopulatableResult populatable,
                     Class[] nodeClasses,
                     Class[] linkClasses)
              throws WTException
Description copied from interface: EPMRetrieverCache
Given a set of object (node) classes and a set of link classes, populate a particular "result" with all cached objects of selected classes.

Specified by:
populate in interface EPMRetrieverCache
Parameters:
populatable - PopulatableResult - callback to build a result object.
nodeClasses - Class[] - classes to select result objects (nodes).
linkClasses - Class[] - classes to select result links.
Throws:
WTException - if subsequent PopulatableResult.ppopulate() failed for any reason

getWTCollection

private WTCollection getWTCollection(Class[] cls)
                              throws WTException
Throws:
WTException

populate

private Collection populate(Class[] cls)
                     throws WTException
Throws:
WTException

populate

private void populate(Map ret,
                      Class[] cls)

buildResultsByClassMap

private void buildResultsByClassMap()

setSelected

public void setSelected(String selectName,
                        Collection objs)

getSelected

public Collection getSelected(String selectName)
                       throws WTException
Description copied from interface: EPMRetrieverCache
Raw EMPRetriever results for advanced users.

Specified by:
getSelected in interface EPMRetrieverCache
Parameters:
selectName - String EMPRetriever's "select" parameter name
Returns:
Collection of the selected objects
Throws:
WTException

getSelected

public Collection getSelected(Class cl)
                       throws WTException
Description copied from interface: EPMRetrieverCache
return WTCollection of the given class.

Specified by:
getSelected in interface EPMRetrieverCache
Returns:
WTCollection of the selected objects of the given class
Throws:
WTException

debugPrint

protected static void debugPrint(Log log,
                                 String msg,
                                 Collection c)
                          throws WTException
Throws:
WTException

getVersionDisplay

protected static String getVersionDisplay(Iterated iteration)