|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.EPMFamily
EPMFamily holds a set of instances that belong to a given family table. The set of instances that this EPMFamily holds may not be complete or compatible with the top-level generic. The EPMFamily may hold some but not all of the instances that belong to this family table. Some of the instances may not be compatible with EPMFamily's top-level generic.
Supported API: false
Extendable: false
Nested Class Summary | |
static class |
EPMFamily.FamilyTableQueryByFamilyTable
|
static class |
EPMFamily.FamilyTableQueryByMember
|
static class |
EPMFamily.FamilyTableSnapshot
|
private static class |
EPMFamily.LocalLinkProxy
|
Field Summary | |
private List |
compatibleLinks
|
private boolean |
complete
|
private EPMFamilyTable |
familyTable
|
private List |
incompatibles
|
private List |
instances
|
private EPMDocument |
topLevelGeneric
|
Constructor Summary | |
private |
EPMFamily(Collection links,
boolean isComplete)
|
|
EPMFamily(EPMFamily.FamilyTableSnapshot familyTableSnapshot,
boolean checkCompleteness)
Constructs an EPMFamily. |
|
EPMFamily(EPMFamilyTable familyTable)
Constructs an complete and compatible EPMFamily. |
|
EPMFamily(EPMFamilyTable familyTable,
Collection members)
Constructs an EPMFamily. |
|
EPMFamily(EPMFamilyTable familyTable,
Collection members,
boolean checkCompleteness)
Constructs an EPMFamily. |
|
EPMFamily(EPMFamilyTable familyTable,
EPMDocument topGeneric,
Collection instances,
boolean checkCompleteness)
Constructs an EPMFamily. |
Method Summary | |
private static List |
buildFamilies(Collection linksToInstances,
boolean isComplete)
|
static long |
buildId(Object databaseId)
|
static ObjectIdentifier |
buildObjectId(Class clazz,
Object databaseId)
|
private boolean |
cleanId(long[] array,
long value)
|
private boolean |
containsId(long[] array,
long value)
|
static EPMFamily.FamilyTableQueryByFamilyTable |
createQueryByFamilyTable(EPMFamilyTable familyTable)
|
static EPMFamily.FamilyTableQueryByFamilyTable |
createQueryByFamilyTables(Collection familyTables,
Map familyTableMap,
boolean returnSourceId)
|
static EPMFamily.FamilyTableQueryByMember |
createQueryByMember(EPMDocument member)
|
static EPMFamily.FamilyTableQueryByMember |
createQueryByMembers(Collection members,
Map memberMap,
boolean returnSourceId)
|
private static List |
filterByMaster(Collection objects,
Collection masterIds)
|
EPMDocument |
findCompatibleGeneric()
Returns an iteration of the top-level generic that is compatible with all instances in this family. |
private static EPMDocument |
findCompatibleGeneric(Collection instances)
|
static List |
findFamilies(Collection documents,
ConfigSpec configSpec)
Finds all families in the given collection of documents. |
static QueryResult |
findFamilies(QueryResult documents)
Finds all families in the given list of documents. |
static QueryResult |
findFamilies(QueryResult documents,
boolean checkCompleteness)
Finds all families in the given list of documents and checks their completeness. |
static Map |
findFamilyTableInstances(Collection familyTables)
|
static EPMFamily.FamilyTableSnapshot |
findFamilyTableInstances(EPMFamilyTable familyTable)
|
static Map |
findFamilyTableMembers(Collection familyTables)
|
static EPMFamily.FamilyTableSnapshot |
findFamilyTableMembers(EPMFamilyTable familyTable)
|
static EPMDocument |
findFamilyTableTopGeneric(EPMFamilyTable familyTable)
|
static WTKeyedMap |
findFamilyTableTopGenerics(Collection familyTables)
|
private static List |
findGenerics(Collection documents,
ConfigSpec configSpec)
|
private static List |
findInstances(Collection documents,
ConfigSpec configSpec)
|
static List |
getAllInstances(Collection families)
Return the instances that belong to each family in the collection. |
static List |
getAllMembers(Collection families)
Return the instances and the generic for each family in the collection. |
List |
getCompatibleLinks()
getCompatibleLinks: Get compatible ContainedIn links between family table and its members If EPMFamily is not complete, it returns empty List |
List |
getContainedInLinks()
|
static EPMFamily |
getEPMFamily(EPMDocument doc)
static method to get the EPMFamily for a given Document If document is a top-level generic, all the latest-compatible instances are added in EPMFamily If document is a normal EPMDocument (not participating in any Family) null is returned If document is instance, latest-compatible generic is used to fetch all the instances. |
List |
getFamilyMembers()
Return the instances and the generic of the family. |
EPMFamilyTable |
getFamilyTable()
Returns the family table (container) associated with this family. |
static List |
getFamilyTableMembersList(Collection familyTables)
|
EPMDocument |
getGeneric()
Returns the top-level generic. |
static EPMDocument |
getGeneric(EPMDocument instance,
WTContainerRef sandboxContainerRef)
|
List |
getIncompatibles()
Returns all instances that are not compatible with the top-level generic. |
List |
getInstances()
Returns a list of instances that belong to this family table. |
static EPMFamilyTable |
getLatestFamilyTable(Collection familyTables)
Returns "latest" family table object for a given family table collection |
private static String |
getName(EPMDocument doc)
|
private long |
getObjectIdAsLong(Persistable object)
|
private long |
getObjectMasterIdAsLong(Iterated object)
|
private static Map |
groupByFamily(QueryResult idPairs,
QueryResult documents)
|
private static Persistable |
id2Persistable(long id,
Map persistables)
|
private static Persistable |
id2Persistable(Object id,
Map persistables)
|
boolean |
isCompatible()
Returns whether or not all of the instances that this EPMFamily holds are compatible with the EPMFamily's top-level generic. |
boolean |
isComplete()
Returns whether or not this EPMFamily holds all of the instances that belong to this family table. |
static boolean |
isGeneric(int memberStatus)
|
static boolean |
isGeneric(Object memberStatus)
|
static boolean |
isInstance(int memberStatus)
|
static boolean |
isInstance(Object memberStatus)
|
private boolean |
isOldFamilyTable()
|
static boolean |
isTopGeneric(int memberStatus)
|
static boolean |
isTopGeneric(Object memberStatus)
|
static List |
navigateIterationToMaster(Collection documents)
|
static void |
splitFamilyTables(Collection familyTables,
Collection oldFamilyTables,
Collection newFamilyTables)
|
static void |
splitFamilyTables(QueryResult familyTables,
Collection oldFamilyTables,
Collection newFamilyTables)
|
String |
toString()
|
private void |
updateIncompatiblesAndCompleteness(boolean checkCompleteness)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private EPMDocument topLevelGeneric
private EPMFamilyTable familyTable
private List instances
private List incompatibles
private boolean complete
private List compatibleLinks
Constructor Detail |
public EPMFamily(EPMFamilyTable familyTable) throws WTException
familyTable
- family table objectpublic EPMFamily(EPMFamilyTable familyTable, Collection members) throws WTException
familyTable
- family table objectmembers
- list of memberspublic EPMFamily(EPMFamilyTable familyTable, Collection members, boolean checkCompleteness) throws WTException
familyTable
- family table objectmembers
- list of memberscheckCompleteness
- whether to check family completeness or notpublic EPMFamily(EPMFamilyTable familyTable, EPMDocument topGeneric, Collection instances, boolean checkCompleteness) throws WTException
familyTable
- family table objecttopGeneric
- family table top genericinstances
- list of instancescheckCompleteness
- whether to check family completeness or notpublic EPMFamily(EPMFamily.FamilyTableSnapshot familyTableSnapshot, boolean checkCompleteness) throws WTException
familyTableSnapshot
- family table snapshot objectcheckCompleteness
- whether to check family completeness or notprivate EPMFamily(Collection links, boolean isComplete) throws WTException
Method Detail |
public EPMFamilyTable getFamilyTable()
public EPMDocument getGeneric()
public List getInstances()
public static EPMFamily getEPMFamily(EPMDocument doc) throws WTException
WTException
public boolean isComplete()
public boolean isCompatible()
public List getIncompatibles()
public EPMDocument findCompatibleGeneric() throws WTException
WTException
public String toString()
private void updateIncompatiblesAndCompleteness(boolean checkCompleteness) throws WTException
WTException
private long getObjectIdAsLong(Persistable object)
private long getObjectMasterIdAsLong(Iterated object)
private boolean containsId(long[] array, long value)
private boolean cleanId(long[] array, long value)
private boolean isOldFamilyTable()
private static EPMDocument findCompatibleGeneric(Collection instances) throws WTException
WTException
public static QueryResult findFamilies(QueryResult documents) throws WTException
WTException
public static QueryResult findFamilies(QueryResult documents, boolean checkCompleteness) throws WTException
WTException
public List getCompatibleLinks() throws WTException
WTException
public static EPMDocument getGeneric(EPMDocument instance, WTContainerRef sandboxContainerRef) throws WTException
WTException
public static List getAllMembers(Collection families)
public static List getAllInstances(Collection families)
public static List findFamilies(Collection documents, ConfigSpec configSpec) throws WTException
WTException
private static List findInstances(Collection documents, ConfigSpec configSpec) throws WTException
WTException
private static List findGenerics(Collection documents, ConfigSpec configSpec) throws WTException
WTException
public static List navigateIterationToMaster(Collection documents) throws WTException
WTException
public static long buildId(Object databaseId) throws WTException
WTException
public static ObjectIdentifier buildObjectId(Class clazz, Object databaseId) throws WTException
WTException
private static List buildFamilies(Collection linksToInstances, boolean isComplete) throws WTException
WTException
private static List filterByMaster(Collection objects, Collection masterIds) throws WTException
WTException
private static Map groupByFamily(QueryResult idPairs, QueryResult documents) throws WTException
WTException
private static String getName(EPMDocument doc)
public static void splitFamilyTables(QueryResult familyTables, Collection oldFamilyTables, Collection newFamilyTables) throws WTException
WTException
public static void splitFamilyTables(Collection familyTables, Collection oldFamilyTables, Collection newFamilyTables) throws WTException
WTException
public static EPMFamilyTable getLatestFamilyTable(Collection familyTables) throws WTException
familyTables
- family table object collection
WTException
public static List getFamilyTableMembersList(Collection familyTables) throws WTException
WTException
public static EPMFamily.FamilyTableSnapshot findFamilyTableMembers(EPMFamilyTable familyTable) throws WTException
WTException
public static Map findFamilyTableMembers(Collection familyTables) throws WTException
WTException
public static EPMDocument findFamilyTableTopGeneric(EPMFamilyTable familyTable) throws WTException
WTException
public static WTKeyedMap findFamilyTableTopGenerics(Collection familyTables) throws WTException
WTException
public static EPMFamily.FamilyTableSnapshot findFamilyTableInstances(EPMFamilyTable familyTable) throws WTException
WTException
public static Map findFamilyTableInstances(Collection familyTables) throws WTException
WTException
public static EPMFamily.FamilyTableQueryByFamilyTable createQueryByFamilyTable(EPMFamilyTable familyTable) throws WTException
WTException
public static EPMFamily.FamilyTableQueryByFamilyTable createQueryByFamilyTables(Collection familyTables, Map familyTableMap, boolean returnSourceId) throws WTException
WTException
public static EPMFamily.FamilyTableQueryByMember createQueryByMember(EPMDocument member) throws WTException
WTException
public static EPMFamily.FamilyTableQueryByMember createQueryByMembers(Collection members, Map memberMap, boolean returnSourceId) throws WTException
WTException
private static Persistable id2Persistable(Object id, Map persistables)
private static Persistable id2Persistable(long id, Map persistables)
public static boolean isTopGeneric(int memberStatus)
public static boolean isTopGeneric(Object memberStatus)
public static boolean isGeneric(int memberStatus)
public static boolean isGeneric(Object memberStatus)
public static boolean isInstance(int memberStatus)
public static boolean isInstance(Object memberStatus)
public List getContainedInLinks() throws WTException
WTException
public List getFamilyMembers()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |