wt.epm.clients.relateditems
Class FamilyTableFinder

java.lang.Object
  extended bywt.epm.clients.relateditems.FamilyTableFinder

class FamilyTableFinder
extends Object


Field Summary
private  WTSet familyTablesInProject
           
private  FamilyTableOptions options
           
 
Constructor Summary
FamilyTableFinder(FamilyTableOptions options)
           
 
Method Summary
 WTKeyedMap findFamilyMembers(WTCollection familyTables)
          For each family table in the given collection, find all of its members.
 WTValuedMap findFamilyTables(Collection documents)
           
private  WTSet findFamilyTables(WTContainerRef projectRef)
           
private  long getDatabaseId(Persistable object)
           
private  WTContainer getProject()
           
private  WTContainerRef getProjectFromConfigSpec(EPMDocConfigSpec configSpec)
           
private  void initFamilyTablesInProject()
           
private  boolean isLater(Persistable objectA, Persistable objectB)
           
private  EPMSepFamilyTable selectFamilyTable(WTCollection familyTables, boolean excludeCheckedOut)
           
private  SubSelectExpression sharedToProject(WTContainerRef projectRef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

private FamilyTableOptions options

familyTablesInProject

private WTSet familyTablesInProject
Constructor Detail

FamilyTableFinder

public FamilyTableFinder(FamilyTableOptions options)
Method Detail

findFamilyTables

public WTValuedMap findFamilyTables(Collection documents)
                             throws WTException
Throws:
WTException

findFamilyMembers

public WTKeyedMap findFamilyMembers(WTCollection familyTables)
                             throws WTException
For each family table in the given collection, find all of its members.

Parameters:
familyTables - - collection of family tables whose members to find
Returns:
WTKeyedMap whose keys are object identifers of the family tables and whose values are WTSets of their members
Throws:
WTException

selectFamilyTable

private EPMSepFamilyTable selectFamilyTable(WTCollection familyTables,
                                            boolean excludeCheckedOut)
                                     throws WTException
Throws:
WTException

findFamilyTables

private WTSet findFamilyTables(WTContainerRef projectRef)
                        throws WTException
Throws:
WTException

sharedToProject

private SubSelectExpression sharedToProject(WTContainerRef projectRef)
                                     throws WTException
Throws:
WTException

getProjectFromConfigSpec

private WTContainerRef getProjectFromConfigSpec(EPMDocConfigSpec configSpec)

isLater

private boolean isLater(Persistable objectA,
                        Persistable objectB)

getDatabaseId

private long getDatabaseId(Persistable object)

initFamilyTablesInProject

private void initFamilyTablesInProject()
                                throws WTException
Throws:
WTException

getProject

private WTContainer getProject()