wt.fc
Class StandardReferentialIntegrityExceptionHandler

java.lang.Object
  extended bywt.fc.StandardReferentialIntegrityExceptionHandler
All Implemented Interfaces:
ReferentialIntegrityExceptionHandler
Direct Known Subclasses:
AbstractStructLinkRIEHandler, BaselineMemberRIEHandler, ESITargetAssignmentLinkRIEDelegate, ESITransactionObjectLinkRIEDelegate, ESITransactionReleaseRIEDelegate, IteratedRIEHandler, ReleaseActivityRIEDelegate

public class StandardReferentialIntegrityExceptionHandler
extends Object
implements ReferentialIntegrityExceptionHandler

The class implements a standard mechanism for building a single generic message for each referential integrity violation.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from interface wt.fc.ReferentialIntegrityExceptionHandler
DEFAULT_SELECTOR
 
Constructor Summary
StandardReferentialIntegrityExceptionHandler()
           
 
Method Summary
 Object buildMessage(Persistable a_referencingObject, Persistable a_targetObject)
          The method builds a message for display as part of a ReferentialIntegrityException.
 int buildMessage(WTValuedMap a_linkMap, Object[] a_messages, int a_messageIndex)
          The method builds messages to display as part of a ReferentialIntegrityException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

StandardReferentialIntegrityExceptionHandler

public StandardReferentialIntegrityExceptionHandler()
Method Detail

buildMessage

public Object buildMessage(Persistable a_referencingObject,
                           Persistable a_targetObject)
                    throws WTException
The method builds a message for display as part of a ReferentialIntegrityException.

Supported API: false

Parameters:
a_referencingObject - The object that contains the reference.
a_targetObject - The target object that was removed and is still reference by the referencing object.
Returns:
referential integrity message
Throws:
WTException

buildMessage

public int buildMessage(WTValuedMap a_linkMap,
                        Object[] a_messages,
                        int a_messageIndex)
                 throws WTException
The method builds messages to display as part of a ReferentialIntegrityException.

Supported API: false

Specified by:
buildMessage in interface ReferentialIntegrityExceptionHandler
Parameters:
a_linkMap - The link objects to build the message for.
a_messages - Object array to build messages in.
a_messageIndex - The index into the message array to start building messages.
Returns:
number of messages built
Throws:
WTException