|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.dataservice.DatastoreAssociationUtilities
Utility methods for processing associations at based on introspection, datastore, and configuration information. information.
Field Summary | |
private static String |
CLASSNAME
|
static boolean |
DATASTORE_REFERENTIAL_INTEGRITY_ENABLED
|
static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static HashMap |
REMOVE_EVENT_PARTICIPANT_MAP
|
Constructor Summary | |
DatastoreAssociationUtilities()
|
Method Summary | |
private static List |
buildDescendentNonRemoveEventParticipantClassInfos(ClassInfo a_targetClassInfo,
List a_list)
|
static List |
buildNonRemoveEventParticipantCascadeRoleClassInfos(RoleDescriptor a_roleDescriptor)
This method builds a list of valid role ClassInfos if the role is Cascade and the class does not require remove event participation. |
private static HashSet |
buildValidLinks(LinkInfo a_linkInfo,
boolean a_isRoleA,
ClassInfo a_targetClassInfo,
HashSet a_set)
This method builds a set of valid links for the specified Link and role. |
private static HashSet |
buildValidLinks(RoleDescriptor[] a_roles,
ClassInfo a_targetClassInfo)
This method builds a set of valid links for the specified Roles. |
static Class |
getReferenceType(LinkInfo a_linkInfo,
String a_role)
This method returns the reference type on the specifiedlink class for the specified role name. |
static Class |
getReferenceType(PropertyDescriptor a_property)
This method returns the reference type on the specifiedlink class for the specified role name. |
private static Boolean |
isDescendentRemoveEventParticipant(ClassInfo a_targetClassInfo)
This method indicates if the specified target class or any of its descendents requires "remove event" participation. |
static boolean |
isRemoveEventParticipant(ClassInfo a_targetClassInfo)
This method indicates if the specified target class requires "remove event" participation. |
private static Boolean |
isRemoveEventParticipantCompute(ClassInfo a_targetClassInfo)
This method indicates if the specified target class requires "remove event" participation. |
private static Boolean |
isRemoveEventParticipantLookup(ClassInfo a_targetClassInfo,
boolean a_recursive)
This method indicates if the specified target class requires "remove event" participation. |
static boolean |
isSchemaReferentialIntegrityEnabled(ClassInfo a_targetClassInfo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean DATASTORE_REFERENTIAL_INTEGRITY_ENABLED
private static final HashMap REMOVE_EVENT_PARTICIPANT_MAP
private static final String CLASSNAME
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
public DatastoreAssociationUtilities()
Method Detail |
public static Class getReferenceType(LinkInfo a_linkInfo, String a_role) throws WTException
a_role
-
WTException
public static Class getReferenceType(PropertyDescriptor a_property) throws WTException
WTException
public static boolean isSchemaReferentialIntegrityEnabled(ClassInfo a_targetClassInfo) throws WTException
WTException
public static boolean isRemoveEventParticipant(ClassInfo a_targetClassInfo) throws WTException
a_targetClassInfo
-
WTException
public static List buildNonRemoveEventParticipantCascadeRoleClassInfos(RoleDescriptor a_roleDescriptor) throws WTException
a_roleDescriptor
-
WTException
private static Boolean isRemoveEventParticipantLookup(ClassInfo a_targetClassInfo, boolean a_recursive) throws WTException
a_targetClassInfo
-
WTException
private static Boolean isRemoveEventParticipantCompute(ClassInfo a_targetClassInfo) throws WTException
a_targetClassInfo
-
WTException
private static Boolean isDescendentRemoveEventParticipant(ClassInfo a_targetClassInfo) throws WTException
a_targetClassInfo
-
WTException
private static List buildDescendentNonRemoveEventParticipantClassInfos(ClassInfo a_targetClassInfo, List a_list) throws WTException
WTException
private static HashSet buildValidLinks(RoleDescriptor[] a_roles, ClassInfo a_targetClassInfo) throws WTException
a_roles
- array of roles to processa_targetClassInfo
- target class for the association
WTException
private static HashSet buildValidLinks(LinkInfo a_linkInfo, boolean a_isRoleA, ClassInfo a_targetClassInfo, HashSet a_set) throws WTException
a_linkInfo
- Link class to checka_isRoleA
- indicates which rolea_targetClassInfo
- target class for the association
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |