The com.splwg.base.api.maintenanceObject.MaintenanceLogParameterCHandlerHelper
can be used for the Standard MO Log Parameter Table Change Handler.
The following standard methods on Add are provided by this helper class:
To use the Helper, create an instance of the helper class in the MO Change Handler and get the validation rules from the Helper, as illustrated in the following sample code.
public class OutboundCrossReferenceMessageLogParameter_CHandler
extends AbstractChangeHandler<OutboundCrossReferenceMessageLogParameter>
{
private final MaintenanceLogParameterCHandlerHelper helper = new MaintenanceLogParameterCHandlerHelper<
OutboundCrossReferenceMessageLogParameter, OutboundCrossReferenceMessageLog>(new MaintenanceObject_Id("O2-OXREFMSG"),
OutboundCrossReferenceMessageLogParameter.properties,
OutboundCrossReferenceMessageLogParameter.properties.
lookOnParentOutboundCrossReferenceMessageLog());
...
public void prepareToAdd(DataTransferObject newDTO)
{
helper.prepareToAdd(newDTO);
}
public ValidationRule[] getValidationRules()
{
return helper.getValidationRules();
}
}