public interface PrepareInterceptor<MODEL> extends Interceptor
ValidateInterceptors and before the
model is saved to the database. If the model is related to other unsaved models their PrepareInterceptors are called before
this models PrepareInterceptor.
Use this PrepareInterceptor for preparing model values. For validating the model values use the ValidateInterceptor.| Modifier and Type | Method and Description |
|---|---|
void |
onPrepare(MODEL model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void onPrepare(MODEL model, InterceptorContext ctx) throws InterceptorException
modelService.saveAll() method. Prepares the values of the given model.model - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationCopyright © 2017 SAP SE. All Rights Reserved.