public interface ValidateInterceptor<MODEL> extends Interceptor
PrepareInterceptors and
before the model is saved to the database. If the model is related to other unsaved models their ValidateInterceptor are
called before this one.
Use this ValidateInterceptor to validate values of the model. Use the PrepareInterceptor for preparing them.| Modifier and Type | Method and Description |
|---|---|
void |
onValidate(MODEL model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void onValidate(MODEL model, InterceptorContext ctx) throws InterceptorException
modelService.saveAll() method. Validates the values of the given model.model - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.Copyright © 2017 SAP SE. All Rights Reserved.